dev-create-hook

Community

Create robust React Query hooks for server state.

AuthorHerbertJulio
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Automates the creation of a client hook for server state management in a Next.js module, ensuring consistent React Query patterns and reducing boilerplate.

Core Features & Use Cases

  • Generate a typed useQuery-based hook with caching and error handling, wired to a service and adapter.
  • Provide a useMutation hook for mutations with cache invalidation and error handling.
  • Enforce project structure by placing the hook in hooks/use[Name].ts and ensuring proper TypeScript typings.
  • Use cases include adding server state to an existing module or building new features that fetch and mutate data via APIs.

Quick Start

Provide the hook name and let the tool generate a typed React Query hook wired to your service and adapter layers.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dev-create-hook
Download link: https://github.com/HerbertJulio/specialist-agent/archive/main.zip#dev-create-hook

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.