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 roedyrustam/vibes-plug --skill state-management-expertgit clone --depth 1 https://github.com/roedyrustam/vibes-plugWrote 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/roedyrustam/vibes-plug/state-management-expert)<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/state-management-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/state-management-expert/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/roedyrustam/vibes-plug/state-management-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/state-management-expert.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.00077 | $0.03374 |
| Opus 5.5 | $0.00031 | $0.01350 |
| Sonnet 5.5 | $0.00015 | $0.00675 |
| Haiku 4.5 | $0.00008 | $0.00337 |
Grade A, and why
state-management-expert 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 4d 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 — 367 lines — stays where its author put it; the contents beside it link to each section on GitHub.
State Management Expert (Modern React Edition)
English
Orchestration & Integration
Connects and orchestrates with relevant domain skills:
senior-frontend— Component architecture and avoiding prop drilling in React 19.tanstack-query-expert— Decoupling server state from client state.design-system-architect— Global UI state for theme, modals, drawers, and toasts.ui-ux-pro-max— Ephemeral UI state management and user interaction feedback.visual-ui-auditor— Multimodal vision auditing of UI state transitions and modal triggers.anti-slop— Anti-slop state architecture, preventing over-engineered stores and redundant duplicated state.
Description
Expert guide for selecting and implementing the right state management solution for React and Next.js applications. Covers Zustand 5, Jotai 2, Valtio, TanStack Store, and Redux Toolkit 2, with clear guidance on when to use each, proper separation of server state (TanStack Query) from client state, and advanced patterns like slices, persistence, and devtools integration.
Trigger Conditions
- Choosing a state management library for a new React/Next.js project.
- Refactoring prop drilling or complex Context API usage.
- Implementing global UI state (modals, drawers, theme, auth session).
- Managing complex form state across multiple steps.
- Implementing undo/redo, optimistic updates, or derived state.
- Migrating from Redux to a lighter alternative.
State Category Separation (Critical First Step)
Before choosing a library, categorize your state:
| Category | Description | Solution |
|---|---|---|
| Server State | Data from APIs, databases | TanStack Query / SWR |
| URL State | Route params, search filters | useSearchParams, nuqs |
| Form State | Input values, validation errors | React Hook Form + Zod |
| UI/Local State | Modals, drawers, toggles | useState / useReducer |
| Global Client State | Theme, auth, shopping cart | Zustand / Jotai |
| Cross-tab State | Sync across browser tabs | Zustand + BroadcastChannel |
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.
- 4d ago Changed · +12 lines b761f6e2490c
- 5d ago Changed · +1 lines e4122b6118de
- 8d ago Changed · +75 lines 8ab6ce9f5501
- 17d ago Changed 65cb593c9e23
- 22d ago Changed ed45cac6bf14
- 23d ago Changed 39cf5795c6ff
- 25d ago Changed · -6 lines · +66 tokens per session f7955fc25007
- 27d ago Changed · +6 lines · -66 tokens per session cd18ae35b6d8
- 1mo ago Changed 46993d4d49dc
- 1mo ago First seen · 279 lines · 77 tokens per session scan A 615bcfa83d8d
state-management-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (113 stars, last pushed yesterday), licensed MIT. It adds 77 tokens to every session and 3,374 once invoked, about $0.0003 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.
Other skills, from other repositories
shadcn-ui
Complete shadcn/ui component library guide including installation, configuration, and implementation of accessible React components. Use when setting up shadcn/ui, installing components, building forms with React Hook Form and Zod, customizing themes with Tailwind CSS, or implementing UI patterns like buttons…
react-dev
This skill should be used when building React components with TypeScript, typing hooks, handling events, or when React TypeScript, React 19, Server Components are mentioned. Covers type-safe patterns for React 18-19 including generic components, proper event typing, and routing integration (TanStack Router, React…
react-antd-setup
Gera a estrutura completa de um projeto ReactJS configurado e pronto para usar Ant Design. Triggers on: /react-antd-setup, 'criar projeto react ant design', 'setup react antd'.
ai-engineering-toolkit
Overview of six AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.
ai-prompt-regression-testing
Use when comparing prompt changes against a fixed evaluation set: record actual model settings, required checks, missing results, judge limitations and case-level regression evidence.
remotion-production-guide
Remotion (React video framework) production guide with Apple-style design rules. Use when: 'create video with remotion', 'remotion project', 'render video', 'product demo video', 'animated video', 'video from code'. Covers project setup, animation library, spring presets, typography rules, color palettes, pacing…