본문으로 건너뛰기
Skillpedia
일반 코딩48k · #4649

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가 스킬을 읽고 지침을 따릅니다.

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

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

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.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4649
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬