Skip to main content
skill CX Codex

effect-ts · joelhooks — Claude Code skill for idiomatic Effect v4

Gives the agent ground rules for Effect v4 code: services, layers, schemas and errors. Useful once a project already depends on effect.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add joelhooks/effectts-skills --skill effect-ts -a claude-code
Open on GitHub

What effect-ts does

The skill loads a set of rules and examples the agent reads before touching Effect code. It covers patterns from effect-solutions and the library source: Effect.gen for straight-line composition, Effect.fn for traced service methods, ServiceMap.Service with a typed Layer, Schema.Class and branded primitives for domain records, Schema.TaggedErrorClass for errors you raise with yield*.

The central rule is to stop trusting memory. The agent checks for a shallow source mirror in .agent-sources/effect/ and clones the repository there when it is missing. Skip that step and recent v4 APIs such as effect/unstable/http and effect/unstable/cli have nowhere to come from.

Keep the mirror out of product commits. The skill suggests .git/info/exclude rather than the shared .gitignore. It also lists local paths to effect-solutions and the Effect monorepo on the author's machine; you likely have neither, so the cloned mirror is what matters. A separate effect_source tool is mentioned for status, hydrate and search, with plain grep as the fallback.

What it helps with

  • Port existing code to the Effect v4 API
  • Define a service with ServiceMap.Service and wire its Layer
  • Model a domain record on Schema.Class with branded IDs
  • Turn thrown failures into tagged errors caught by catchTag
  • Pull current examples from library source before a refactor

Example prompts for the agent

  • Add a Users service with ServiceMap.Service and a layer over the Effect HTTP client
  • Make UserId a branded type and define a User class on Schema.Class
  • Rewrite the failure in getUser as a Schema.TaggedErrorClass

How to install effect-ts

1Skills CLI (Vercel)

npx skills add joelhooks/effectts-skills --skill effect-ts -a claude-code

2Manually: put the files in place

~/.claude/skills/effect-ts/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/effect-ts/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about effect-ts

How do I install effect-ts in Claude Code?

Run npx skills add joelhooks/effectts-skills --skill effect-ts -a claude-code. The skill lands at ~/.claude/skills/effect-ts/SKILL.md.

What does effect-ts do?

It gives the agent rules and worked examples for Effect v4: services, layers, schemas, error handling and tests.

Why does the skill clone the Effect source?

So the agent matches current APIs instead of old articles. The mirror sits in .agent-sources/effect/ and comes from a git clone --depth 1.

Similar skills

All skills for Programming languages →

effect-ts by other authors comes first.

effect-ts Effect-TS This skill sets up a repository that uses the Effect Typescript library and tells the agent where to read its guidance and source. CX Codex +1 7,900installs effect-ts PaulRBerg A skill for nontrivial Effect 4 work: services, layers, typed errors, Schema, Config and runtime. Keeps the agent from mixing up v3 and v4 APIs. CX Codex +1 3,100installs migrate-to-shoehorn Matt Pocock Replaces as type assertions in tests with helpers from @total-typescript/shoehorn. Use it when tests need partial objects or deliberately invalid data. 475,388installs write-swift emilkowalski This skill guides Swift coding, reviews, and migrations using the language’s current practices. Use it to investigate concurrency errors, hangs, data races, or retain cycles. CX Codex +1 119,300installs megacave JuliusBrussee Switches agent responses to Classical Chinese (wenyan) to reduce terminal output. Activated via /megacave or /caveman wenyan. CX Codex +1 25,400installs find-docs upstash Pulls up-to-date documentation, API references and code examples for any library through the Context7 CLI. Useful when the model's training data lags behind the API. CX Codex +1 9,400installs typescript-advanced-types Seth Hobson Guides an agent through advanced TypeScript types, from generics to conditional and mapped types. Use it for typed libraries, API clients, or strict configuration objects. CX Codex 92,169installs smart-explore thedotmack Uses tree-sitter to map code structure and find symbols. Useful when you need to explore a codebase without loading every full file. CX Codex +1 7,300installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor