Claude-skill-registry effect-lookup
Quick lookup for Effect TypeScript library APIs, patterns, and source code. Use when you need to find Effect functions, understand Effect patterns, or look up implementation details.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/effect-lookup" ~/.claude/skills/majiayu000-claude-skill-registry-effect-lookup && rm -rf "$T"
manifest:
skills/data/effect-lookup/SKILL.mdsource content
Effect Library Lookup
Quick reference for finding and understanding Effect TypeScript library APIs from the local git subtree at
docs/effect/.
When to Use This Skill
Use this skill when:
- Looking up Effect function signatures or implementations
- Finding examples of Effect patterns (Effect.gen, Layer, Context, etc.)
- Understanding how Effect modules work internally
- Checking API availability or deprecation status
- Learning Effect idioms from source code
How to Look Up Effect APIs
1. Use the Effect Docs MCP Server (Fastest)
The
effect-docs MCP server provides indexed documentation:
mcp__effect-docs__effect_docs_search: Search for Effect concepts mcp__effect-docs__get_effect_doc: Get specific documentation by ID
2. Search the Git Subtree Source
For implementation details, search the local source at
docs/effect/:
# Find a specific function grep -r "export const myFunction" docs/effect/packages/effect/src/ # Find usage patterns grep -rn "Effect.gen" docs/effect/packages/effect/src/ # Find type definitions grep -rn "interface MyType" docs/effect/packages/effect/src/
3. Read Source Files Directly
Core modules are at:
docs/effect/packages/effect/src/<Module>.ts
Example: To understand
Effect.map, read docs/effect/packages/effect/src/Effect.ts
Quick Reference
| Task | Reference |
|---|---|
| Module categories | |
| Common patterns | |
Package Structure
docs/effect/ ├── packages/ │ ├── effect/ # Core Effect library │ │ └── src/ # Source files (Effect.ts, Layer.ts, etc.) │ ├── platform/ # Cross-platform utilities (HTTP, FileSystem) │ ├── platform-node/ # Node.js platform implementation │ ├── platform-browser/ # Browser platform implementation │ ├── cli/ # CLI building utilities │ ├── sql/ # SQL database utilities │ ├── sql-pg/ # PostgreSQL implementation │ ├── sql-kysely/ # Kysely integration │ ├── rpc/ # Remote procedure calls │ ├── cluster/ # Distributed computing │ ├── opentelemetry/ # OpenTelemetry integration │ ├── experimental/ # Experimental features │ └── ai/ # AI integrations (OpenAI, Anthropic, etc.)
Core Modules Quick Lookup
Effect System
| Module | File | Purpose |
|---|---|---|
| Effect | | Core effect type and combinators |
| Layer | | Dependency injection layers |
| Context | | Type-safe service context |
| Scope | | Resource management |
| Runtime | | Effect execution |
Data Types
| Module | File | Purpose |
|---|---|---|
| Option | | Optional values |
| Either | | Success/failure values |
| Chunk | | Immutable arrays |
| HashMap | | Immutable hash maps |
| HashSet | | Immutable hash sets |
| List | | Immutable linked lists |
Concurrency
| Module | File | Purpose |
|---|---|---|
| Fiber | | Lightweight threads |
| Queue | | Concurrent queues |
| Ref | | Mutable references |
| Semaphore | | Concurrency limiting |
| PubSub | | Publish/subscribe |
Schema & Validation
| Module | File | Purpose |
|---|---|---|
| Schema | | Data validation & encoding |
| ParseResult | | Parsing results |
| Arbitrary | | Property-based testing |
Streaming
| Module | File | Purpose |
|---|---|---|
| Stream | | Effectful streams |
| Sink | | Stream consumers |
| Channel | | Bidirectional streaming |
Scheduling & Time
| Module | File | Purpose |
|---|---|---|
| Schedule | | Retry/repeat schedules |
| Duration | | Time durations |
| DateTime | | Date/time handling |
| Clock | | Time service |
| Cron | | Cron expressions |
Configuration
| Module | File | Purpose |
|---|---|---|
| Config | | Type-safe configuration |
| ConfigProvider | | Configuration sources |
Common Lookup Patterns
Find Function Signature
# In Effect.ts, functions are well-documented with JSDoc grep -A 20 "export const map" docs/effect/packages/effect/src/Effect.ts
Find Type Definition
# Look for interface or type alias grep -n "interface Effect<" docs/effect/packages/effect/src/Effect.ts
Find Examples in Tests
# Tests often have practical examples grep -rn "Effect.gen" docs/effect/packages/effect/test/
Check Platform APIs
# HTTP client/server ls docs/effect/packages/platform/src/Http*.ts # FileSystem cat docs/effect/packages/platform/src/FileSystem.ts
External References
- Effect Website - Official documentation
- Effect API Reference - Full API docs
- Effect Discord - Community support
Tips for Effective Lookups
- Start with MCP search - Use
for conceptual questionseffect_docs_search - Read JSDoc comments - Effect source has excellent inline documentation
- Check tests for examples - Test files show real usage patterns
- Use module tables above - Quickly navigate to the right source file
- Platform packages - HTTP, FileSystem, etc. are in
@effect/platform