Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add christopherlouet/claude-base --skill state-managementgit clone --depth 1 https://github.com/christopherlouet/claude-baseWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/christopherlouet/claude-base/state-management)<a href="https://agentmods.dev/skills/christopherlouet/claude-base/state-management"><img src="https://agentmods.dev/badge/skills/christopherlouet/claude-base/state-management/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/christopherlouet/claude-base/state-management"><img src="https://agentmods.dev/badge/skills/christopherlouet/claude-base/state-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00028 | $0.00624 |
| Opus 5.5 | $0.00011 | $0.00250 |
| Sonnet 5.5 | $0.00006 | $0.00125 |
| Haiku 4.5 | $0.00003 | $0.00062 |
Grade A, and why
state-management scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.
State Management (pointer)
Library APIs, install steps and idiomatic code drift on each release and are canonical at:
- Zustand — docs.pmnd.rs/zustand (recommended default; 1.2kb, hooks-first)
- Redux Toolkit — redux-toolkit.js.org (enterprise scale, devtools)
- Jotai — jotai.org (atomic model, 2kb)
- TanStack Query — tanstack.com/query (server state, NOT global client state)
- React 19 built-ins — react.dev (
useReducer,useOptimistic,use(Context), Actions)
Decision tree (version-agnostic)
Need shared state?
├── No → useState/useReducer
└── Yes →
├── Server state (fetch + cache + invalidate) → TanStack Query / SWR
├── Forms → React Hook Form
├── Small client state (<5 stores) → Zustand
├── Large client state (>5 stores) → Redux Toolkit
└── Theme/Auth singletons → Context + useReducer
Foundation discipline (keep across releases)
- Client vs server state: never put server state in a client store (Zustand/Redux). Use TanStack Query for fetched data; Zustand/Redux for UI state, filters, drafts.
- Domain separation: one store per domain, not one global store. Easier to test and lazy-load.
- Granular selectors: subscribe to slices, not whole stores — see [[dev-react-perf]] for re-render audit when a store change cascades.
See also
dev-react-perfskill — re-render diagnosis when selectors are too broaddev-tdd— store reducers/selectors test well in isolation (no DOM needed)- Redux Toolkit — from v2.12 the
@reduxjs/toolkitnpm package ships eight skills of its own (modern Redux, slices and selectors, state ownership, side effects, RTK Query, debugging, migration) undernode_modules/@reduxjs/toolkit/skills/, versioned with the library you installed. Link the ones you need into.claude/skills/with what they declare inrequires:(modern-reduxneedsredux-dataflow); in a repository that versions.claude/, copy them instead. Screened: the 2.13.0 contents. Zustand, Jotai and TanStack Query ship none (2026-10-04).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · +1 lines 7e682a278bd9
- 2mo ago Changed · -2 lines b33b1d436b0a
- 2mo ago Changed · -6 lines 0fa66346bf36
- 3mo ago First seen · 48 lines · 28 tokens per session scan A a7c8e6cd7432
state-management is a skill published in the GitHub repository christopherlouet/claude-base (6 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 624 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
state-management compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| state-managementchristopherlouet/claude-base | Skill | 6 | today | MIT | A | 28 | Claude Code |
| generic-react-feature-developertravisjneuman/.claude | Skill | 116 | today | MIT | A | 53 | Claude Code |
| generic-react-ux-designertravisjneuman/.claude | Skill | 116 | today | MIT | A | 69 | Claude Code |
| generic-react-design-systemtravisjneuman/.claude | Skill | 116 | today | MIT | A | 59 | Claude Code |
| generic-react-code-reviewertravisjneuman/.claude | Skill | 116 | today | MIT | A | 71 | Claude Code |
| agent-react-experttravisjneuman/.claude | Skill | 116 | today | MIT | A | 11 | Claude Code |
| web-artifacts-buildertravisjneuman/.claude | Skill | 116 | today | MIT | A | 64 | Claude Code |