Claude
Skill
new-route
Scaffold 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 `
Virus-scanned
Reviewed automatically before listing.
Download
gaia-react-gaia-.claude_skills_new-route-6bb0226.zip · 0 KB
Install
skills CLI
npx skills add https://github.com/gaia-react/gaia/tree/main/.claude/skills/new-route
Claude Code
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install gaia-react-gaia@llmmart
Git
git clone https://github.com/gaia-react/gaia.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole gaia-react/gaia collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
new-route
Trigger: user asks to add a new page/route.
Workflow
- Confirm with the user: name (kebab-case), group (
_public+or_session+), and which of--loader,--action,--i18nthey want. - Run from the repo root:
.gaia/cli/gaia scaffold route <name> --group <group> [flags](output paths resolve from the working directory). - Verify:
pnpm typecheckclean;pnpm devreaches the new route.
Flags
--group, required,_public+or_session+--loader, emit a loader stub--action, emit an action stub--i18n, emit the locale file and wire the locale barrel--dry-run, print what would be written without touching the filesystem--json, print the scaffold result as JSON
Files (gaia)
-
SKILL.md 1.1 KB
--- name: new-route description: Scaffold 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 `app/routes/` with a matching `app/pages/{Group}/{PascalName}Page/` folder. model: haiku --- # new-route Trigger: user asks to add a new page/route. ## Workflow 1. Confirm with the user: name (kebab-case), group (`_public+` or `_session+`), and which of `--loader`, `--action`, `--i18n` they want. 2. Run from the repo root: `.gaia/cli/gaia scaffold route <name> --group <group> [flags]` (output paths resolve from the working directory). 3. Verify: `pnpm typecheck` clean; `pnpm dev` reaches the new route. ## Flags - `--group`, required, `_public+` or `_session+` - `--loader`, emit a loader stub - `--action`, emit an action stub - `--i18n`, emit the locale file and wire the locale barrel - `--dry-run`, print what would be written without touching the filesystem - `--json`, print the scaffold result as JSON
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.