fp-immutable
✓Practical immutability patterns in TypeScript - spread operators, nested updates, readonly types, and when mutation is actually fine
Installation
SKILL.md
| Add to array end | [...arr, item] | | Add to array start | [item, ...arr] | | Remove from array | arr.filter(x => x !== item) | | Update array item | arr.map(x => x.id === id ? {...x, ...updates} : x) | | Update object prop | {...obj, prop: newValue} | | Remove object prop | const {prop, ...rest} = obj | | Merge objects | {...defaults, ...overrides} |
| Deep update | Use Immer or nested spread | | Prevent mutation | readonly types or Object.freeze() |
Practical immutability patterns in TypeScript - spread operators, nested updates, readonly types, and when mutation is actually fine Source: whatiskadudoing/fp-ts-skills.
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/whatiskadudoing/fp-ts-skills --skill fp-immutable Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/whatiskadudoing/fp-ts-skills --skill fp-immutable- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is fp-immutable?
Practical immutability patterns in TypeScript - spread operators, nested updates, readonly types, and when mutation is actually fine Source: whatiskadudoing/fp-ts-skills.
How do I install fp-immutable?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/whatiskadudoing/fp-ts-skills --skill fp-immutable Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/whatiskadudoing/fp-ts-skills