new-hook

SkillFiles & storage

Scaffold a new custom React hook with a Vitest test file. Use this skill whenever the user asks to "create a hook", "make a useFoo hook", "scaffold a custom React hook", "add a hook under app/hooks", or describes a piece of reusable React state/effect logic that warrants extraction into a named `use*` hook.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the new-hook skill

What this skill tells your AI

The instructions your AI receives, as published by gaia-react/gaia in .claude/skills/new-hook/SKILL.md and read by ahel’s review.

Trigger: user asks to create a custom React hook.

Workflow

  1. Confirm: name (use*), params, return type.
  2. Run: .gaia/cli/gaia scaffold hook <useFoo> [--params "a:string,b:number"] [--returns "ReturnType"].
  3. Verify: pnpm typecheck clean. Open and sanity-check.

Signals

GitHub stars
23
Forks
4
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
new-hook
Source
github.com/gaia-react/gaia