Implements global state management for React/TypeScript apps using Zustand stores, including slices, persist, devtools, immer, Next.js/SSR, and TypeScript typing.
Ships in frontend. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Lightweight state management for React. No providers, no boilerplate. Stores are hooks.
import { create } from "zustand"
interface BearState {
bears: number
increase: (by: number) => void
}
const useBearStore = create<BearState>()((set) => ({
bears: 0,
increase: (by) => set((state) => ({ bears: state.bears + by })),
}))
// In components — select only what you need
const bears = useBearStore((state) => state.bears)
create<T>()(...) — required for type inferenceset shallow-merges at one level onlyuseShallow for multi-field selectors returning new referencesdevtools must be outermost: devtools(persist(immer(...)))createStore + Context, NOT global create| Need | Solution |
|---|---|
| Basic React store | create<T>()(...) |
| Vanilla (non-React) store | createStore from zustand/vanilla |
| Use vanilla store in React | useStore(store, selector) |
| Auto-infer types (no interface) | combine middleware |
| Persist to localStorage | persist middleware |
| Redux DevTools | devtools middleware |
| Mutable-style updates | immer middleware |
| Subscribe to slices externally | subscribeWithSelector middleware |
| Multiple fields without rerender | useShallow wrapper |
| Large store modularization | Slices pattern with StateCreator |
| Next.js App Router | createStore + Context + Provider |
| Reset store | set(initialState) or store.getInitialState() |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/frontend:zustandfrom frontend
npx claudepluginhub fellipeutaka/leon --plugin frontend34 skills in this plugin
/ai-sdkAnswer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat"./baseline-uiQuickly deslop UI code by fixing spacing, hierarchy, typography, and small layout issues. Use when the interface needs a fast cleanup or polish pass./