
Effect
- 7 installs
- 273 repo stars
- Updated August 4, 2026
- browser-use/browsercode
Effect is a skill that guides writing and reviewing Effect v4 (effect-smol) TypeScript services, schemas, and HTTP handlers against the current source.
About
This skill directs how to write and review Effect v4 (effect-smol) TypeScript code in a repository. A developer uses it to keep HTTP handlers thin, model domain data with Effect Schema and typed errors, and verify APIs against a local effect-smol source clone rather than memory. It matters because Effect's APIs changed across versions and stale patterns break type-safety.
- Enforces current Effect v4 / effect-smol APIs over older Effect v2/v3
- Requires verifying against a local effect-smol clone, not memory
- Prescribes Effect.gen, Schema, and thin HTTP handler patterns
Effect by the numbers
- 7 all-time installs (skills.sh)
- Ranked #3,637 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
effect capabilities & compatibility
Free; works against a local effect-smol clone and repo code
- Capabilities
- api development · code review · testing
- Use cases
- api development · code review · refactoring · testing
- Runs
- Runs locally
- Pricing
- Free
What effect says it does
This codebase uses Effect for typed, composable TypeScript services, schemas, and workflows.
Keep HTTP handlers thin: decode input, read request context, call services, and map transport errors.
Do not answer from memory. Verify against `.opencode/references/effect-smol` or nearby code first.
npx skills add https://github.com/browser-use/browsercode --skill effectAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 7 |
|---|---|
| repo stars | ★ 273 |
| Last updated | August 4, 2026 |
| Repository | browser-use/browsercode ↗ |
What it does
Write or review Effect v4 TypeScript services, schemas, and HTTP handlers verified against the effect-smol source.
Who is it for?
Writing type-safe Effect v4 services, schemas, and thin HTTP handlers grounded in effect-smol source
Skip if: Older Effect v2/v3 codebases or non-Effect TypeScript
When should I use this skill?
You are working with Effect v4 / effect-smol TypeScript code in the repo.
What you get
Effect v4 services and handlers verified against effect-smol source and repo house style.
- Effect v4 services, schemas, and handlers following repo house style
By the numbers
- 4-step Source Of Truth procedure before implementing
Files
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.
1. If .opencode/references/effect-smol is missing, clone https://github.com/Effect-TS/effect-smol there. Do this in the project, not in the skill folder. 2. Search .opencode/references/effect-smol for exact APIs, examples, tests, and naming patterns before answering or implementing Effect-specific code. 3. Also inspect existing repo code for local house style before introducing new patterns. 4. 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.
Related skills
FAQ
Where do I find the correct Effect v4 APIs?
Clone or search .opencode/references/effect-smol for exact APIs, examples, and tests before answering, rather than relying on memory or older Effect v2/v3 examples.
How should HTTP handlers be structured?
Keep handlers thin: decode input, read request context, call services, and map transport errors, putting business rules in services.