react-query-hook — react-query-hook install react-query-hook, devteam-os, community, react-query-hook install, ide skills, react-query-hook for data fetching, react-query-hook and Axios, react-query-hook for web applications, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Frontend Agents leveraging React and TanStack Query for efficient data fetching and state management. react-query-hook is a custom React hook generator using TanStack Query for data fetching, designed for managing project progress in web applications.

Features

Generates custom hooks using TanStack Query
Supports pre-flight checks for Axios instance config
Confirms backend controller endpoint URL and response type
Follows Learning Mode guidelines from _templates/learning-mode.md
Accepts hook name or API endpoint as arguments (e.g., useTasks, GET /projects/:id)

# Core Topics

MinhNhut05 MinhNhut05
[0]
[0]
Updated: 3/4/2026

Agent Capability Analysis

The react-query-hook skill by MinhNhut05 is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for react-query-hook install, react-query-hook for data fetching, react-query-hook and Axios.

Ideal Agent Persona

Ideal for Frontend Agents leveraging React and TanStack Query for efficient data fetching and state management.

Core Value

Empowers agents to create custom hooks for managing project progress, utilizing Axios for API interactions and confirming endpoint URLs and response types, all while following best practices outlined in Learning Mode guidelines.

Capabilities Granted for react-query-hook

Generating custom React hooks for data fetching
Managing project progress with TanStack Query
Confirming Axios instance configurations and backend controller endpoints

! Prerequisites & Limits

  • Requires TanStack Query and Axios setup
  • Needs access to backend controller documentation and API endpoint information
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

react-query-hook

Install react-query-hook, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Generate React Query Hook

Create a custom hook using TanStack Query for data fetching.

Important: Follow the Learning Mode guidelines in _templates/learning-mode.md

Arguments

  • $ARGUMENTS - Hook name or API endpoint (e.g., "useTasks", "GET /projects/:id")

Pre-flight (BAT BUOC)

Truoc khi tao hook, DOC:

  1. apps/web/src/services/api.ts — confirm Axios instance config
  2. Backend controller tuong ung — confirm endpoint URL + response type
  3. .context/research/PITFALLS.md > React section — TanStack Query cache stale
  4. .context/research/CONVENTIONS.md > API Response Format

Instructions

Step 1: Clarify (Query vs Mutation, parameters)

Step 2: Read backend code (KHONG SKIP) — confirm endpoint URL + data shape

Step 3: Create the hook

Query (GET):

typescript
1import { useQuery } from '@tanstack/react-query'; 2import { api } from '@/services/api'; 3 4export const use[Name] = (id: string) => { 5 return useQuery({ 6 queryKey: ['[name]', id], 7 queryFn: async () => { 8 const { data } = await api.get<[Type]>(`/[endpoint]/${id}`); 9 return data; 10 }, 11 enabled: !!id, 12 }); 13};

Mutation (POST/PATCH/DELETE):

typescript
1import { useMutation, useQueryClient } from '@tanstack/react-query'; 2import { api } from '@/services/api'; 3 4export const use[Name] = () => { 5 const queryClient = useQueryClient(); 6 return useMutation({ 7 mutationFn: async (input: [Type]) => { 8 const { data } = await api.post('/[endpoint]', input); 9 return data; 10 }, 11 onSuccess: () => { 12 queryClient.invalidateQueries({ queryKey: ['[related]'] }); 13 }, 14 }); 15};

Code Standards

  1. Naming: use[Action][Resource]useGetTasks, useCreateProject
  2. Query Keys: Array ['resource', id, params]
  3. API client: LUON dung @/services/api — KHONG tao Axios instance moi
  4. Types: Match backend DTOs — KHONG tu bia type
  5. Response: Object truc tiep (khong wrapper), list { data, total, page, limit }

Pitfalls

  • enabled: !!dependency cho dependent queries
  • invalidateQueries() sau mutation — tranh stale cache
  • Destructure dung: const { data } = await api.get(...) — data la response body

After Completion

Remind user: "Test hook trong component" + "Update PROGRESS.md!"

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is react-query-hook?

Ideal for Frontend Agents leveraging React and TanStack Query for efficient data fetching and state management. react-query-hook is a custom React hook generator using TanStack Query for data fetching, designed for managing project progress in web applications.

How do I install react-query-hook?

Run the command: npx killer-skills add MinhNhut05/devteam-os/react-query-hook. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for react-query-hook?

Key use cases include: Generating custom React hooks for data fetching, Managing project progress with TanStack Query, Confirming Axios instance configurations and backend controller endpoints.

Which IDEs are compatible with react-query-hook?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for react-query-hook?

Requires TanStack Query and Axios setup. Needs access to backend controller documentation and API endpoint information.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add MinhNhut05/devteam-os/react-query-hook. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use react-query-hook immediately in the current project.

Related Skills

Looking for an alternative to react-query-hook or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI