Eliminate God Stores

Community

Refactor large stores into modular slices.

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-profile store 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.