Effect Ts

effect-ts/skills/skills/effect-ts

作者 effect-ts2309e6f27d99無授權條款107 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫6 週前更新

Use this skill when setting up a repository that uses the Effect Typescript library.

AI 產生的概覽

為使用 Effect TypeScript 函式庫的儲存庫完成安裝設定,並加入供代理閱讀其文件的指引。

功能
此技能說明如何使用使用者偏好的套件管理器安裝 Effect TypeScript 函式庫,包括在 monorepo 中將其安裝為根目錄的開發相依套件,以便存取 node_modules/effect/src 下的原始碼。接著它要求代理在 AGENTS.md 或 CLAUDE.md 中加入簡短段落,提示後續代理在撰寫 Effect 程式碼前完整閱讀 node_modules/effect/AGENTS.md,並在文件未涵蓋時搜尋函式庫原始碼。其產出是設定與指示檔案的修改,而非程式碼。
適用情境
適用於開始建置或設定將採用 Effect TypeScript 函式庫的儲存庫時。也適合在既有 Effect 程式碼庫中為代理做初始引導。
執行需求
需要一個 Node.js 專案與 pnpm 等套件管理器,並具備安裝 effect 套件的網路存取能力。此技能不含指令碼,僅提供指示與要加入 AGENTS.md 或 CLAUDE.md 的 Markdown 片段。

Step 1: Install effect

Use the users preferred package manager:

pnpm add effect@rc

If in a monorepo, install it as a dev dependency at the root, so you can access the source code from node_modules/effect/src.

pnpm add -D effect@rc

Step 2: Update AGENTS.md / CLAUDE.md

Ensure that the agent instructions contain the following:

md
# 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 theguide doesn't cover, search through the source code in `node_modules/effect/src`.

來源與署名

來源:effect-ts/skills位於skills/effect-ts提交2309e6f

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架