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

effect

하는 일

서비스, 스키마, 타입이 있는 오류, 여러 단계 워크플로를 포함해 Effect 라이브러리로 TypeScript 코드를 작성하는 방법을 안내합니다. Effect를 쓰며 정확하고 최신의 코드를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Effect를 사용하는 TypeScript 코드를 작성하거나 수정할 때.
  • ✓Effect로 만든 타입 있는 오류, 스키마, 서비스가 필요할 때.
  • ✓최신 Effect v4 패턴을 라이브러리 소스와 대조해 확인하고 싶을 때.

스킬 링크

https://github.com/Kilo-Org/kilocode/blob/main/.opencode/skills/effect/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/Kilo-Org/kilocode/blob/main/.opencode/skills/effect/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 서비스가 필요해요. 제 TypeScript 백엔드에 만들어 주세요.”

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

작동 방식

에이전트는 현재 Effect 라이브러리 소스에서 정확한 API와 예제를 확인하고, 프로젝트의 기존 패턴을 따른 뒤 코드를 작성합니다. HTTP 핸들러는 가볍게 유지하고 비즈니스 규칙은 서비스에 둡니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Effect

This codebase uses Effect for typed, composable TypeScript services, schemas, and workflows.

Source Of Truth

Use the current Effect v4 / effect-smol source, not memory or older Effect v2/v3 examples.

  1. If .opencode/references/effect-smol is missing, clone https://github.com/Effect-TS/effect-smol there. Do this in the project, not in the skill folder.
  2. Search .opencode/references/effect-smol for exact APIs, examples, tests, and naming patterns before answering or implementing Effect-specific code.
  3. Also inspect existing repo code for local house style before introducing new patterns.
  4. Prefer answers and implementations backed by specific source files or nearby repo examples.

Guidelines

  • Prefer current Effect v4 APIs and project-local patterns over old blog posts, examples, or package-memory guesses.
  • Use Effect.gen(function* () { ... }) for multi-step workflows.
  • Use Effect.fn("Name") or Effect.fnUntraced(...) for named effects when adding reusable service methods or important workflows.
  • Prefer Effect Schema for API and domain data shapes. Use branded schemas for IDs and Schema.TaggedErrorClass for typed domain errors when modeling new error surfaces.
  • Keep HTTP handlers thin: decode input, read request context, call services, and map transport errors. Put business rules in services.
  • In Effect service code, prefer Effect-aware platform abstractions and dependencies over ad hoc promises where the surrounding code already does so.
  • Keep layer composition explicit. Avoid broad hidden provisioning that makes missing dependencies hard to see.
  • In tests, prefer the repo's existing Effect test helpers and live tests for filesystem, git, child process, locks, or timing behavior.
  • Do not introduce any, non-null assertions, unchecked casts, or older Effect APIs just to satisfy types.
  • Do not answer from memory. Verify against .opencode/references/effect-smol or nearby code first.

Testing Patterns

  • Use testEffect(...) from packages/opencode/test/lib/effect.ts for tests that exercise Effect services, layers, runtime context, scoped resources, or platform integrations.
  • Use it.live(...) for filesystem, git repositories, HTTP servers, sockets, child processes, locks, real time, and other live platform behavior.
  • Run tests from package directories such as packages/opencode; never run package tests from the repo root.
  • Prefer explicit test layers over ad hoc managed runtimes. Keep dependency provisioning visible in the test file.
  • Use scoped fixtures and finalizers for resources that must be cleaned up, including temporary directories, flags, databases, fibers, servers, and global state.
자주 묻는 질문

어떤 Effect 버전을 대상으로 하나요?

v4, 곧 effect-smol을 대상으로 하며, 이전 v2나 v3 예제는 대상으로 하지 않습니다.

API는 어디에서 찾나요?

effect-smol 소스의 로컬 사본을 검색하며, 사본이 없으면 복제합니다.

오류는 어떻게 처리하나요?

도메인 오류는 태그가 붙은 오류 클래스를 사용하므로 타입으로 처리할 수 있습니다.

상세 정보

작성자의 원본 설명

Work with Effect v4 / effect-smol TypeScript code in this repo

repo: Kilo-Org/kilocode

인기도

GitHub 스타
28k
순위
#9874
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬