effect-best-practices

Enforce Effect-TS patterns for services, errors, layers, and atoms.

1|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/jlcanela/app-project-v2 --skill effect-best-practices-jlcanela
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-best-practices
Source: https://github.com/jlcanela/app-project-v2/tree/main/.agents/skills/effect-ts-v3-best-practices
Command: npx skills add https://github.com/jlcanela/app-project-v2 --skill effect-best-practices-jlcanela

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces best practices for Effect-TS development, ensuring code is type-safe, maintainable, and observable.

Core Features & Use Cases

  • Service Definition: Guides the creation of robust Effect.Service definitions.
  • Error Handling: Promotes the use of Schema.TaggedError for clear, serializable errors.
  • Type Safety: Encourages branded types for IDs and domain modeling with Schema.
  • Use Case: When starting a new Effect-TS project or refactoring existing code, use this Skill to ensure adherence to established patterns for services, errors, and data structures.

Quick Start

Apply Effect-TS best practices to the provided code snippet.

Frequently Asked Questions about effect-best-practices

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

FAQPage Schema
How do I enforce Effect-TS best practices for service definitions?

Enforce Effect-TS best practices by using this Skill to guide the creation of robust Effect.Service definitions, ensuring strict type safety and maintainability. It validates service patterns against established coding standards.

What's the best way to handle errors in Effect-TS?

Handle errors in Effect-TS by using Schema.TaggedError to create clear, serializable errors. This Skill promotes strict error handling patterns to ensure your application failures are observable and type-safe.

How do I structure Layer composition in Effect-TS?

Structure Layer composition in Effect-TS by applying this Skill to enforce established patterns for building robust service layers. It requires adherence to strict coding standards for optimal type safety and dependency injection.

Can I use effect-atom React components with Effect.Service patterns?

Yes, you can use effect-atom React components with Effect.Service patterns. This Skill enforces best practices specifically for effect-atom integrations, ensuring your React components maintain strict type safety and adhere to Effect-TS standards.

Why use Schema for domain modeling and branded types in Effect-TS?

Use Schema for domain modeling and branded types in Effect-TS to guarantee strict type safety for IDs and data structures. This Skill enforces these patterns to maximize code maintainability and prevent type-related runtime errors.