fp-errors
하는 일
이 스킬은 프로그래밍에서 오류를 체계적으로 처리하는 방법을 가르칩니다. 오류를 여기저기서 '던지는' 대신, 프로그램이 이해하고 관리할 수 있는 정보로 다룹니다.
사용하는 경우
- ✓코드에 'try/catch' 블록이 너무 많아 복잡해질 때.
- ✓정확히 어떤 오류가 발생했는지 알아야 하는 시스템을 만들 때.
- ✓오류 처리를 더 예측 가능하고 따라가기 쉽게 만들고 싶을 때.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/fp-errors/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“'try/catch' 대신 'Either'와 'TaskEither'를 사용해 제 코드의 오류를 어떻게 관리할 수 있나요?”
매주 새 스킬 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.
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.
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
- You need to replace exception-heavy code with
EitherorTaskEither. - The task involves validation, domain errors, or clearer error contracts in TypeScript.
- You want pragmatic fp-ts error-handling guidance for real application code.
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'는 오류 처리를 코드 곳곳에 흩어 놓아 읽고 예측하기 어렵게 만들 수 있습니다. 'Either'와 'TaskEither'를 쓰면 오류 처리가 한곳에 모이고 명확해집니다.
모든 종류의 오류에 쓸 수 있나요?
특히 미리 예상할 수 있고 프로그램의 정상적인 로직의 일부인 오류, 예를 들어 검증이나 예상되는 통신 실패에 유용합니다.
상세 정보
작성자의 원본 설명
Stop throwing everywhere - handle errors as values using Either and TaskEither for cleaner, more predictable code
인기도
- GitHub 스타
- 48k
- 순위
- #4642
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.