effect-best-practices

Enforce Effect-TS best practices for services, errors, layers, and observability.

3.5k|155|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/millionco/expect --skill effect-best-practices-millionco
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-best-practices
Source: https://github.com/millionco/expect/tree/main/.agents/skills/effect-best-practices
Command: npx skills add https://github.com/millionco/expect --skill effect-best-practices-millionco

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enforces clear, opinionated patterns for Effect-TS codebases to improve consistency, safety, and maintainability.

Core Features & Use Cases

  • Service patterns with Effect.Service, Effect.fn, and Layer dependencies to simplify wiring.
  • Error patterns with Schema.TaggedError for serializable, discriminated errors across RPCs and UI.
  • Layer and atom styling guidelines to improve observability and testability in real apps.

Quick Start

Implement the recommended service, error, and layer patterns in your codebase to ensure consistency.

Frequently Asked Questions about effect-best-practices

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

FAQPage Schema
What are the best practices for Effect-TS service patterns in team projects?

Effect-TS service patterns best practices involve using Effect.Service, Effect.fn, and Layer dependencies to simplify wiring, enforce explicit service definitions, and ensure maintainability across team-based software projects.

How do I implement tagged errors in Effect-TS?

To implement tagged errors in Effect-TS, use Schema.TaggedError to create serializable, discriminated errors across RPCs and UI, enforcing pattern-based consistency and safety within your TypeScript codebase.

Does this Skill require specific dependencies for Effect-TS layer patterns?

No specific dependencies are required to enforce Effect-TS layer patterns; the Skill applies layer and atom styling guidelines directly to existing TypeScript projects using Effect-TS to improve observability and testability.

Why do I need explicit dependency declarations in Effect-TS?

Explicit dependency declarations in Effect-TS are needed to enforce robust software patterns, codify service wiring through Layers, and ensure consistency and safety in complex, maintainable codebases.

Can I use these Effect-TS patterns to improve observability?

Yes, you can use these Effect-TS patterns to improve observability by applying layer and atom styling guidelines that enforce pattern-based observability and testability in real applications.