# tanstack-query-hook > Generate TanStack Query hooks for data fetching and mutations. Triggers on "create tanstack query hook", "generate react query", "useQuery hook", "useMutation hook". - Author: ehtbanton - Repository: ehtbanton/ClaudeSkillsRepo - Version: 20251217183102 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/ehtbanton/ClaudeSkillsRepo - Web: https://mule.run/skillshub/@@ehtbanton/ClaudeSkillsRepo~tanstack-query-hook:20251217183102 --- --- name: tanstack-query-hook description: Generate TanStack Query hooks for data fetching and mutations. Triggers on "create tanstack query hook", "generate react query", "useQuery hook", "useMutation hook". --- # TanStack Query Hook Generator Generate TanStack Query hooks for data fetching and caching. ## Output Requirements **File Output:** `use*.ts` hook files **Format:** Valid TanStack Query v5 **Standards:** TanStack Query 5.x, TypeScript ## When Invoked Immediately generate complete query and mutation hooks. ## Example Invocations **Prompt:** "Create TanStack Query hooks for products" **Output:** Complete `useProducts.ts` with queries and mutations.