fp-refactor
CommunityRefactor imperative TS code to fp-ts patterns.
Authorwhatiskadudoing
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides patterns and strategies for migrating imperative TypeScript code to functional FP-ts patterns, improving maintainability and composability.
Core Features & Use Cases
- Refactoring strategies: replace imperative control flow with fp-ts constructs like Either, TaskEither, and Reader.
- Step-by-step migration: identify errors, change return types to FP types, remove exceptions, and update call sites.
- Use Case: When migrating a legacy TS project, you can gradually refactor modules to FP-style with minimal disruption.
Quick Start
Install recommended libraries and start migrating a small module to fp-ts, documenting changes.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: fp-refactor Download link: https://github.com/whatiskadudoing/fp-ts-skills/archive/main.zip#fp-refactor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.