Skip to content

Claude Integration

GAIA comes with Claude Code support built-in: commands, rules, hooks, and a quality gate that work out of the box.

Commands

Scaffolding commands generate files that follow GAIA's established conventions.

CommandWhat it does
/gaia-initRemove example code, configure languages, set up a clean slate (run once)
/new-routeScaffold a route with page component, test, story, and i18n keys
/new-componentScaffold a component with optional test and story
/new-serviceScaffold an API service with requests, Zod schemas, URLs, and MSW mocks
/new-hookScaffold a custom hook with test file
/auditRun the full quality gate (typecheck, lint, test, E2E, build)
/migrateUpgrade a package to latest, apply breaking changes, run quality gate
/upgrade-react-routerCheck for and apply React Router updates

Rules

Rules activate automatically based on the file paths you're editing. You don't need to invoke them.

RuleApplies toWhat it enforces
Coding GuidelinesAll codeSimplicity, surgical changes, TDD
Component Testingapp/components/**composeStory pattern for component tests
New Routeapp/routes/**, app/pages/**Thin routes, page component conventions, route groups
API Serviceapp/services/**, test/mocks/**Request/schema/mock patterns following the Things service
i18napp/pages/**, app/components/**, app/languages/**useTranslation() conventions, key organization
Accessibilityapp/components/**, app/pages/**Keyboard nav, alt text, ARIA, focus management
ESLint FixesESLint-related filesFix in source code, not config
Test RunnerTest filesUse npm run test -- --run for CI, never bare npm test
Quality GateAll codeFull verification checklist
PR Merge WorkflowPR mergesCode review audit before every merge

Agents

Code Review Audit Agent

Runs automatically before every PR merge. Reviews security vulnerabilities, performance issues, code smells, and anti-patterns. Pre-seeded with GAIA's architecture knowledge.

Hooks

Hooks run automatically on file edits:

  • Blocking: Prevents modifying ESLint config to solve lint errors; prevents adding vitest globals to tsconfig
  • Advisory: Reminds to use useTranslation() for user-facing strings in pages/components; reminds to add Storybook stories for new components

Skills

GAIA includes custom skills for writing React code, TypeScript code, Tailwind CSS, and pixel-perfect skeleton loaders. These activate automatically based on context.

Released under the MIT License