复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-effect-56479be9ce06 ,按照其中的说明把「effect」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
This codebase uses Effect for typed, composable TypeScript services, schemas, and workflows.
Use the current Effect v4 / effect-smol source, not memory or older Effect v2/v3 examples.
.opencode/references/effect-smol is missing, clone https://github.com/Effect-TS/effect-smol there. Do this in the project, not in the skill folder..opencode/references/effect-smol for exact APIs, examples, tests, and naming patterns before answering or implementing Effect-specific code.Effect.gen(function* () { ... }) for multi-step workflows.Effect.fn("Name") or Effect.fnUntraced(...) for named effects when adding reusable service methods or important workflows.Schema for API and domain data shapes. Use branded schemas for IDs and Schema.TaggedErrorClass for typed domain errors when modeling new error surfaces.any, non-null assertions, unchecked casts, or older Effect APIs just to satisfy types..opencode/references/effect-smol or nearby code first.testEffect(...) from packages/opencode/test/lib/effect.ts for tests that exercise Effect services, layers, runtime context, scoped resources, or platform integrations.it.live(...) for filesystem, git repositories, HTTP servers, sockets, child processes, locks, real time, and other live platform behavior.packages/opencode; never run package tests from the repo root.