immutability
✓Use when modifying objects or arrays. Use when tempted to mutate function parameters. Use when state changes cause unexpected bugs.
Installation
SKILL.md
Mutation causes bugs that are hard to track - when objects change unexpectedly, debugging becomes a nightmare. Immutability makes state changes explicit and predictable.
Response: Modern JS engines optimize this. The bugs from mutation cost more than the memory.
Action: Use immutable patterns. Profile if you suspect performance issues.
Use when modifying objects or arrays. Use when tempted to mutate function parameters. Use when state changes cause unexpected bugs. Source: yanko-belov/code-craft.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/yanko-belov/code-craft --skill immutability- Source
- yanko-belov/code-craft
- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is immutability?
Use when modifying objects or arrays. Use when tempted to mutate function parameters. Use when state changes cause unexpected bugs. Source: yanko-belov/code-craft.
How do I install immutability?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/yanko-belov/code-craft --skill immutability 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/yanko-belov/code-craft
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-01