smithery/oalkabouss

tanstack-query-standards

TanStack Query standards (keys, caching, invalidation, error handling)

Installation

$ npx skills add smithery/oalkabouss --skill tanstack-query-standards

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/oalkabouss.

npx skills add smithery/oalkabouss

Browse all from smithery/oalkabouss

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Declared

Skill metadata

Parsed from SKILL.md frontmatter.

LicenseMIT
Compatibilityopencode
Declared agents opencode
More metadata
stack
node-react-next
style
solid-clean-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 797 B
  • docs SUMMARY.md 102 B

History

  1. First recorded snapshot · 0 installs

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

  • queryKey via une factory qk.*.
  • queryFn appelle 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.