effect-v3-to-v4
БесплатноБез исполняемых скриптовНе проверенUse this skill when migrating a codebase from Effect v3 to Effect v4, upgrading `effect` or any `@effect/*` package across the v3/v4 boundary.
от Effect-TS★ 119 звёзд на GitHubОб этом скилле
Effect v3 to v4 Migration
Drive an Effect v3 → v4 migration from the generated migration reference that ships in the Effect repo. Every rename, removal, and signature change is answered by upstream data — do not guess replacements.
Workflow
Work through these steps in order; each one is detailed in the section named.
- Set up and validate the local checkouts — two shallow clones; verify any pre-existing
.repos/effectbefore trusting it. See Setup: Local Checkouts. - Read
MIGRATION.mdandls .repos/effect/migration/for the background and guide index. See Reading Order. - Migrate
package.json— remove consolidated packages, align every remaining Effect package on one v4 version. Do this before type-checking, or the first run drowns in unresolved-import noise from packages that no longer exist. See Repo-Level Changes. - Run the project's type-check (e.g.
tsc --noEmit) to get the initial error inventory. - Iterate until the type-check is clean. For each error, resolve the API through the lookup discipline — search
migration/v3-to-v4.mdfor the symbol, escalate per Reading Order — then fix the call site, delegating per-file fixes to sub-agents per Delegating to Sub-Agents. Never silence an error instead of resolving it; see Hard Prohibitions. - Finish — type-check clean; run tests and report their outcome honestly (not a gate); write the final summary. See Done Condition.
Setup: Local Checkouts
The migration is driven from two shallow, single-branch clones of the canonical Effect repo:
git clone --depth 1 --single-branch https://github.com/Effect-TS/effect .repos/effect
git clone --depth 1 --single-branch --branch v3 https://github.com/Effect-TS/effect .repos/effect-v3
.repos/effect— v4 (main). ContainsMIGRATION.md, themigration/guides, and the v4 source..repos/effect-v3— v3 (v3branch). Escalation-only reference for old semantics.
Each clone is independently re-runnable and separately deletable. Do not use git worktree to share one clone between branches.
Validate an existing checkout before trusting it
./.repos/effect may already exist, cloned from the superseded Effect-TS/effect-smol repo by older setup instructions. That checkout is stale and does not contain migration/v3-to-v4.md. Verify before using:
git -C .repos/effect remote get-url origin # must be the canonical Effect-TS/effect repo
node -p "require('./.repos/effect/packages/effect/package.json').version" # must be 4.x
If the origin points at effect-smol, or the version is not 4.x, delete the directory and re-clone as above.
Reading Order
- Front-load
MIGRATION.mdonce (.repos/effect/MIGRATION.md). migration/v3-to-v4.md— the first stop for every API. The generated reference covers every removed or changed API. Search it (see below); never read it whole.- A per-topic guide (
.repos/effect/migration/*.md) when the mapping implies a rewrite rather than a rename — e.g.Context.Tag→Context.Serviceis a structural change, not a symbol swap. Reach these on demand from theMIGRATION.mdindex, not front-loaded. - v4 source (
.repos/effect/packages/*/src/) to confirm a replacement's real signature before writing code against it. - v3 source (
.repos/effect-v3) as escalation only — for when unsure about the old v3 semantics.
Never Read the Reference Doc Whole
This is the single most important rule in this skill. migration/v3-to-v4.md is ~17,000 lines / ~350k tokens. Reading it in one pass blows the context window and takes the migration with it.
Always search it and read only matched lines plus surrounding context. The file has four sections — Import Map, No Counterpart Imports, Removed Modules, and API Reference (one ### `<v3 module path>` heading per module). Entries are grep-able one-liners of the form - `Old.symbol` -> `New.symbol`: <rationale>, and removals are explicit -> `none` entries with a stated alternative.
Concrete recipes:
# Look up a specific v3 symbol
rg -n 'AnthropicTokenizer\.layer' .repos/effect/migration/v3-to-v4.md
# Read a whole module's section via its heading
rg -n -A 40 '^### `@effect/platform/FileSystem`' .repos/effect/migration/v3-to-v4.md
# Resolve a v3 import path in the Import Map
rg -n '^@effect/platform/FileSystem ' .repos/effect/migration/v3-to-v4.md
# List every module section for a package
rg -n '^### `@effect/cluster/' .repos/effect/migration/v3-to-v4.md
Look up APIs as you encounter them, one search at a time. A miss in the Import Map is not a dead end — check the Removed Modules and No Counterpart Imports sections before concluding anything.
Repo-Level Changes
Faithful per-API lookup alone still yields a broken package.json. Handle these once, up front:
- Package consolidation.
@effect/platform,@effect/rpc,@effect/cluster, and others m
Установить effect-v3-to-v4 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл effect-v3-to-v4?
Use this skill when migrating a codebase from Effect v3 to Effect v4, upgrading `effect` or any `@effect/*` package across the v3/v4 boundary.
Как установить скилл effect-v3-to-v4?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл effect-v3-to-v4 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic