$npx -y skills add gaia-react/gaia --skill new-hookScaffold 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 extracti
| 1 | # new-hook |
| 2 | |
| 3 | Trigger: user asks to create a custom React hook. |
| 4 | |
| 5 | ## Workflow |
| 6 | |
| 7 | 1. Confirm: name (use\*), params, return type. |
| 8 | 2. Run: `.gaia/cli/gaia scaffold hook <useFoo> [--params "a:string,b:number"] [--returns "ReturnType"]`. |
| 9 | 3. Verify: `pnpm typecheck` clean. Open and sanity-check. |