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 girijashankarj/cursor-handbook --skill state-managementgit clone --depth 1 https://github.com/girijashankarj/cursor-handbookWrote 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/girijashankarj/cursor-handbook/state-management)<a href="https://agentmods.dev/skills/girijashankarj/cursor-handbook/state-management"><img src="https://agentmods.dev/badge/skills/girijashankarj/cursor-handbook/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/girijashankarj/cursor-handbook/state-management"><img src="https://agentmods.dev/badge/skills/girijashankarj/cursor-handbook/state-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00030 | $0.00410 |
| Opus 5.5 | $0.00012 | $0.00164 |
| Sonnet 5.5 | $0.00006 | $0.00082 |
| Haiku 4.5 | $0.00003 | $0.00041 |
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.
What it actually says
Skill: Set Up State Management
Trigger
When the user needs to manage state for a new feature or refactor existing state.
Steps
Step 1: Analyze State Requirements
- What data needs to be managed?
- Is it UI state or server state?
- How many components need access?
- How often does it change?
- Does it need to persist?
Step 2: Choose Approach
Use this decision tree:
- Single component →
useState/useReducer - Parent + 1-2 children → Lift state up
- Many components, UI state → Context / Zustand
- Server data → TanStack Query
- Form data → React Hook Form
- Complex workflows → XState
Step 3: Implement Store/Hook
Based on the chosen approach, create:
- State types/interfaces
- Store definition or custom hook
- Actions/mutations
- Selectors for derived data
Step 4: Connect Components
- Add provider (if using Context/Redux)
- Use hooks in components
- Implement loading states
- Implement error handling
- Handle empty states
Step 5: Optimize Performance
- Memoize selectors
- Avoid unnecessary re-renders
- Keep state granular
- Use React.memo for pure components
Step 6: Test
- Test store/hook in isolation
- Test components with mocked state
- Test state transitions
- Test error handling
Completion
State management is implemented, connected, optimized, and tested.
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 First seen · 57 lines · 30 tokens per session scan A f2f509c8a184
state-management is a skill published in the GitHub repository girijashankarj/cursor-handbook (33 stars, last pushed 3mo ago), licensed MIT. It adds 30 tokens to every session and 410 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-managementgirijashankarj/cursor-handbook | Skill | 33 | 3mo ago | MIT | A | 30 | Cursor |
| react-devjaansokk/cursor_tools | Skill | 1 | 11d ago | MIT | A | 29 | Claude Code |
| react-hook-builderpatricio0312rev/skills | Skill | 64 | 10mo ago | MIT | A | 52 | Claude Code, Codex |
| component-scaffold-generatorpatricio0312rev/skills | Skill | 64 | 10mo ago | MIT | A | 62 | Claude Code, Codex |
| tanstack-query-setuppatricio0312rev/skills | Skill | 64 | 10mo ago | MIT | A | 57 | Claude Code, Codex |
| zustand-state-builderpatricio0312rev/skills | Skill | 64 | 10mo ago | MIT | A | 55 | Claude Code, Codex |
| eslint-prettier-configpatricio0312rev/skills | Skill | 64 | 10mo ago | MIT | A | 58 | Claude Code, Codex |