building-with-effect

Structure TypeScript workflows with Effect.fn, ServiceMap, and Layer composition.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/felixnorden/skills --skill building-with-effect
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: building-with-effect
Source: https://github.com/felixnorden/skills/tree/main/skills/building-with-effect
Command: npx skills add https://github.com/felixnorden/skills --skill building-with-effect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Builds reliable, typed agent skills by guiding users on how to structure Effect-powered workflows, manage errors, dependencies, and resources in TypeScript.

Core Features & Use Cases

  • Clear patterns for Effect.fn usage to define self-contained skills
  • ServiceMap-based dependency injection with explicit Layer composition
  • Concurrency, resource management, and error handling patterns for real-world tasks
  • Migration guidance from v3 to v4 and best-practice recommendations

Quick Start

Apply the patterns to scaffold a small skill that exposes a method with Effect.fn and wires it into a Layer.

Frequently Asked Questions about building-with-effect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle errors and dependencies in TypeScript using Effect?▼

Effect manages errors and dependencies as first-class concepts in TypeScript, enabling you to compose type-safe workflows using Layer-based dependency injection and explicit error handling.

What is the best way to structure Effect workflows with Layer-based dependency injection?▼

The best way to structure Effect workflows is by using Effect.fn to define self-contained methods and wiring them into a Layer, utilizing ServiceMap for explicit dependency injection and composition.

How do I migrate Effect workflows from v3 to v4?▼

To migrate Effect workflows from v3 to v4, apply the provided migration guidance covering structural updates for Effect.fn, ServiceMap, and Layer-based composition to align with best practices.

Can I use Effect for concurrency and resource management in TypeScript?▼

Yes, you can use Effect for concurrency and resource management in TypeScript, applying specific patterns to build robust services that manage resources and concurrent operations safely.

When should I use ServiceMap for dependency injection in Effect?▼

You should use ServiceMap for dependency injection in Effect when you need explicit Layer composition to wire services, ensuring type-safe workflows and clear management of dependencies across domains.