Agent skill · Backend & API

fp-taskeither-ref

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

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill fp-taskeither-ref --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Version: 1.0.0
Path: skills/fp-taskeither-ref/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# TaskEither Quick Reference TaskEither = async operation that can fail. Like `Promise<Either<E, A>>`. ## 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 ```typescript import * as TE from 'fp-ts/TaskEither' TE.right(value) // Async success TE.left(error) // Async failure TE.tryCatch(asyncFn, toError) // Promise → TaskEither TE.fromEither(either) // Either → TaskEither ``` ## Transform ```typescript TE.map(fn) // Transform success value TE.mapLeft(fn) // Transform error TE.flatMap(fn) // Chain (fn returns TaskEither) TE.orElse(fn) // Recover from error ``` ## Execute ```typescript // TaskEither is lazy - must call () to run const result = await myTaskEither() // Either<E, A> // Or pattern match await pipe( myTaskEither, TE.match( (err) => console.error(err), (val) => console.log(val) ) )() ``` ## Common Patterns ```typescript import { pipe } from 'fp-ts/function' import * as TE from 'fp-ts/TaskEither' // Wrap fetch const fetchUser = (id: string) => TE.tryCatch( () =>

What's inside
Steps it walks through
  1. When to Use
  2. Create
  3. Transform
  4. Execute
  5. Common Patterns
  6. vs async/await
  7. Limitations
More from agentic-awesome-skills
All skills →
About this skill
What does the fp-taskeither-ref skill do?

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

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill fp-taskeither-ref --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going