verify-frontend-state

Verifies TanStack Query usage and cache invalidation in frontend state management patterns.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/junnv93/equipment_management_system --skill verify-frontend-state
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verify-frontend-state
Source: https://github.com/junnv93/equipment_management_system/tree/main/.claude/skills/verify-frontend-state
Command: npx skills add https://github.com/junnv93/equipment_management_system --skill verify-frontend-state

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Verifies frontend state management patterns for server data handling.

Core Features & Use Cases

  • Enforces TanStack Query usage for server state management (useQuery/useMutation) and prohibits useState for server data.
  • Checks onSuccess for setQueryData usage and guides proper cache invalidation placement.
  • Encourages dynamic imports for code splitting and separation of Server/Client components.
  • Triggered after adding or modifying components or hooks to validate patterns and guardrails.

Quick Start

Run this skill after adding or modifying frontend components or hooks to validate frontend state management patterns and prevent anti-patterns.

Frequently Asked Questions about verify-frontend-state

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate frontend state management patterns for server data handling?

To validate frontend state management patterns, use this skill to enforce TanStack Query usage for server state, prohibit useState for server data, and check cache invalidation strategies after modifying SPA components or hooks.

Why should I use TanStack Query instead of useState for server data in SPAs?

You should use TanStack Query instead of useState for server data to properly separate server and client concerns. This skill enforces useQuery and useMutation to manage server state robustly and prevent anti-patterns in your frontend.

What is the best way to handle cache invalidation with TanStack Query mutations?

The best way to handle cache invalidation with TanStack Query is avoiding setQueryData inside onSuccess callbacks. This skill checks for proper cache invalidation placement and guides you toward correct server-state practices after component modifications.

How do I enforce code splitting and dynamic imports in frontend components?

To enforce code splitting and dynamic imports in frontend components, apply this skill when adding or modifying hooks. It encourages dynamic imports to separate Server and Client components, ensuring robust UI state management patterns.

Can I use this validation for any SPA frontend or only specific frameworks?

This validation targets SPA frontends using TanStack Query for state management. It applies when adding or modifying components or hooks to verify server-state practices, ensuring proper separation of server and client concerns regardless of the underlying UI framework.