关于 effect-ts
面向使用 Effect TypeScript 库的项目的仓库技能,要求编码 Agent 在编写 Effect 代码前查阅已安装的指导文件。提供的 README 片段还包含安装和仓库指令设置说明。
主要功能
- 01编码前阅读 Effect 指引
- 02Effect 软件包安装说明
- 03设置仓库 Agent 指令
适用场景
- 01为基于 Effect 的开发准备仓库
- 02指导 Agent 使用 Effect API
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ effect-ts/ skills --skill effect-ts安装后在 Claude Code 中输入/effect-ts确认已加载。
详细介绍
步骤 1:安装 effect
使用用户首选的包管理器:
pnpm add effect@latest
如果在 monorepo 中,请将其作为根目录的开发依赖安装,以便你可以从 node_modules/effect/src 访问源代码。
pnpm add -D effect@latest
步骤 2:更新 AGENTS.md / CLAUDE.md
确保 Agent 指令包含以下内容:
# Learning more about Effect
This repository uses the Effect Typescript library.
Before writing any Effect code, first read `node_modules/effect/AGENTS.md`
**completely**, and follow the links in the file when required.
If you need to learn more about particular Effect apis and concepts that the
guide doesn't cover, search through the source code in `node_modules/effect/src`.
评论
支持 Markdown