gaia / frontend
CLAUDE.md23 starsChanged 57 days agoMITView on GitHub
The React app: routes, pages, components, services, tests, Storybook, Playwright. Its rules and skills live in frontend/.claude/ and load when Claude works inside this directory; a root session loads them by Reading this file first. pnpm <script> from frontend/ equals pnpm -C frontend <script> from the repo root, and the root package.json proxies every frontend script, so pnpm typecheck, pnpm lint, pnpm test, and pnpm pw work from either directory. The Quality Gate steps live in wiki/decisions/Quality Gate.md. The harness…
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- file-tech-debtSkill
- gaia-handoffSkill
- gaia-pickupSkill
- gaia-wikiSkill
- naming-conventionsSkill
- release-notesSkill
- tddSkill
- update-depsSkill
- update-gaiaSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Before hand-writing a component, check the shadcn registry (pnpm shadcn view <name> or pnpm shadcn search) and run pnpm shadcn add <name> …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Frontend
The React app: routes, pages, components, services, tests, Storybook, Playwright. Its rules and skills live in frontend/.claude/ and load when Claude works inside this directory; a root session loads them by Reading this file first.
Conventions
- Before hand-writing a component, check the shadcn registry (
pnpm shadcn view <name>orpnpm shadcn search) and runpnpm shadcn add <name>if it has one. - The visual styling is a deliberate neutral baseline, not a chosen design system; before designing or restyling read
frontend/.claude/rules/design-baseline.mdandwiki/concepts/Design System.md. - Rules in
frontend/.claude/rules/scope themselves to the package paths each rule'spaths:frontmatter names; skills infrontend/.claude/skills/cover scaffolding, React, TypeScript, Tailwind, a11y, ESLint fixes, and Playwright. List the directories rather than relying on a copy of the list here. - Paths in prose inside these rules and skills (
app/,test/,.playwright/,.storybook/,public/, config files) are relative tofrontend/. Shell commands are written to run from the repo root, so they carry thefrontend/prefix or use the rootpnpmproxies. .claude/,.gaia/, andwiki/paths are repo-root paths; the frontend's own units appear asfrontend/.claude/....
Running the gate
pnpm <script> from frontend/ equals pnpm -C frontend <script> from the repo root, and the root package.json proxies every frontend script, so pnpm typecheck, pnpm lint, pnpm test, and pnpm pw work from either directory. The Quality Gate steps live in wiki/decisions/Quality Gate.md.
The harness CLI lives at the repo root: run ./.gaia/cli/gaia ... from the root, or ../.gaia/cli/gaia ... from frontend/. Scaffolders find the package through .gaia/packages.json, not the working directory.
Harness workflows
Harness workflows (/gaia-spec, /gaia-plan, PR merge, release, /gaia-debt, /update-gaia) run from a root launch, never from frontend/.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

