fp-immutable
CommunityImmutability patterns for safe TS state.
Software Engineering#typescript#state-management#functional-programming#immutability#readonly#spread#nested-updates
Authorwhatiskadudoing
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Immutable state updates in TypeScript can be error-prone and hard to reason about, leading to bugs when mutating shared state or nested structures. This Skill provides practical patterns to perform safe immutable updates using spread operators, readonly types, and optional tooling like Immer, enabling predictable state management and easier debugging.
Core Features & Use Cases
- Spread-based updates for arrays and objects, including nested structures.
- Readonly typing and deep immutability concepts to prevent accidental mutations.
- Common tasks and patterns for UI state management, data transformation, and safe object composition.
- Optional Immer-based workflow for complex updates while preserving immutability.
Quick Start
- Create a TypeScript project and implement a few immutable updates using the patterns shown in the Skill.
- Try updating a nested state object and verify old versions remain unchanged.
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-immutable Download link: https://github.com/whatiskadudoing/fp-ts-skills/archive/main.zip#fp-immutable 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.