artimath/effect-skills/effectts
Claude Code and agent skill by artimath/effect-skills
- community
Checking that the SKILL.md file is still in the repository.
Idiomatic Effect-TS patterns for TypeScript functional programming. USE THIS SKILL WHEN: Writing new Effect services or layers, debugging Effect type errors (layer composition, error types), choosing between Effect patterns, setting up Effect testing. TRIGGERS ON: 'effect pattern', 'Layer.provide', 'Context.Tag', 'effect service', 'effect error', 'effect test', 'idiomatic effect'. NOT FOR: general TypeScript without Effect.
Install
npx vskill@latest install artimath/effect-skills/effecttsSKILL.md
Idiomatic Effect-TS
Write Effect code that looks like it came from the Effect core team.
Prerequisites (Optional)
- Effect source (recommended):
git clone https://github.com/Effect-TS/effectfor pattern verification - Effect MCP: https://github.com/tim-smart/effect-mcp for API lookups (fallback: https://effect.website/docs)
Research First (ALWAYS)
1. Effect Docs MCP (preferred for concepts)
If you have effect-mcp configured:
Otherwise, check https://effect.website/docs for API reference.
2. Effect Source (preferred for real patterns)
Use parallel searches when patterns are unclear.
Quick Reference
Service Patterns (Choose Based on Use Case)
| Pattern | Use When | Layer Access | |
|---|---|---|---|
Context.Tag | Library interfaces, multiple impls | ServiceName.Live | |
Effect.Service | Concrete impls, tests, apps | ServiceName.Default |
Domain Errors
Domain Types
Layer Composition — COMMON GOTCHA
This causes most Effect type errors. Know the difference:
| Method | Deps Satisfied | Available to Program | Use When | |
|---|---|---|---|---|
Layer.provide | Yes | No | Internal layer building | |
Layer.provideMerge | Yes | Yes | Tests using multiple services | |
Layer.mergeAll | No | Yes | Combining independent layers |
Error pattern to recognize:
or diagnostic: Missing 'SomeService' in the expected Effect context
-> Means SomeService still required. Use provideMerge instead of provide.
Test Pattern
References (Read When Needed)
| Topic | File | When to Read | |
|---|---|---|---|
| Service & Layer patterns | references/services.md | Creating services, Context.Tag vs Effect.Service, layer composition | |
| Layer dependencies | references/layer-dependencies.md | How services access deps (yield + closure), why NOT factory functions | |
| Schema decision matrix | references/schema-decision.md | Schema.Class vs Struct vs TaggedClass, branded types, migration patterns | |
| Error handling | references/errors.md | Schema.TaggedError, TypeId, refail patterns | |
| Domain types | references/domain-types.md | Schema.Class, branded types, TaggedRequest | |
| Testing | references/testing.md | @effect/vitest setup, TDD workflow, test helpers | |
| Collections & State | references/data.md | Chunk, Option, Ref patterns | |
| Process management | references/processes.md | Scope, Command, background processes |
Anti-Patterns
| Anti-Pattern | Fix | |
|---|---|---|
Data.TaggedError for domain errors | Use Schema.TaggedError | |
Layer.mergeAll with dependent layers | Use Layer.provideMerge | |
try/catch in Effect.gen | Use Effect.try or mapError | |
Missing Effect.provide(...) in tests | Always provide at test boundary | |
| Plain interfaces for domain types | Use Schema.Struct (or Schema.Class if needs behavior) | |
| String IDs without branding | Use Schema.brand() | |
| Guessing patterns | Grep Effect source first | |
Effect.Service for library interfaces | Use Context.Tag | |
| Factory function with service param | Yield deps in Effect.gen, close over (see layer-dependencies.md) | |
Schema.Class for simple DTOs | Use Schema.Struct unless needs Equal/Hash | |
| String literal union in struct | Use Schema.TaggedClass for variants | |
Phantom type & { _tag } | Use Schema.brand() for runtime validation | |
Bare Schema.String.pipe(Schema.brand(...)) | Add real constraints: NonEmptyString, pattern(), etc. |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/effectts/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/artimath/effect-skills/effectts)