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.
What this skill does
# Effect Library Lookup Quick reference for finding and understanding Effect TypeScript library APIs from local source code. ## Source Code Access Source code is available locally and on GitHub. Check local first, fall back to GitHub if not available. | Repo | Local path | GitHub | | -------------- | ----------------------------------------------------- | -------------------------------------------- | | Effect | `opensrc/repos/github.com/effect-ts/effect/` | https://github.com/effect-ts/effect | | EffectPatterns | `opensrc/repos/github.com/PaulJPhilp/EffectPatterns/` | https://github.com/PaulJPhilp/EffectPatterns | ## 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 Local Source For implementation details, search the local source at `opensrc/repos/github.com/effect-ts/effect/`: ```bash # Find a specific function grep -r "export const myFunction" opensrc/repos/github.com/effect-ts/effect/packages/effect/src/ # Find usage patterns grep -rn "Effect.gen" opensrc/repos/github.com/effect-ts/effect/packages/effect/src/ # Find type definitions grep -rn "interface MyType" opensrc/repos/github.com/effect-ts/effect/packages/effect/src/ ``` ### 3. Read Source Files Directly Core modules are at: `opensrc/repos/github.com/effect-ts/effect/packages/effect/src/<Module>.ts` Example: To understand `Effect.map`, read `opensrc/repos/github.com/effect-ts/effect/packages/effect/src/Effect.ts` ## Quick Reference | Task | Reference | | ----------------- | ------------------------ | | Module categories | `references/modules.md` | | Common patterns | `references/patterns.md` | ## Package Structure ```text opensrc/repos/github.com/effect-ts/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 | `Effect.ts` | Core effect type and combinators | | Layer | `Layer.ts` | Dependency injection layers | | Context | `Context.ts` | Type-safe service context | | Scope | `Scope.ts` | Resource management | | Runtime | `Runtime.ts` | Effect execution | ### Data Types | Module | File | Purpose | | ------- | ------------ | ---------------------- | | Option | `Option.ts` | Optional values | | Either | `Either.ts` | Success/failure values | | Chunk | `Chunk.ts` | Immutable arrays | | HashMap | `HashMap.ts` | Immutable hash maps | | HashSet | `HashSet.ts` | Immutable hash sets | | List | `List.ts` | Immutable linked lists | ### Concurrency | Module | File | Purpose | | --------- | -------------- | -------------------- | | Fiber | `Fiber.ts` | Lightweight threads | | Queue | `Queue.ts` | Concurrent queues | | Ref | `Ref.ts` | Mutable references | | Semaphore | `Semaphore.ts` | Concurrency limiting | | PubSub | `PubSub.ts` | Publish/subscribe | ### Schema & Validation | Module | File | Purpose | | ----------- | ---------------- | -------------------------- | | Schema | `Schema.ts` | Data validation & encoding | | ParseResult | `ParseResult.ts` | Parsing results | | Arbitrary | `Arbitrary.ts` | Property-based testing | ### Streaming | Module | File | Purpose | | ------- | ------------ | ----------------------- | | Stream | `Stream.ts` | Effectful streams | | Sink | `Sink.ts` | Stream consumers | | Channel | `Channel.ts` | Bidirectional streaming | ### Scheduling & Time | Module | File | Purpose | | -------- | ------------- | ---------------------- | | Schedule | `Schedule.ts` | Retry/repeat schedules | | Duration | `Duration.ts` | Time durations | | DateTime | `DateTime.ts` | Date/time handling | | Clock | `Clock.ts` | Time service | | Cron | `Cron.ts` | Cron expressions | ### Configuration | Module | File | Purpose | | -------------- | ------------------- | ----------------------- | | Config | `Config.ts` | Type-safe configuration | | ConfigProvider | `ConfigProvider.ts` | Configuration sources | ## Common Lookup Patterns ### Find Function Signature ```bash # In Effect.ts, functions are well-documented with JSDoc grep -A 20 "export const map" opensrc/repos/github.com/effect-ts/effect/packages/effect/src/Effect.ts ``` ### Find Type Definition ```bash # Look for interface or type alias grep -n "interface Effect<" opensrc/repos/github.com/effect-ts/effect/packages/effect/src/Effect.ts ``` ### Find Examples in Tests ```bash # Tests often have practical examples grep -rn "Effect.gen" opensrc/repos/github.com/effect-ts/effect/packages/effect/test/ ``` ### Check Platform APIs ```bash # HTTP client/server ls opensrc/repos/github.com/effect-ts/effect/packages/platform/src/Http*.ts # FileSystem cat opensrc/repos/github.com/effect-ts/effect/packages/platform/src/FileSystem.ts ``` ## EffectPatterns Knowledge Base Community-driven patterns and architectural guides at `opensrc/repos/github.com/PaulJPhilp/EffectPatterns/`. ```bash # Browse pattern categories ls opensrc/repos/github.com/PaulJPhilp/EffectPatterns/content/ # Search for a specific pattern grep -rn "Layer" opensrc/repos/github.com/PaulJPhilp/EffectPatterns/content/ # Read docs ls opensrc/repos/github.com/PaulJPhilp/EffectPatterns/docs/ ``` Covers: getting started, core concepts, error management, resource management, concurrency, streams, scheduling, domain modeling, schema, platform, HTTP APIs, data pipelines, testing, and observability. ## External References - [Effect Website](https://effect.website/) - Official documentation - [Effect API Reference](https://effect-ts.github.io/effect/) - Full API docs - [Effect Discord](https://discord.gg/hdt7t7jpvn) - Community support ## Tips for Effective Lookups 1. **Start with MCP search** - Use `effect_docs_search` for conceptual questions 1. **Read JSDoc comments** - Effect source has excellent inline documentation 1. **Check tests for examples** - Test files show real usage patterns 1. **Use module tables above** - Quickly navigate to the right source file 1. **Platform packages** - HTTP, FileSystem, etc. are in `@effect/platform` 1. **EffectPatterns** - Use for a
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.