effect-layers-services — effect-layers-services install effect-layers-services, community, effect-layers-services install, ide skills, TypeScript dependency injection, Effect layers and services, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for TypeScript Agents needing advanced dependency injection and infrastructure composition capabilities. effect-layers-services is a skill that allows developers to define services and provide layers for dependency injection and infrastructure composition using TypeScript and Effect.

Features

Defines services using Effect.Service and TypeScript
Provides layers for infrastructure composition, including logger, db, and http
Enables dependency injection with DI boundaries and swapping test/live implementations
Supports composition of infrastructure once for the entire app
Utilizes Effect.gen and Effect.provide for program generation and layer provision

# Core Topics

mepuka mepuka
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The effect-layers-services skill by mepuka is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for effect-layers-services install, TypeScript dependency injection, Effect layers and services.

Ideal Agent Persona

Perfect for TypeScript Agents needing advanced dependency injection and infrastructure composition capabilities.

Core Value

Empowers agents to define services and provide layers for dependency injection and infrastructure composition using Effect.Service and Effect.provide, enabling seamless swapping of test and live implementations with libraries like Effect.

Capabilities Granted for effect-layers-services

Defining services for dependency injection
Composing infrastructure layers for logging and database interactions
Swapping test and live implementations for robust testing

! Prerequisites & Limits

  • Requires Effect library integration
  • TypeScript compatibility only
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?

Perfect for TypeScript Agents needing advanced dependency injection and infrastructure composition capabilities. effect-layers-services is a skill that allows developers to define services and provide layers for dependency injection and infrastructure composition using TypeScript and Effect.

How do I install effect-layers-services?

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

What are the use cases for effect-layers-services?

Key use cases include: Defining services for dependency injection, Composing infrastructure layers for logging and database interactions, Swapping test and live implementations for robust testing.

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.

Are there any limitations for effect-layers-services?

Requires Effect library integration. TypeScript compatibility only.

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/crate/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