fp-ts-errors
하는 일
이 도구는 프로그래밍 오류를 체계적으로 처리하는 방법을 가르칩니다. 오류를 무시하는 대신, 컴퓨터가 이해하고 추적할 수 있는 정보로 다룹니다.
사용하는 경우
- ✓프로그래밍 코드가 오류를 안전하고 예측 가능하게 처리하기를 원할 때.
- ✓혼란을 주는 「try/catch」 사용을 피하고 싶을 때.
- ✓발생할 수 있는 오류의 종류를 명확히 식별해야 하는 시스템을 만들 때.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/fp-ts-errors/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“코드가 오류를 안전하게 처리하도록 이 기법을 어떻게 사용할 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
오류가 발생했을 때 프로그램이 멈추는 대신, 오류를 데이터로 반환합니다. 이렇게 하면 프로그램이 정확히 무엇이 문제인지 알고 통제된 방식으로 처리할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Practical Error Handling with fp-ts
This skill teaches you how to handle errors without try/catch spaghetti. No academic jargon - just practical patterns for real problems.
Detailed Guide
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
When to Use This Skill
- When you want type-safe error handling in TypeScript
- When replacing try/catch with Either and TaskEither patterns
- When building APIs or services that need explicit error types
- When accumulating multiple validation errors
The core idea: Errors are just data. Instead of throwing them into the void and hoping someone catches them, return them as values that TypeScript can track.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문
「Either」와 「TaskEither」란 무엇인가요?
성공한 결과와 오류를 모두 명확하고 안전한 방식으로 반환하도록 코드를 정리하는 방법입니다.
「try/catch」를 피하는 이유는 무엇인가요?
「try/catch」는 특히 오류가 많을 때 코드를 읽고 이해하기 어렵게 만들 수 있습니다. 이 기법은 더 체계적인 대안을 제공합니다.
「오류는 데이터다」라는 뜻은 무엇인가요?
오류를 예기치 않은 중단으로만 보지 않고, 프로그램이 사용하고 추적할 수 있는 정보로 다룬다는 뜻입니다.
상세 정보
작성자의 원본 설명
Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.
인기도
- GitHub 스타
- 48k
- 순위
- #4649
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.