state-management-expert

state-management-expert is a skill for Cursor from roedyrustam/vibes-plug. It costs 77 tokens per session (3,374 once invoked), scanned A, original, MIT.

A guide to managing shared browser-interface state in React and Next.js applications, using tools such as Zustand, Jotai, Valtio, TanStack Store, and Redux Toolkit.

In plain words
What is it for?
Use it for global UI state, multi-step forms, undo and redo, optimistic updates, derived values, or moving away from complex Context or Redux code.
Why use it?
It helps separate data fetched from a server from local interface state and choose a suitable way to share values across components.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the vibes-plug plugin — 176 skills, 9 agents, 2 MCP servers shipped together

Good fit Use it for global UI state, multi-step forms, undo and redo, optimistic updates, derived values, or moving away from complex Context or Redux code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roedyrustam/vibes-plug/state-management-expert
Install

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.

Any agent
npx skills add roedyrustam/vibes-plug --skill state-management-expert
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

Made for: Cursor.

Or install vibes-plug, the plugin that ships this one along with the rest of its 176 skills, 9 agents, 2 MCP servers.

Wrote 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.

agentmods badge for state-management-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/state-management-expert/github.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/state-management-expert)
Your own site
<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.

agentmods 80×15 button for state-management-expert

Your own site · 80×15
<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>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash b761f6e2490c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.cursor/skills/state-management-expert/SKILL.md · 367 lines

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 | Bahasa Indonesia


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

Read the full file on GitHub · 367 lines

Changes

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.

  1. 4d ago Changed · +12 lines b761f6e2490c
  2. 5d ago Changed · +1 lines e4122b6118de
  3. 8d ago Changed · +75 lines 8ab6ce9f5501
  4. 17d ago Changed 65cb593c9e23
  5. 22d ago Changed ed45cac6bf14
  6. 23d ago Changed 39cf5795c6ff
  7. 25d ago Changed · -6 lines · +66 tokens per session f7955fc25007
  8. 27d ago Changed · +6 lines · -66 tokens per session cd18ae35b6d8
  9. 1mo ago Changed 46993d4d49dc
  10. 1mo ago First seen · 279 lines · 77 tokens per session scan A 615bcfa83d8d

Subscribe to this mod's changes

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.

Related

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…

chidekina/aria-superpowers · 73 tokens

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…

chidekina/aria-superpowers · 66 tokens

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'.

chidekina/aria-superpowers · 50 tokens

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.

sickn33/agentic-awesome-skills · 47 tokens

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.

sickn33/agentic-awesome-skills · 37 tokens

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…

AnastasiyaW/codex-claude-code-config · 150 tokens