effect-v4
/effect-v4
Write, review, or upgrade Effect v4 code in the Composio CLI, cli-keyring, and json-schema-to-effect-schema packages, all pinned exactly to effect@4.0.3 — Context.Service and explicit layers, Schema.TaggedError and typed recovery, the effect/cli command surface, and the vendored effect source oracle. Use when writing or reviewing Effect v4 code, answering a v4 API question, working in effect/cli, defining a Context.Service service, modeling an error with Schema.TaggedError, bumping the Effect pins, or verifying an unfamiliar API against ts/vendor/effect. Do not use for CLI command UX/wiring de
- Author
- ComposioHQ ↗
- Repository
- composio ↗
- Licence
- MIT
- Last repository change
- 23.10.2026
Assessment and security
- Files in this package
- 6
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/check-examples.mjs
What it does and when to use it
Write, review, or upgrade Effect v4 code in the Composio CLI, cli-keyring, and json-schema-to-effect-schema packages, all pinned exactly to effect@4.0.3 — Context.Service and explicit layers, Schema.TaggedError and typed recovery, the effect/cli command surface, and the vendored effect source oracle. Use when writing or reviewing Effect v4 code, answering a v4 API question, working in effect/cli, defining a Context.Service service, modeling an error with Schema.TaggedError, bumping the Effect pins, or verifying an unfamiliar API against ts/vendor/effect. Do not use for CLI command UX/wiring de
Original author description
Write, review, or upgrade Effect v4 code in the Composio CLI, cli-keyring, and json-schema-to-effect-schema packages, all pinned exactly to effect@4.0.3 — Context.Service and explicit layers, Schema.TaggedError and typed recovery, the effect/cli command surface, and the vendored effect source oracle. Use when writing or reviewing Effect v4 code, answering a v4 API question, working in effect/cli, defining a Context.Service service, modeling an error with Schema.TaggedError, bumping the Effect pins, or verifying an unfamiliar API against ts/vendor/effect. Do not use for CLI command UX/wiring de
How it works
- Exact version matrix
- Read next
- Non-negotiables
- Verification
SKILL.md preview
---
name: effect-v4
description: Write, review, or upgrade Effect v4 code in the Composio CLI, cli-keyring, and json-schema-to-effect-schema packages, all pinned exactly to effect@4.0.3 — Context.Service and explicit layers, Schema.TaggedError and typed recovery, the effect/cli command surface, and the vendored effect source oracle. Use when writing or reviewing Effect v4 code, answering a v4 API question, working in effect/cli, defining a Context.Service service, modeling an error with Schema.TaggedError, bumping the Effect pins, or verifying an unfamiliar API against ts/vendor/effect. Do not use for CLI command UX/wiring design (use cli-command) or CLI E2E tests (use cli-e2e).
---
# Effect v4
The CLI, `@composio/cli-keyring`, and `@composio/json-schema-to-effect-schema` run on
Effect v4. Every claim below is grounded in the migrated source, not memory of v3.
## Exact version matrix
`effect`, `@effect/platform-bun`, and `@effect/vitest`
are pinned to the **same exact** `4.0.3` — never `^`, `@next`, or a mismatched
version across packages. `@effect/cli` and `@effect/platform` no longer exist as
dependencies; their surfaces are consolidated into `effect` and `effect/*`.
See [versions.json](versions.json) for the full matrix (also `typescript`, `vitest`).
## Read next
- [references/core-patterns.md](references/core-patterns.md) — services, layers, typed
errors, Schema, choosing between `Effect.gen` and `Effect.fn`, `Option` combinators in
place of `isSome` ternaries, driving time in tests with
`TestClock` (fork, adjust until the fiber settles, join) instead of `it.live`, and the v3→v4 rename table
(labeled historical, for recognizing stale patterns).
- [references/cli-surface.md](references/cli-surface.md) — `effect/cli`:
`Command`, `Flag`, `Argument`, `GlobalFlag`, `CliConfig`, the custom
`CliOutput.Formatter`, and the runner's double-print rule.
- [references/upgrade-workflow.md](references/upgrade-workflow.md) — procedure for
bumping to a newer release.
Code excerpts in those references are short quotes from real, currently-compiling repo
files (path cited at each excerpt) — not standalone examples. The compile-checked
source of truth is always the cited file itself; when it and a reference disagree,
trust the file and fix the reference.
## Non-negotiables
- `Effect.gen(function* () {...})` for effect values — the dominant form, including named
module consts — and `(params) => Effect.gen(...)` for parameterized helpers.
`Effect.fn(...)` is the function form whose effects carry stack-frame annotations (its
optional name string adds a per-call tracing span), worth it for service members and
combinator callbacks that should be attributable in error reports. All forms re-run
their body per execution. See "`Effect.gen` vs `Effect.fn`" in core-patterns.
- Define services with `Context.Service` and an explicit `static readonly Default`/`layer`
layer built with `Layer.succeed`/`Layer.effect`/`Layer.provide`. V4 does not generate a
layer for you.
- Model expected failures with `Schema.TaggedError` (or a plain `Data.TaggedError`
when no Schema fields are needed) and recover with `Effect.catchTag`/`catchTags`/`Match`,
never manual `_tag` string comparisons.
- Wrap fallible Promises with `Effect.tryPromise({ try, catch })`; `Effect.promise` turns
rejection into a defect. No `async`/`await` or `try`/`catch` inside Effect workflows —
ESLint bans them in `ts/packages/cli/src`.
- Treat every remembered v3 package name and API as wrong until verified against
`ts/vendor/effect` (read-only source oracle — never edit or import from it) and the
installed `effect@4.0.3` typings. Source may be ahead of the published package;
the compiler is the compatibility gate.
## Verification
```bash
pnpm typecheck
pnpm --filter @composio/cli test
```
Run `pnpm validate:agent-skills` and `pnpm validate:skill-routing` after editing this
skill or its descriptions, and compile the TypeScript blocks in this skill and in
`typescript-testing/references/effect-v4-cli.md` against the pinned packages with:
```bash
node .agents/skills/effect-v4/scripts/check-examples.mjs
```
Blocks that quote repo files with unresolvable imports carry a `no-check` fence info string.
Files in this package (6)
- SKILL.md 4 KB
- versions.json 1 KB
- references/cli-surface.md 7 KB
- references/core-patterns.md 19 KB
- references/upgrade-workflow.md 4 KB
- scripts/check-examples.mjs 7 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · ComposioHQ/composio | 100 | MIT |
| teeverc/effect-ts-skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version 639045e9e53e (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95effect-best-practices
Enforces Effect-TS patterns for services, errors, layers, and atoms. Use when writing code with Effect.Service, Schema.TaggedError, Layer composition, or effect-atom React components. - 100effect-ts
Effect-TS library usage in TypeScript — Effect.gen generators, Schema.Struct/Schema.Class definitions, Layer/Context.Tag/Service patterns, Effect.pipe pipelines, Data.TaggedError/Data.Class error types, Ref/Queue/PubSub/Deferred concurrency primitives, Match module, Config… - 91effect-error-handling
Implement typed error handling in Effect v4 using Schema.TaggedError, catchTag/catchTags, catchReason/catchReasons, Cause, ErrorReporter, and recovery patterns. Use this skill when working with Effect error channels, handling expected failures, or designing error recovery strategies. - 91effect-schema-v4
Authoritative reference for Effect Schema v4 API changes and migration patterns from v3. Use this skill when writing Schema code to avoid v3 patterns, when migrating existing v3 Schema code, or when unsure about current Schema API names. - 100effect-v4-planning
Use when about to design, build, add, extend, or modify a feature, module, service, or schema in Effect v4 — before writing implementation code. Triggers on "design/add/build a feature", "new service/schema/module", "change/refactor existing Effect code", and any moment you are… - 100effect-ts
Effect-TS expert — write, debug, refactor, and explain code using the Effect ecosystem (effect, @effect/platform, @effect/rpc, @effect/cli, @effect/schema, @effect/cluster). Use this skill whenever the user works with Effect-TS code, mentions Effect…