Skip to content
Back to skills

Effect

ASecurity

Use when writing Effect, Effect-TS, @effect/*, Effect Schema, Layers, services, or fibers; not for plain TypeScript.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 14, 2026
developmentjavascripttypescriptrustgojavanoderefactoringapidocumentation

Works with

  • terminal
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add anntnzrb/agents --skill effect --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Effect?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Effect
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anntnzrb-effect/badge)](https://www.skillsdirectory.com/skills/anntnzrb-effect)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: effect
description: "Use when writing Effect, Effect-TS, @effect/*, Effect Schema, Layers, services, or fibers; not for plain TypeScript."
license: AGPL-3.0-or-later
metadata:
  author: anntnzrb

---

# Effect

Use matching project code, vendored source, installed declarations, and live documentation. Never invent version-sensitive Effect APIs.

## Required reads before editing

For implementation, refactoring, or review, loading this file alone is incomplete. Follow the matching route before the first edit.

- TypeScript implementation, refactoring, or review involving Effect: if the TypeScript skill is not already loaded, load `../typescript/SKILL.md` before editing.
- For Effect code written in TypeScript, the TypeScript skill owns host contracts and language boundaries. This skill owns Effect programs and lifecycle.
- New or materially changed user-owned Effect code: read `references/application-engineering.md` and `references/code-quality.md` before editing.
- Effect code review or refactoring: read `references/code-quality.md` before editing. Inspect matching project and vendored source before prescribing patterns.
- Focused Effect API question without implementation: inspect project versions and vendored source, then use the live documentation workflow below.
- Existing Effect repository: honor its pinned major version. Do not migrate or mix Effect majors without approval.

## Inspect real source

1. Inspect project manifests, lockfiles, imports, installed exports, and declarations.
2. Follow the project's own Effect guidance first: instruction-file routes, Effect convention docs, and pinned reference checkouts such as `.repos/effect*`. Project house style overrides this skill's generic patterns.
3. Before writing Effect code, resolve the `effect` package installed for the package you are editing. Workspace packages can install separate copies, such as `<workspace-package>/node_modules/effect`. Read its `AGENTS.md` completely and open the `ai-docs/src` examples it links for the task. It ships with the package, so it matches the installed version exactly. Check API signatures against the installed `src/` and declarations.
4. For `MIGRATION.md`, upstream tests, and examples outside the package, use the vendored `Effect-TS/effect` checkout. If it is absent, shallow-clone it at its vendored-source path under the global policy without asking. The scheduled refresh maintains it afterward. Do not pull, reset, or switch an existing checkout.
5. The vendored checkout tracks `main`. If its version differs from the installed version, state the mismatch, then inspect the installed package or a temporary shallow clone of the matching tag. Never treat current `main` as proof for a pinned release.

`Effect-TS/effect-smol` merged into `Effect-TS/effect`. Do not vendor it separately. Treat vendored repositories as read-only references. Never import from them or edit them as application code.

## Use live Effect documentation

Effect API questions MUST use authoritative documentation sources. Answer from the installed package and vendored source first. Use live documentation when they lack coverage, for packages not installed, or when no project exists yet.

Context7 can return v3 content. Discard results that do not match the project's major version. Load the context7 skill and follow its workflow to resolve Effect or its sub-packages and query the returned library ID, such as `/effect-ts/effect`.

- For official v4 guides and API reference, consult <https://effect.website/docs/v4>. Append `.md` to guide URLs for Markdown.
- For implementation patterns, inspect vendored `Effect-TS/effect` source or upstream repository (`LLMS.md`, `MIGRATION.md`, tests).
- Missing or unclear coverage: fall back to matching vendored source, `gh`, or `firecrawl`.

## Version safety

- Version-sensitive guidance MUST inspect manifests, lockfiles, imports, exports, and declarations.
- The project version MUST override conflicting vendored `main` or upstream documentation.
- New applications use stable v4 as described in `references/application-engineering.md`.
- Do not select alpha, beta, or RC dist-tags for new applications. Registry tags can remain after stable v4 ships.
- Existing v3 applications receive matching v3 maintenance guidance. Do not silently apply v4 APIs or initiate migration.
- State every material version or source mismatch. Never guess.

## Engineering checks

- Before editing, classify changed control flow as pure TypeScript, an Effect program, or a host adapter. Assign sequencing, failure, interruption, and cleanup to one owner.
- Keep one control-flow owner. An Effect-returning function is not `async`. Never use JavaScript `try/catch` around `yield*` or round-trip through Effect runners and Promises.
- Use `Effect.fn("name")` for named Effect functions and `Effect.gen` for local sequential composition. Use `Effect.fnUntraced` instead when tracing is not useful, such as library internals and hot paths. Use `return yield*` for terminal Effects.
- Wrap foreign throws, rejections, and callbacks once with the matching Effect constructor. Preserve cancellation at the boundary.
- Use `Schema.TaggedError` for expected errors in new v4 code. Translate once, recover by tag when possible, and never catch merely to log and rethrow.
- Decode untrusted input once at the edge with the project's schema boundary. Keep domain values typed thereafter.
- Keep pure logic pure. Add Layers, services, state primitives, dependencies, or abstractions only for a concrete capability, lifecycle, concurrency, or replacement need.
- Compose and run at application or host boundaries. Never leave Effects or fibers floating.
- Make resource ownership, interruption, timeout, retry, and cleanup explicit with scoped Effect patterns.
- Run TypeScript and `@effect/tsgo` diagnostics separately. Fix Effect diagnostic findings instead of suppressing them without source-backed justification.
- Treat diagnostics as hazard detection, not proof of idiomatic design. Complete the manual review gate in `references/code-quality.md` before claiming that the code is green or idiomatic.
- Test observable success, typed failure, interruption, and cleanup deterministically. Prefer real or in-memory edges before mocks.

## Required follow-up reads

|Need|Read|When|
|---|---|---|
|TypeScript host contracts and Promise boundaries|`../typescript/SKILL.md`|Implementing, refactoring, or reviewing Effect in TypeScript|
|Bun, TypeScript 7, and Effect v4 application policy|`references/application-engineering.md`|Creating or materially changing user-owned Effect code|
|Effect composition, errors, services, resources, and structural review|`references/code-quality.md`|Creating, materially changing, refactoring, or reviewing Effect code|

Files in this skill

  • SKILL.md6.6 KB
  • evals/evals.json15.8 KB
  • references/application-engineering.md10.8 KB
  • references/code-quality.md10.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.