effect-best-practices

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

1.0k|453|Updated Jun 21, 2017
One-click install
npx skills add https://github.com/forcedotcom/salesforcedx-vscode --skill effect-best-practices-forcedotcom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-best-practices
Source: https://github.com/forcedotcom/salesforcedx-vscode/tree/main/.claude/skills/effect-best-practices
Command: npx skills add https://github.com/forcedotcom/salesforcedx-vscode --skill effect-best-practices-forcedotcom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enforces opinionated, consistent patterns for Effect-TS codebases such as services, errors, layers, and atoms to reduce boilerplate and improve maintainability.

Core Features & Use Cases

  • Establishes a uniform approach to services, errors, layers, and atoms using Effect.Service and related patterns.
  • Guides error definitions with Schema.TaggedError and explicit catchTag/catchTags handling.
  • Provides clear patterns for layer composition, observability, and atom usage with best practices.

Quick Start

Install and apply the Effect-TS best-practice patterns to 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
How do I standardize Effect-TS service patterns across a TypeScript codebase?

Use Schema.TaggedError to define errors in your Effect-TS codebase and apply explicit catchTag or catchTags handling to standardize error management and improve maintainability.

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

Use Schema.TaggedError to define errors in your Effect-TS codebase and apply explicit catchTag or catchTags handling to standardize error management and improve maintainability.

How do I compose layers and add observability in Effect-TS?

Use React atoms with Effect-TS by applying UI-ready best-practice patterns to integrate service layers and state management seamlessly into your components.

Can I use Effect-TS best practices for React atoms and UI components?

Use React atoms with Effect-TS by applying UI-ready best-practice patterns to integrate service layers and state management seamlessly into your components.

Does Effect-TS require explicit guidelines for dependency declarations and layer wiring?

Effect-TS requires explicit guidelines for dependency declarations and layer wiring to enforce consistent patterns, accelerate team adoption, and ensure scalable codebase architecture.