About fp-ts-react
A skill guide for applying fp-ts patterns in React apps, aimed at developers building typed state and data-fetching flows. It maps common cases to fp-ts types and hooks, while noting that its integration sketches need validation.
Key features
- 01Choosing Option, Either, and TaskEither
- 02Modeling request states with RemoteData
- 03Accumulating form validation errors
- 04Using ReaderTaskEither for dependency injection
Use cases
- 01Handling optional values and operation failures
- 02Building loading, error, and success interfaces
- 03Validating forms with multiple rules
- 04Applying functional patterns in React or Next.js
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ sickn33/ agentic-awesome-skills --skill fp-ts-reactAfter installing, type/fp-ts-reactin Claude Code to confirm it loaded.
Bundled filesreferences/detailed-guide.md
Details
From the project READMEFunctional Programming in React
Practical patterns for React apps. Untested integration sketches; validate external JSON and request lifecycle behavior.
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 building React apps with fp-ts for type-safe state management
- When handling loading/error/success states in data fetching
- When implementing form validation with error accumulation
- When using React 18/19 or Next.js 14/15 with functional patterns
When to Use What
| Situation | Use |
|---|---|
| Value might not exist | Option<T> |
| Operation might fail (sync) | Either<E, A> |
| Async operation might fail | TaskEither<E, A> |
| Need loading/error/success UI | RemoteData<E, A> |
| Form with multiple validations | Either with validation applicative |
| Dependency injection | Context + ReaderTaskEither |
| Prevent re-renders with fp-ts | useMemo or fp-ts-react-stable-hooks |
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.