create-store

Create persistent Zustand stores with MMKV for React Native global state.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/alejandro-technology/react-native-template --skill create-store
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-store
Source: https://github.com/alejandro-technology/react-native-template/tree/main/.claude/skills/generation/create-store
Command: npx skills add https://github.com/alejandro-technology/react-native-template --skill create-store

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create Zustand stores with optional MMKV persistence to manage global app state that persists across restarts.

Core Features & Use Cases

  • Basic store creation with Zustand for transient UI state.
  • Persistent stores using MMKV to preserve data across app restarts.
  • Modular, feature-scoped storage with a consistent file naming pattern.
  • Use cases include auth state, user preferences, and app-wide UI state.

Quick Start

Create a persistent Zustand store for a feature using MMKV and wire it into your components.

Frequently Asked Questions about create-store

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a persistent Zustand store in React Native?

To create a persistent Zustand store in React Native, define TypeScript types and use Zustand's persist middleware with MMKVStorage, placing the logic in a feature-scoped application file to ensure state survives app restarts.

Does Zustand work with MMKV for app state that persists across restarts?

Yes, Zustand works with MMKV to persist app state across restarts by integrating MMKVStorage as the storage engine within Zustand's persist middleware, enabling fast, synchronous local storage for React Native applications.

What is the best way to structure persistent global state for React Native features?

The best way to structure persistent global state is using a modular, feature-scoped pattern, placing storage logic in src/modules/{feature}/application/{feature}.storage.ts to maintain consistent file naming and separation of concerns.

Can I use Zustand for transient UI state without MMKV persistence?

Yes, you can use Zustand for transient UI state without MMKV persistence by creating a basic store that omits the persist middleware, which is ideal for managing temporary component state that does not need to survive app restarts.

When do I need MMKV persistence for React Native state management?

You need MMKV persistence for React Native state management when handling app-wide settings, auth state, and user preferences that must survive app restarts, ensuring data remains available across sessions without asynchronous database calls.

Why create feature-scoped Zustand stores instead of a single global store?

Creating feature-scoped Zustand stores instead of a single global store enforces a modular architecture, keeping feature-specific storage logic isolated within application files to improve maintainability and prevent state bloat across features.