fp-taskeither-ref
Quick reference for TaskEither. Use when user needs async error handling, API calls, or Promise-based operations that can fail.
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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( () =>
- When to Use
- Create
- Transform
- Execute
- Common Patterns
- vs async/await
- Limitations
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.