rome
CLAUDE.md691 starsChanged 2 months agoMITView on GitHub
A pnpm monorepo. All code lives under packages/* and rome_apps/*. Runtime dependencies are declared in packages/core — the root package.json holds only the dev toolchain, and its scripts delegate to the right workspace via pnpm --filter. A shell that already has node on the PATH is not the devShell. The devShell pins the Node major the repo builds against, and pnpm install compiles native modules against whichever Node runs it. A tree installed out
- Reads credentials
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- rome_apps/AGENTS.mdAGENTS.md
- docs/CLAUDE.mdCLAUDE.md
- rome_apps/CLAUDE.mdCLAUDE.md
- add-oauth-integrationSkill
- babysit-prSkill
- color-auditSkill
- file-issueSkill
- loop-northstarSkill
- loop-reconcileSkill
- release-rome-imageSkill
- respond-to-reviewSkill
- secondary-text-auditSkill
- todos-to-github-projectSkill
- ux-semantics-auditSkill
- validate-oauth-integrationSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
14 rules. About 0 are common, 1 is distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Before opening a PR, read docs/authoring/prs.md.
- Distinctive: line 16
Before changing code, follow the established patterns.
- Very specific: line 17
Before explaining a concept or asserting how a surface behaves, check docs/ and link instead of re-deriving.
- Very specific: line 18
Before building or editing an app, read rome_apps/CLAUDE.md.
- Very specific: line 19
When writing prose (docs, PR text), follow docs/authoring/WRITING.md.
- Very specific: line 20
When writing or editing code comments, follow docs/authoring/comments.md.
- Very specific: line 22
When running the fullstack local loop, use pnpm dev:all — containerized Rome with tsx --watch, plus rome-obs, Traefik, and the Rsbuild dev …
- Very specific: line 23
When changing a file the container does not watch (package.json, container env), run docker compose restart <service>.
- Very specific: line 24
When doing frontend-only work in packages/web, use pnpm start:web:mock.
- Very specific: line 25
When verifying a change, run pnpm typecheck on the host, then pnpm test:unit, then pnpm dev:all and confirm the rome container reaches Rome …
- Very specific: line 26
When adding a runtime dependency, declare it in packages/core.
- Very specific: line 28
When accessing the database, go through a repository.
- Very specific: line 29
When adding config, validate it with Zod in packages/core/src/config.ts and add it to packages/core/.env.example.
- Very specific: line 30
When logging, use createLogger(component) from packages/core/src/logger.ts.
≈ “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
Rome
A pnpm monorepo. All code lives under packages/* and rome_apps/*. Runtime dependencies are declared in packages/core — the root package.json holds only the dev toolchain, and its scripts delegate to the right workspace via pnpm --filter.
packages/core/(@rome/core) — backend runtime: Hono server, agent/action/event subsystems, DB, channel adapters.src/index.tswires the object graph via dependency injection.packages/web/(rome-web) — Rsbuild SPA dashboard, served by the backend. Guardian-only.packages/ui/(@rome-os/ui) — shared React component kit for the dashboard and apps.packages/app-runtime-sdk/(@rome-os/app-runtime) andpackages/app-web-sdk/(@rome-os/app-web-sdk) — SDKs consumed by apps.packages/desktop/(rome-desktop) — Electron shell.packages/cdp-client/(rome-cdp-client) — standalone CDP client.rome_apps/*— runtime-loaded apps (plugins), each a workspace package.
Playbook
- Before opening a PR, read
docs/authoring/prs.md. - Before changing code, follow the established patterns.
- Before explaining a concept or asserting how a surface behaves, check
docs/and link instead of re-deriving. - Before building or editing an app, read
rome_apps/CLAUDE.md. - When writing prose (docs, PR text), follow
docs/authoring/WRITING.md. - When writing or editing code comments, follow
docs/authoring/comments.md. - When a PR touches
@rome-os/app-runtime,@rome-os/app-web-sdk, or@rome-os/ui, choose the Conventional Commit type by consumer impact. Test-only changes usetest:and do not bump the package; releasable changes usefeat:/fix:/feat!:(orBREAKING CHANGE:in the body). release-please publishes them to npm from Conventional Commits, with no per-PR changeset file. Full flow indocs/releases.md. - When running the fullstack local loop, use
pnpm dev:all— containerized Rome withtsx --watch, plus rome-obs, Traefik, and the Rsbuild dev server.pnpm startandpnpm start:webskip the production-shaped wiring, so reach for them only to debug the host process. - When changing a file the container does not watch (
package.json, container env), rundocker compose restart <service>. - When doing frontend-only work in
packages/web, usepnpm start:web:mock. - When verifying a change, run
pnpm typecheckon the host, thenpnpm test:unit, thenpnpm dev:alland confirm the rome container reachesRome startedindocker logs. For UI changes, also exercise the feature in the browser — type checks and tests verify code correctness, not feature correctness. - When adding a runtime dependency, declare it in
packages/core. - When bumping
@playwright/test, re-pin thelayout-invariantscontainer image in.github/workflows/ci.ymlto the matching release's digest (docker buildx imagetools inspect mcr.microsoft.com/playwright:v<version>-nobleprints it). The image ships the browsers, the pin decides the client, and they are separate edits. Check the guard step's parse ofplaywright install --dry-runin the same pass, since it reads a CLI label that upstream can reword. The guard fails readably when the image and the client disagree. - When accessing the database, go through a repository. Core schema is
packages/core/src/db/schema.ts, app schemas arerome_apps/*/db/schema.ts. - When adding config, validate it with Zod in
packages/core/src/config.tsand add it topackages/core/.env.example. - When logging, use
createLogger(component)frompackages/core/src/logger.ts.
Traps
A shell that already has node on the PATH is not the devShell. The devShell pins the Node major the repo builds against, and pnpm install compiles native modules against whichever Node runs it. A tree installed outside the devShell loads only under that same wrong Node. The install, the type check, and the whole suite still pass together on it. Run nix develop first. To repair such a tree, run pnpm rebuild -r, because pnpm install reports it as up to date and changes nothing.
Imports carry .js extensions even for TypeScript files. The repo is "type": "module". Inside packages/core, @/* maps to ./src/*.
Biome's npm binary does not run on the host. NixOS cannot execute it, so pnpm lint belongs in CI or the dev container. On the host, use the nixpkgs biome from the devShell directly.
A migration that breaks an interface first breaks every consumer that has not migrated yet. Keep existing interfaces, schemas, and contracts working while new behavior lands alongside them, and sequence the break last or behind a switch.
A new dev-only branch in a production path ships to production. Prefer an existing config or env switch, and put seeding and fixtures in setup scripts such as scripts/dev-up.sh.
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.

