/harness-claude:react-state-management-patternfrom harness-claude
Guides choosing the right state management approach for React applications based on scale and state type: local state, Context, Zustand, Redux Toolkit, or server state tools.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /harness-claude:react-state-management-pattern still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Choose the right state management approach for your React application scale
Decision tree:
useState / useReducer. Do not reach for global state until you have a specific problem.useContext for data that rarely changes (theme, auth, locale).// Zustand: minimal setup
import { create } from 'zustand';
interface BearStore {
count: number;
increment: () => void;
}
const useBearStore = create<BearStore>((set) => ({
count: 0,
increment: () => set((s) => ({ count: s.count + 1 })),
}));
State categories:
Library comparison (2024):
| Library | Bundle | Boilerplate | DevTools | Selectors |
|---|---|---|---|---|
| Context | 0KB | Low | No | No |
| Zustand | ~1KB | Very low | Yes | Yes |
| Jotai | ~3KB | Low | Yes | Atoms |
| Redux Toolkit | ~12KB | Medium | Excellent | Yes |
React 19 note: With the React compiler, many manual performance optimizations in Zustand/Redux become less necessary as React auto-memoizes.
https://patterns.dev/react/state-management
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
state-management, react-patterns, decision-guide, zustand, redux-toolkit
npx claudepluginhub intense-visions/harness-engineering --plugin harness-claudeRead when SKILL.md points to them.
793 skills in this plugin
/a11y-aria-patternsARIA Patterns> Apply ARIA roles, states, and properties correctly to enhance assistive technology support for custom widgets/a11y-color-contrastColor Contrast and Color Independence> Ensure sufficient color contrast ratios and never use color as the sole means of conveying information/a11y-form-patternsAccessible Form Patterns> Build accessible forms with proper labeling, grouped controls, inline validation, and clear error communicationOther plugins' skills for the same job