effect-program-design
Qué hace
Guía al agente de IA para construir aplicaciones de TypeScript con Effect, con servicios claros, errores tipados y capas fáciles de probar. Está pensada para desarrolladores que usan la biblioteca Effect y quieren código mantenible.
Cuándo usarla
- ✓Cuando estás creando o cambiando un servicio o una capa en una aplicación de Effect.
- ✓Cuando necesitas errores tipados, configuración o trabajadores en segundo plano en un programa de Effect.
- ✓Cuando quieres pruebas que sustituyan dependencias por versiones falsas en los límites reales.
Link de la skill
https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/effect-program-design/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Ayúdame a añadir un servicio de envío de correos a mi app de Effect, con un buen manejo de errores y pruebas.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente primero revisa las convenciones de tu proyecto y la versión de Effect instalada, y después escribe código que sigue los patrones de la biblioteca. Usa interfaces de servicio pequeñas para que cada parte sea fácil de probar.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Effect Program Design
Build production Effect v4 programs with small domain-shaped interfaces, typed success and error channels, declared dependencies, observable operation boundaries, and tests that substitute layers at real seams. This skill combines broad Effect mechanics with HumanLayer's deep-module, capture-before-narrow, and real-seam design standards.
Source rule
Check these before guessing:
- the nearest
CLAUDE.md/AGENTS.mdand project-local conventions; - the installed
effect,@effect/*, and related package versions and declarations; - the Effect v4 docs at https://effect-ts-effect-smol.mintlify.app/;
- the pinned/upstream source (
~/projects/effect-smol) when docs do not settle an API.
unstable-tagged modules (effect/http, effect/rpc, effect/process, ...) can change between beta/minor versions. Typecheck examples against the installed version. Local
project conventions take precedence unless the task explicitly changes them.
References
Read only the references relevant to the task; read all matching branches when work crosses concerns.
- Public module depth and domain-shaped APIs:
references/DEEP_MODULES.md. Read this any time you are modifying or creating services or layers - this is the core of our effect philosophy! - Service tags, live layers, file placement,
Effect.fn, or runtime composition:references/SERVICES_LAYERS.md. - Tagged errors, capture-before-narrow, spans, logs, or Sentry:
references/ERRORS_OBSERVABILITY.md. - Records, schemas, variants, optionality, brands, decoding, or construction:
references/SCHEMA_DATA_MODELING.md. - Config, env vars, providers, or secrets:
references/CONFIG_SECRETS.md. - HTTP/SDK/DB boundaries, Drizzle rows, JSONB, or transactions:
references/BOUNDARIES_PERSISTENCE.md. - Scopes, acquisition, concurrency, best-effort work, or workflow transitions:
references/RESOURCES_CONCURRENCY.md. - Retry, repeat, polling, pacing, backoff, or workers:
references/SCHEDULING_WORKERS.md. - Streams, queues, pubsub, pagination, backpressure, or long-lived consumers:
references/STREAMS.md. - Memoization, TTL caches, request dedupe, or batching:
references/CACHING_BATCHING.md. - Outgoing HTTP, provider adapters, status/decode handling, or HTTP retry:
references/HTTP_CLIENTS.md. - Effect tests, test services, clocks, synchronization, fakes, or real seams:
references/TESTING.md. - Platform-neutral services and the native-API boundary:
references/PLATFORM.md. - Node runtime, filesystem, path, crypto, child processes, sockets/WebSocket, Redis, or workers:
references/PLATFORM_NODE.md. - Effect Atom or React reactive Effect state:
references/EFFECT_ATOM.md. - TypeScript safety, Predicate refinements, Match dispatch, naming, collections, imports, and escape hatches:
references/TYPESCRIPT_CONTRACTS.md. - Local exemplars and foils:
references/REPOSITORY_EXAMPLES.md.
The creed
Deep modules. The interface is the cost and the hidden implementation is the benefit. Public operations use domain inputs and outputs; callers do not supply credentials, clients, rows, or other internals.
Everything stays in Effect. Keep expected failures in
E, dependencies inR, and resources in scopes. Do not pass services, layers, effects, or errors as ordinary values when composition expresses the relationship.Two-tier errors. Classify rich internal failures, capture them, then narrow to a small caller-actionable union. Prefer typed
catchTag/catchTags; never recover withinstanceof,Match, or manual_tagcomparisons. Respect the error channel! Errors stay in the error channel and are not passed as valuesObserve operations. Every public operation has a stable
Effect.fn("domain.operation"), an explicitEffect.withSpan, or both. Capture raw actionable/unexpected failures before narrowing or swallowing them.
Use Effect's logger to log info, errors, etc -yield* Effect.logError- do NOT pass in external loggers. Errors MUST also be captured to sentry as soon as they surface before they are re-mapped or transformed.someEffect.pipe( Effect.tapError(Effect.logError), Effect.tapError((e) => Effect.sync(() => Sentry.captureException(e))), )Test at real seams. Use
@effect/vitest, layers, deterministic test services, and real infrastructure where behavior depends on it. Assert both the result/error and externally v
Preguntas frecuentes
¿Necesito ya conocer Effect?
Algo de conocimiento de TypeScript ayuda, pero la habilidad guía al agente con los patrones de Effect.
¿Se ajusta a la versión de Effect que tengo instalada?
Sí. Comprueba la versión instalada y verifica los tipos de los ejemplos frente a ella, porque algunos módulos cambian entre versiones.
¿Qué partes de Effect cubre?
Cubre servicios, esquemas, errores, configuración, concurrencia, streams, caché y clientes HTTP.
Detalles
Descripción original del autor
Design, write, review, and test production Effect v4 programs: deep services and layers, schemas, tagged errors, observability, Config, persistence, resources, concurrency, schedules, workers, streams, caches, HTTP clients, Effect platform services (Node filesystem/path/crypto/process/socket), and Effect Atom integrations. Use for any Effect application or adapter work.
repo: humanlayer/humanlayer
Popularidad
- Estrellas en GitHub
- 13 mil
- Posición en el ranking
- #11384
- Licencia
- Apache-2.0
- Actualizada
- 31/10/2026
Comentarios
- …
Más skills de este repositorio
asd-ste100
13 milEnseña a tu agente a reescribir inglés confuso en frases cortas de un solo significado, fáciles de leer para personas y para otros programas.
better-github-skill
13 milAyuda a tu agente a revisar el estado de una pull request, leer sus comentarios de revisión y averiguar por qué falló una compilación de CI, usando scripts de GitHub ya preparados.
calldiff
13 milAyuda a tu agente a comparar las cadenas de llamadas a funciones de un código entre dos versiones de git, para que una revisión de código vea qué comportamiento cambió.
chrome-devtools-cli
13 milPermite que tu agente controle Chrome desde la terminal para abrir páginas, hacer clic, rellenar formularios y tomar instantáneas de páginas, para automatizar y probar el navegador.
Skills parecidas
api-connector-builder
280 milHace que tu agente cree nuevas conexiones de API siguiendo el patrón existente. Úsalo para añadir una integración más sin inventar otra forma de hacer las cosas.
api-design
280 milAyuda a tu agente a diseñar APIs REST según las buenas prácticas. Es útil para definir cómo se comunican las APIs, cómo se muestran los errores y cómo organizar los datos.
backend-patterns
280 milAyuda a tu agente con patrones de arquitectura del lado del servidor y optimización de bases de datos. Es útil para crear o revisar código que se ejecuta en el servidor.