effect
БесплатноБез исполняемых скриптовНе проверенWrites and reviews Effect v4 TypeScript code against the installed release instead of remembered Effect 3 APIs. Use when changing Effect services, layers…
от rileyhilliard★ 133 звезды на GitHubОб этом скилле
If the current repo has its own Effect rules (check .claude/rules/, AGENTS.md and CLAUDE.md), those take precedence. Apply this skill where they're silent.
Effect 4
This skill covers Effect 4 patterns and the traps that models carry over from Effect 3. Where it states a default or a behavior of a specific API, that was observed in 4.0 and is marked so: confirm it in the installed source before relying on it, because minor releases change defaults and unstable modules. A new major needs a fresh review of this skill.
Where the truth is
Start from Effect's own agent guide, which ships inside the package at node_modules/effect/AGENTS.md (resolved from the workspace package you're changing). It's the official entry point: house style for Effect.gen, Effect.fn and services, plus a topic index that links one runnable example per topic under node_modules/effect/ai-docs/src/. It matches the installed release, so it doesn't go stale the way this skill or the web can. This skill adds what that guide doesn't say: the old-major traps and the gotchas below.
Effect 3, the 4.0 prereleases and 4.0 stable are all mixed together in model memory and on the web. In order of authority:
- The installed declarations (
dist/**/*.d.ts) for names and signatures, and the source (src/**/*.ts) for behavior. Resolveeffectfrom the workspace package you're changing, not the repo root; Bun can link it undernode_modules/.bun/. node_modules/effect/AGENTS.mdand theai-docs/src/example it links for the task. Read the section and example that match the task, not every example.- Context7 (
/effect-ts/effect) or effect.website v4 docs, when available, for explanation. They trackmain, so confirm anything release-sensitive against step 1. - Memory last.
Before writing a name you haven't seen in this repo's code, check it exists (from the package directory):
node --input-type=module -e 'import { Effect } from "effect"; console.log("catchAll" in Effect)'
Reading the installed docs
Find the package directory with node -p 'require("path").dirname(require.resolve("effect/package.json"))' run from the workspace package. Inside it:
| What | Where |
|---|---|
| A module's API docs | src/<Module>.ts (src/Effect.ts, src/Layer.ts, src/Schema.ts); unstable modules under src/http/, src/http-api/, src/sql/, src/cli/, src/testing/ |
| Signatures only | dist/<Module>.d.ts, same layout |
| The vendor's agent guide | AGENTS.md, an index of topics with one example file each |
| Runnable examples | ai-docs/src/<topic>/ |
| Platform and test helpers | the same layout inside @effect/platform-node and @effect/vitest (src/) |
Each export's JSDoc in src/ has When to use, Details and Gotchas sections, and the Gotchas carry the behavior this skill can only summarize (defaults, interruption, what a recovery skips). To read the docs for one function, search for its declaration and read the comment above it, for example grep -n "^export const retryTransient" src/http/HttpClient.ts. To survey a module's traps, grep -n -A6 "\*\*Gotchas\*\*" src/<Module>.ts. Source files are large, so read by line range, never whole.
When a name is missing, find the concept in the declarations. Don't add a shim, install @effect/schema, or copy an Effect 3 helper.
Names that don't exist in Effect 4
| Effect 3 or a 4.0 prerelease | Effect 4 |
|---|---|
Context.Tag, Context.GenericTag, Effect.Tag, Effect.Service, ServiceMap |
class X extends Context.Service<X, Shape>()("app/X"), or Context.Service<Shape>("app/X") |
Layer.scoped |
Layer.effect (it removes Scope from the layer's requirements) |
Effect.catchAll, catchAllCause, catchAllDefect |
Effect.catch, catchCause, catchDefect |
Effect.either, Either |
Effect.result, Result (.success, .failure, Result.isFailure) |
Effect.async |
Effect.callback((resume, signal) => ...), returning a cleanup Effect |
Effect.fork, forkDaemon |
forkChild, forkScoped, forkIn, forkDetach |
Effect.zipRight, tapErrorCause |
Effect.andThen, tapCause |
yield* option or yield* either inside Effect.gen |
yield* Effect.fromOption(o) (fails with Cause.NoSuchElementError) or Effect.fromResult(r); Option and Result aren't Effects, and yielding one is a defect |
Schedule.intersect/both, Schedule.union/either |
Schedule.max, Schedule.min |
Schema.TaggedErrorClass, Schema.ErrorClass |
Schema.TaggedError<X>()("X", fields) |
@effect/schema, Schema.decodeUnknown, Schema.parseJson |
Schema from effect, decodeUnknownEffect, Schema.fromJsonString |
Schema.Union(a, b), Schema.Literal("a", "b") |
Schema.Union([a, b]), Schema.Literals(["a", "b"]) |
Schema.filter(...) |
.check(Schema.makeFilter(...)) or a built-in check (Schema.isInt(), Schema.isPattern(re)) |
Config.string, Config.integer, `Options.b |
Установить effect в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл effect?
Writes and reviews Effect v4 TypeScript code against the installed release instead of remembered Effect 3 APIs. Use when changing Effect services, layers, errors, schemas, resources, fibers, retries, config, logging, HttpApi or HttpClient, SQL, effect/cli commands or @effect/vitest tests.
Как установить скилл effect?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл effect запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic