Eliminate God Stores
CommunityRefactor large stores into modular slices.
Software Engineering#typescript#developer tools#state management#refactoring#zustand#code modularization
Authorshynlee04
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the complexity and maintainability issues arising from large, monolithic Zustand stores (god stores) by systematically breaking them down into smaller, focused, and manageable slices.
Core Features & Use Cases
- Modularization: Splits large stores (>300 lines) into smaller slices (≤120 lines each).
- Backward Compatibility: Ensures existing functionality remains intact through facade exports.
- Modernization: Facilitates adoption of Zustand v5 patterns like individual selectors.
- Use Case: Refactoring a complex
user-profilestore that has grown too large and unmanageable, improving code clarity and reducing the risk of bugs.
Quick Start
Refactor the large Zustand store located at src/lib/state/user-profile.ts into smaller, manageable slices.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: Eliminate God Stores Download link: https://github.com/shynlee04/idumb-v2/archive/main.zip#eliminate-god-stores 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.