$npx -y skills add gaia-react/gaia --skill new-routeScaffold a new route with its page component, test, story, and optional i18n keys. Use this skill whenever the user asks to "create a route", "add a new page", "scaffold /dashboard", "wire up a new route under _public+ or _session+", or anything that implies adding a file under `
| 1 | # new-route |
| 2 | |
| 3 | Trigger: user asks to add a new page/route. |
| 4 | |
| 5 | ## Workflow |
| 6 | |
| 7 | 1. Confirm with the user: name (kebab-case), group (`_public+` or `_session+`), and which of `--loader`, `--action`, `--i18n` they want. |
| 8 | 2. Run from the repo root: `.gaia/cli/gaia scaffold route <name> --group <group> [flags]` (output paths resolve from the working directory). |
| 9 | 3. Verify: `pnpm typecheck` clean; `pnpm dev` reaches the new route. |
| 10 | |
| 11 | ## Flags |
| 12 | |
| 13 | - `--group`, required, `_public+` or `_session+` |
| 14 | - `--loader`, emit a loader stub |
| 15 | - `--action`, emit an action stub |
| 16 | - `--i18n`, emit the locale file and wire the locale barrel |
| 17 | - `--dry-run`, print what would be written without touching the filesystem |
| 18 | - `--json`, print the scaffold result as JSON |