Agent skill
tanstack-query-standards
TanStack Query standards (keys, caching, invalidation, error handling)
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/tanstack-query-standards
Metadata
Additional technical details for this skill
- stack
- node-react-next
- style
- solid-clean-code
SKILL.md
What I do
Je standardise l'usage de TanStack Query (React Query) :
- query keys centralisées
- invalidations précises
- gestion des erreurs
Rules
queryKeyvia une factoryqk.*.queryFnappelle un service injecté.- Mutations invalident les clés impactées uniquement.
Default guidance (adjust per feature)
retry: 0 ou 1 si l'erreur est probablement transitoire.staleTime: 0 pour données très fraîches, sinon 30s-5m.
Anti-patterns
invalidateQueries()global sans predicate.- Mélanger logique d'UI (formatage) dans
queryFn.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?