Agent skill · software engineering · sickn33

fp-taskeither-ref

Quick reference for TaskEither. Use when user needs async error handling, API calls, or Promise-based operations that can fail.

Why this skill is useful

Provides specific patterns and commands for using TaskEither in async error handling that the AI wouldn't reliably generate on its own.

What it needs

About 2k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.

What this skill does

TaskEither Quick Reference TaskEither = async operation that can fail. Its shape is () => Promise<Either<E, A>>: construction is lazy. When to Use You need a quick fp-ts reference for async operations that can fail. The task involves API calls, Promise wrapping, or composing asynchronous error-handling pipelines. You want a concise cheat sheet for TaskEither operators and patterns. Create Transform Execute Common Patterns vs async/await Use TaskEither when you need typed errors for async operations. 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. Reference scope These are fp-ts 2.x fragments. Supply application variables, types, validators and imports, and check the installed version. map does not catch thrown exceptions. Task has no typed error channel; an improperly wrapped promise can still reject. Use tryCatch at fallible boundaries. Supply a caller-owned timeout/abort signal and validate response schemas. Parallel application calls need bounded concurrency and authorization for their data, costs and effects; ApplyPar does not cancel work automatically on failure. Error callbacks must redact secrets and private payloads. Official API: fp-ts modules.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sickn33/fp-taskeither-ref--58f7cd

View the source on GitHub

Browse the @skills marketplace