zustand
Skill8 starsChanged 3 months agoMITView on GitHub
Modern, lightweight state management for React
- Installs packages
11 other projects use a version of this.
Adopted by
Most recently taken up by
- marcioaltoe/skillstheir own version, first seen Nov 29, 2026
- fedeya/wisp-aitheir own version, first seen Nov 29, 2026
- lobehub/lobehubtheir own version, first seen Nov 24, 2026
- TianyiLi/skillstheir own version, first seen Nov 22, 2026
- XueHua-s/ouchn-learntheir own version, first seen Nov 22, 2026
- vercel-labs/json-rendertheir own version, first seen Oct 29, 2026
Used with
Projects with it also use app-renderer-systems, typescript-advanced and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
pedronauckSkillapp-renderer-systems
Create, extend, or debug frontend domain modules organized under systems/. Covers adapters, Query hooks, local state, and public exports; excludes generic components and backend implementation.
Also in 3 projects that use this
jander99Skilltypescript-advanced
Design, implement, refactor, and debug advanced TypeScript patterns including generics, utility types, mapped types, conditional types, type guards, discriminated unions, and strict mode configuration. Use when writing type-safe code, fixing type errors, or improving type inference.
Also in 3 projects that use this
Layneformalized225Skillbrand-storytelling
Craft compelling company narrative, origin story, and pitch decks. Use for "what's our story" and investor/press narratives. For product positioning statement and taglines, use positioning-messaging instead.
Also in 3 projects that use this
martinholovskySkilltailwindcss
Tailwind CSS utility-first styling for JARVIS UI components
Also in 3 projects that use this
pedronauckSkilltui-design
Use this skill when designing terminal user interfaces, creating TUI layouts, choosing TUI color schemes, implementing keyboard navigation, building terminal dashboards, or working with any TUI framework. Activates on mentions of TUI design, terminal UI, Ratatui layout, Ink components, Textual widgets, Bubbletea views, terminal color palette, keybinding design, panel layout, split panes, terminal dashboard, box-drawing characters, sparklines, progress bars, modal dialogs, focus management, or terminal accessibility.
Also in 3 projects that use this
Kastalien-ResearchSkilleffect-ts
Comprehensive guide for Effect-TS, the functional TypeScript library. Use when building Effect applications, especially MCP servers. Covers correct APIs, common misconceptions, and MCP-specific patterns.
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 1
- belos-street/skill-kit★ 8100% same
Edited · 0
None found.
Wrote their own version · 10
- lobehub/lobe-chat★ 86ksame name
- lobehub/lobehub★ 86ksame name
- vercel-labs/json-render★ 20ksame name
- pedronauck/skills★ 659same name
- XueHua-s/ouchn-learn★ 16same name
- fedeya/wisp-ai★ 8same name
- FelipeAngeli/skills★ 2same name
- lobomfz/skills★ 2same name
- TianyiLi/skills★ 1same name
- marcioaltoe/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/nestjs-best-practices/AGENTS.mdAGENTS.md
- skills/react-native-skills/AGENTS.mdAGENTS.md
- ai-collab-system-bootstrapSkill
- ant-design-vueSkill
- belos-streetSkill
- bunSkill
- fastify-best-practicesSkill
- frontend-designSkill
- golang-best-practicesSkill
- grill-meSkill
- langchainSkill
- nestjs-best-practicesSkill
- nextjsSkill
- piniaSkill
- ragSkill
- react-best-practicesSkill
- react-best-practicesSkill
- react-native-skillsSkill
- reactSkill
- brainstormingSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- superpowersSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
- ui-templatesSkill
- unocssSkill
- vibe-flowSkill
- vue-best-practicesSkill
- vue-router-best-practicesSkill
- vueSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 58
No providers needed: Use anywhere in your app
- Distinctive: line 129
Avoid prop drilling: Use stores for shared state
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Zustand State Management
Zustand is a small, fast and scalable state-management solution using simplified flux principles. It has a comfy API based on hooks, isn't boilerplatey or opinionated.
Quick Start
npm install zustand
# or
yarn add zustand
# or
pnpm add zustandBasic Usage
import { create } from 'zustand'
interface CounterState {
count: number
increment: () => void
decrement: () => void
}
const useCounterStore = create<CounterState>((set) => ({
count: 0,
increment: () => set((state) => ({ count: state.count + 1 })),
decrement: () => set((state) => ({ count: state.count - 1 })),
}))function Counter() {
const { count, increment, decrement } = useCounterStore()
return (
<div>
<p>Count: {count}</p>
<button onClick={increment}>+</button>
<button onClick={decrement}>-</button>
</div>
)
}Key Features
- Minimal API: Simple and intuitive
- No providers needed: Use anywhere in your app
- TypeScript support: Full type inference
- Performance: Selective re-renders with selectors
- DevTools: Built-in Redux DevTools integration
- Persistence: Easy state persistence
- Middleware: Composable middleware system
Common Patterns
Selective Subscriptions
function Count() {
const count = useCounterStore((state) => state.count)
return <div>{count}</div>
}
function Controls() {
const { increment, decrement } = useCounterStore()
return (
<>
<button onClick={increment}>+</button>
<button onClick={decrement}>-</button>
</>
)
}Async Actions
const useUserStore = create<UserState>((set) => ({
user: null,
isLoading: false,
error: null,
fetchUser: async (id: string) => {
set({ isLoading: true, error: null })
try {
const response = await api.getUser(id)
set({ user: response.data, isLoading: false })
} catch (error) {
set({ error: error as Error, isLoading: false })
}
},
}))With Middleware
import { persist, devtools } from 'zustand/middleware'
const useStore = create(
devtools(
persist(
(set) => ({
// store implementation
}),
{ name: 'app-storage' }
)
)
)Best Practices
- Use selectors: Subscribe only to what you need
- Keep stores focused: One store per domain
- Type everything: Leverage TypeScript
- Use middleware: For persistence and devtools
- Avoid prop drilling: Use stores for shared state
Resources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

