effect-layers-services — for Claude Code effect-layers-services, adjunct, community, for Claude Code, ide skills, service composition, layer management, Effect.Service, Layer.merge, UserRepoTest, Claude Code

v1.0.0
GitHub

About this Skill

effect-layers-services is a skill for composing services and layers in AI coding, enabling developers to define interfaces, bind implementations, and test vs live setups.

Features

Define services using Effect.Service
Provide layers using Effect.provide
Compose layers with Layer.merge
Test vs live implementations with UserRepoTest and UserRepo.Default
Use .Default for quick live/test setup and add custom layers as needed

# Core Topics

mepuka mepuka
[0]
[0]
Updated: 11/24/2025
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

effect-layers-services

Install effect-layers-services, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Layers & Services

When to use

  • You need DI boundaries or swapping test/live implementations
  • You want to compose infra (logger, db, http) once for the app

Define Service

ts
1class UserRepo extends Effect.Service<UserRepo>()("UserRepo", { 2 sync: () => ({ find: (id: string) => Effect.succeed({ id }) }) 3}) {}

Provide Layer

ts
1const program = Effect.gen(function* () { 2 const repo = yield* UserRepo 3 return yield* repo.find("123") 4}).pipe(Effect.provide(UserRepo.Default))

Compose

ts
1const AppLayer = Layer.merge(UserRepo.Default, Logger.Default)

Test vs Live

ts
1const layer = process.env.NODE_ENV === "test" ? UserRepoTest : UserRepo.Default

Guidance

  • Services define interfaces; Layers bind implementations
  • Compose layers at the app boundary; keep handlers unaware of wiring
  • Use .Default for quick live/test setup; add custom layers as needed

Pitfalls

  • Circular layer dependencies → split modules, provide from above
  • Providing layers too deep → centralize to avoid duplication and confusion

Local Source Reference

CRITICAL: Search local Effect source before implementing

The full Effect source code is available at docs/effect-source/. Always search the actual implementation before writing Effect code.

Key Source Files

  • Layer: docs/effect-source/effect/src/Layer.ts
  • Effect: docs/effect-source/effect/src/Effect.ts
  • Context: docs/effect-source/effect/src/Context.ts

Example Searches

bash
1# Find Layer composition patterns 2grep -F "Layer.merge" docs/effect-source/effect/src/Layer.ts 3grep -F "Layer.provide" docs/effect-source/effect/src/Layer.ts 4 5# Study Effect.Service patterns 6grep -F "Effect.Service" docs/effect-source/effect/src/Effect.ts 7 8# Find Context usage 9grep -F "Tag" docs/effect-source/effect/src/Context.ts 10grep -F "make" docs/effect-source/effect/src/Context.ts 11 12# Look at Layer test examples 13grep -F "Layer." docs/effect-source/effect/test/Layer.test.ts

Workflow

  1. Identify the Layer or Service API you need
  2. Search docs/effect-source/effect/src/Layer.ts for the implementation
  3. Study the types and composition patterns
  4. Look at test files for usage examples
  5. Write your code based on real implementations

Real source code > documentation > assumptions

References

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is effect-layers-services?

effect-layers-services is a skill for composing services and layers in AI coding, enabling developers to define interfaces, bind implementations, and test vs live setups.

How do I install effect-layers-services?

Run the command: npx killer-skills add mepuka/adjunct/effect-layers-services. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

Which IDEs are compatible with effect-layers-services?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add mepuka/adjunct/effect-layers-services. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use effect-layers-services immediately in the current project.

Related Skills

Looking for an alternative to effect-layers-services or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI