FP

fp-ts-errors

Replace try/catch with Either and TaskEither for predictable, type-safe error handling.

Install

mkdir -p .claude/skills/fp-ts-errors && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6532" && unzip -o skill.zip -d .claude/skills/fp-ts-errors && rm skill.zip

Installs to .claude/skills/fp-ts-errors

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

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.
162 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • →Replace runtime try/catch blocks with Either
  • →Model explicit error types as data
  • →Map operation failures to descriptive types
  • →Validate inputs into reliable result types

How it works

Replaces procedural exception control flow with monad-based return types by wrapping functional outputs in Either constructors.

Inputs & outputs

You give it
Imperative function that throws errors
You get back
Either<ErrorType, SuccessValue> wrapped result

When to use fp-ts-errors

  • →Refactor try/catch blocks
  • →Implement explicit error types
  • →Build reliable API services

About this skill

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.

When not to use it

  • →Simple scripts where overhead outweighs clarity
  • →Legacy codebases that rely on global exception handlers

Prerequisites

Fp-ts library

Limitations

  • →Increases initial code verbosity
  • →Requires team-wide adoption for effective type tracking

How it compares

It forces developers to handle errors at the type level rather than relying on runtime bubble-up behavior.

Compared to similar skills

fp-ts-errors side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
fp-ts-errors (this skill)15moReviewIntermediate
typescript-review393moNo flagsIntermediate
typescript284moNo flagsBeginner
react-patterns98moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

mobile-design

sickn33

Mobile-first design and engineering doctrine for iOS and Android apps. Covers touch interaction, performance, platform conventions, offline behavior, and mobile-specific decision-making. Teaches principles and constraints, not fixed layouts. Use for React Native, Flutter, or native mobile apps.

149231

unity-developer

sickn33

Build Unity games with optimized C# scripts, efficient rendering, and proper asset management. Masters Unity 6 LTS, URP/HDRP pipelines, and cross-platform deployment. Handles gameplay systems, UI implementation, and platform optimization. Use PROACTIVELY for Unity performance issues, game mechanics, or cross-platform builds.

142357

architect-review

sickn33

Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.

109320

angular

sickn33

Modern Angular (v20+) expert with deep knowledge of Signals, Standalone Components, Zoneless applications, SSR/Hydration, and reactive patterns. Use PROACTIVELY for Angular development, component architecture, state management, performance optimization, and migration to modern patterns.

100129

frontend-slides

sickn33

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

95195

minecraft-bukkit-pro

sickn33

Master Minecraft server plugin development with Bukkit, Spigot, and Paper APIs. Specializes in event-driven architecture, command systems, world manipulation, player management, and performance optimization. Use PROACTIVELY for plugin architecture, gameplay mechanics, server-side features, or cross-version compatibility.

9078

Search skills

Search the agent skills registry