react-query-hook — community react-query-hook, devteam-os, community, ide skills

v1.0.0

About this Skill

Ideal for Frontend Agents needing efficient data fetching and caching with React Query Generate a custom React Query hook for data fetching with proper typing. Use when creating API integration hooks.

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

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reviewed Landing Page Review Score: 9/11

Killer-Skills keeps this page indexable because it adds recommendation, limitations, and review signals beyond the upstream repository text.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review Locale and body language aligned
Review Score
9/11
Quality Score
60
Canonical Locale
en
Detected Body Locale
en

Ideal for Frontend Agents needing efficient data fetching and caching with React Query Generate a custom React Query hook for data fetching with proper typing. Use when creating API integration hooks.

Core Value

Empowers agents to manage data fetching and caching using TanStack Query, providing a custom React Query Hook for optimized project progress tracking with DevTeamOS webapp, leveraging Axios instance config and backend controller endpoints

Ideal Agent Persona

Ideal for Frontend Agents needing efficient data fetching and caching with React Query

Capabilities Granted for react-query-hook

Creating custom hooks for data fetching and caching
Managing project progress with DevTeamOS webapp
Optimizing data fetching with TanStack Query and Axios

! Prerequisites & Limits

  • Requires TanStack Query and React setup
  • Needs Axios instance config and backend controller endpoints
  • Limited to React-based applications

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

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

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 needing efficient data fetching and caching with React Query Generate a custom React Query hook for data fetching with proper typing. Use when creating API integration hooks.

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: Creating custom hooks for data fetching and caching, Managing project progress with DevTeamOS webapp, Optimizing data fetching with TanStack Query and Axios.

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 React setup. Needs Axios instance config and backend controller endpoints. Limited to React-based applications.

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.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

react-query-hook

Install react-query-hook, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

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!"

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

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
AI

flags

Logo of vercel
vercel

The React Framework

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
Developer