Generated React Query hooks — query/mutation hooks, cache management, optimistic updates, and hook patterns. Use when asked to 'use hooks', 'React Query hooks', 'useQuery', 'useMutation', 'cache invalidation', 'optimistic updates', 'generated hooks', or when working with the generated React Query client from @constructive-io/graphql-codegen.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Generated React Query hooks — query/mutation hooks, cache management, optimistic updates, and hook patterns. Use when asked to 'use hooks', 'React Query hooks', 'useQuery', 'useMutation', 'cache invalidation', 'optimistic updates', 'generated hooks', or when working with the generated React Query client from @constructive-io/graphql-codegen.
metadata
{"author":"constructive-io","version":"1.0.0"}
Constructive Hooks
Generated React Query hooks for Constructive — typed query/mutation hooks with cache management and optimistic updates.
When to Apply
Use this skill when:
Using generated React Query hooks in a React/Next.js app
Configuring the hooks client (endpoint, auth headers)
Implementing cache invalidation and optimistic updates
Understanding the generated hook naming conventions