Store Refactorer
CommunityModularize large stores.
Software Engineering#state management#refactoring#zustand#backward compatibility#code modularization#slice extraction
Authorshynlee04
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the issue of "god stores" (large, monolithic state management files) that become difficult to maintain, understand, and scale by systematically refactoring them into smaller, focused, and manageable slices.
Core Features & Use Cases
- Splitting Large Stores: Breaks down stores exceeding 300 lines into modular slices of 120 lines or less.
- Zustand v5 Best Practices: Implements modern Zustand patterns like individual selectors and persistence on the combined store.
- Backward Compatibility: Ensures existing codebases remain functional through facade exports.
- Use Case: Refactor a monolithic
user-profileZustand store into separate slices forauth,preferences, andactivity-logto improve maintainability and performance.
Quick Start
Analyze and split the store located at src/lib/state/user-profile.ts using the eliminate-god-stores workflow.
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: Store Refactorer Download link: https://github.com/shynlee04/idumb-v2/archive/main.zip#store-refactorer 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.