settings-usage-guidelines
CommunityMake user settings persistent with Zustand
Authorgileck
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill provides guidelines for implementing and persisting user preferences in a React app using Zustand to ensure consistent settings across sessions.
Core Features & Use Cases
- Guides on subscribing to specific settings slices with the useSettingsStore hook
- Ensures settings automatically persist to localStorage via Zustand persistence
- Provides a pattern for adding new fields in types.ts and keeping UI in sync
- Use Case: A user updates theme and offline preference; settings persist across reloads
Quick Start
- Review the Settings store definitions and ensure Zustand persist is enabled
- Use the useSettingsStore hook to read and update user preferences
- Extend types.ts with new fields and update defaultSettings accordingly
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: settings-usage-guidelines Download link: https://github.com/gileck/app-template-ai/archive/main.zip#settings-usage-guidelines 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.