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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.
- If
.opencode/references/effect-smolis missing, clonehttps://github.com/Effect-TS/effect-smolthere. Do this in the project, not in the skill folder. - Search
.opencode/references/effect-smolfor exact APIs, examples, tests, and naming patterns before answering or implementing Effect-specific code. - Also inspect existing repo code for local house style before introducing new patterns.
- 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")orEffect.fnUntraced(...)for named effects when adding reusable service methods or important workflows. - Prefer Effect
Schemafor API and domain data shapes. Use branded schemas for IDs andSchema.TaggedErrorClassfor 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-smolor nearby code first.
Testing Patterns
- Use
testEffect(...)frompackages/opencode/test/lib/effect.tsfor 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 소스의 로컬 사본을 검색하며, 사본이 없으면 복제합니다.
오류는 어떻게 처리하나요?
도메인 오류는 태그가 붙은 오류 클래스를 사용하므로 타입으로 처리할 수 있습니다.
상세 정보
인기도
- GitHub 스타
- 28k
- 순위
- #9874
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
chart
28k에이전트가 차트를 요청하면 데이터를 렌더링하는 차트 도구를 사용해 막대, 선, 원, 산점도 등의 차트를 그리도록 돕습니다.
jetbrains-sandbox
28k에이전트가 Linux 클라우드 샌드박스에 IntelliJ를 설치하고, 검사나 자동화를 위해 IDE를 조작할 수 있는 브라우저 화면과 도구를 제공하도록 돕습니다.
rtl-aware-development
28k에이전트가 논리적 레이아웃과 방향이 섞인 텍스트의 분리를 사용해, 오른쪽에서 왼쪽으로 쓰는 언어에서도 작동하는 인터페이스를 만들도록 가르칩니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.