effect
What it does
It guides writing TypeScript code with the Effect library, including services, schemas, typed errors and multi-step workflows. It is for developers who use Effect and want accurate, current code.
When to use it
- ✓When you are writing or changing TypeScript code that uses Effect.
- ✓When you need typed errors, schemas or services built with Effect.
- ✓When you want current Effect v4 patterns checked against the library source.
Skill link
https://github.com/Kilo-Org/kilocode/blob/main/.opencode/skills/effect/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I need a service in my TypeScript backend that uses Effect with typed errors and a schema for the request data.”
5 new skills a week. 1 minute to read.
How it works
The agent checks the current Effect library source for exact APIs and examples, follows the project's existing patterns, and then writes the code. It keeps HTTP handlers thin and puts business rules in services.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Effect
This codebase uses Effect for typed, composable TypeScript services, schemas, and workflows.
Source Of Truth
Use the current Effect v4 / effect-smol source, not memory or older Effect v2/v3 examples.
- If
.opencode/references/effect-smolis missing, clonehttps://github.com/Effect-TS/effect-smolthere. Do this in the project, not in the skill folder. - Search
.opencode/references/effect-smolfor exact APIs, examples, tests, and naming patterns before answering or implementing Effect-specific code. - Also inspect existing repo code for local house style before introducing new patterns.
- Prefer answers and implementations backed by specific source files or nearby repo examples.
Guidelines
- Prefer current Effect v4 APIs and project-local patterns over old blog posts, examples, or package-memory guesses.
- Use
Effect.gen(function* () { ... })for multi-step workflows. - Use
Effect.fn("Name")orEffect.fnUntraced(...)for named effects when adding reusable service methods or important workflows. - Prefer Effect
Schemafor API and domain data shapes. Use branded schemas for IDs andSchema.TaggedErrorClassfor typed domain errors when modeling new error surfaces. - Keep HTTP handlers thin: decode input, read request context, call services, and map transport errors. Put business rules in services.
- In Effect service code, prefer Effect-aware platform abstractions and dependencies over ad hoc promises where the surrounding code already does so.
- Keep layer composition explicit. Avoid broad hidden provisioning that makes missing dependencies hard to see.
- In tests, prefer the repo's existing Effect test helpers and live tests for filesystem, git, child process, locks, or timing behavior.
- Do not introduce
any, non-null assertions, unchecked casts, or older Effect APIs just to satisfy types. - Do not answer from memory. Verify against
.opencode/references/effect-smolor nearby code first.
Testing Patterns
- Use
testEffect(...)frompackages/opencode/test/lib/effect.tsfor tests that exercise Effect services, layers, runtime context, scoped resources, or platform integrations. - Use
it.live(...)for filesystem, git repositories, HTTP servers, sockets, child processes, locks, real time, and other live platform behavior. - Run tests from package directories such as
packages/opencode; never run package tests from the repo root. - Prefer explicit test layers over ad hoc managed runtimes. Keep dependency provisioning visible in the test file.
- Use scoped fixtures and finalizers for resources that must be cleaned up, including temporary directories, flags, databases, fibers, servers, and global state.
FAQ
Which Effect version does it target?
It targets Effect v4, also known as effect-smol, rather than older v2 or v3 examples.
Where does it look up the API?
It searches a local copy of the effect-smol source, cloning it if it is missing.
How are errors handled?
Domain errors use tagged error classes so they can be handled with types.
Details
Original description by the author
Work with Effect v4 / effect-smol TypeScript code in this repo
repo: Kilo-Org/kilocode
Popularity
- GitHub stars
- 28k
- Ranking position
- #9874
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
chart
28kLets your agent draw a bar, line, pie, scatter or similar chart when you ask for one, using a chart tool that renders the data.
jetbrains-sandbox
28kLets your agent install IntelliJ in a Linux cloud sandbox and give it a browser view and tools to operate the IDE for inspection or automation.
rtl-aware-development
28kTeaches your agent to build interfaces that work for right-to-left languages, using logical layout and isolated mixed-direction text.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.