본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)13k · #11384

effect-program-design

하는 일

이 스킬은 명확한 서비스, 타입이 있는 오류, 테스트하기 쉬운 레이어를 갖춘 Effect TypeScript 애플리케이션을 만들도록 AI 에이전트를 안내합니다. Effect 라이브러리를 쓰며 유지보수하기 쉬운 코드를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Effect 애플리케이션의 서비스나 레이어를 만들거나 바꿀 때.
  • ✓Effect 프로그램에 타입이 있는 오류, 설정, 백그라운드 작업자가 필요할 때.
  • ✓실제 경계에서 가짜 의존성으로 바꿔 끼우는 테스트를 원하는 경우.

스킬 링크

https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/effect-program-design/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/effect-program-design/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Effect 앱에 이메일 발송 서비스를 추가해 주세요. 적절한 오류 처리와 테스트도 포함해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 먼저 프로젝트의 관례와 설치된 Effect 버전을 확인한 뒤, 라이브러리 패턴을 따르는 코드를 씁니다. 각 부분을 쉽게 테스트할 수 있도록 작은 서비스 인터페이스를 씁니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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:

  1. the nearest CLAUDE.md / AGENTS.md and project-local conventions;
  2. the installed effect, @effect/*, and related package versions and declarations;
  3. the Effect v4 docs at https://effect-ts-effect-smol.mintlify.app/;
  4. 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

  1. 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.

  2. Everything stays in Effect. Keep expected failures in E, dependencies in R, and resources in scopes. Do not pass services, layers, effects, or errors as ordinary values when composition expresses the relationship.

  3. Two-tier errors. Classify rich internal failures, capture them, then narrow to a small caller-actionable union. Prefer typed catchTag/catchTags; never recover with instanceof, Match, or manual _tag comparisons. Respect the error channel! Errors stay in the error channel and are not passed as values

  4. Observe operations. Every public operation has a stable Effect.fn("domain.operation"), an explicit Effect.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))),
    )
    
  5. 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

자주 묻는 질문

Effect를 이미 알아야 하나요?

TypeScript 지식이 있으면 도움이 되지만, 이 스킬이 Effect 패턴을 따라 에이전트를 안내합니다.

설치된 Effect 버전에 맞추나요?

네. 설치된 버전을 확인하고, 일부 모듈이 릴리스마다 바뀌므로 예제를 그 버전에 맞춰 타입 검사합니다.

Effect의 어떤 부분을 다루나요?

서비스, 스키마, 오류, 설정, 동시성, 스트림, 캐싱, HTTP 클라이언트를 다룹니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
13k
순위
#11384
라이선스
Apache-2.0
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬