cosmos-os
CLAUDE.md3 starsChanged 4 months agoMITView on GitHub
Never run tsc without --noEmit/-b — emitted .js files shadow .tsx in Vite and the app silently serves stale code.
In this repository2 other files it gives its agents.
- add-scenarioSkill
- add-serviceSkill
The file
Files
The Cosmos — notes for Claude Code
Commands
npm run dev # dev server on :5173
npm run build # tsc -b && vite build — the gate for every change
npm run validate # data sanity: ids resolve, phaseIds unique, spacing okNever run tsc without --noEmit/-b — emitted .js files shadow .tsx in Vite and the app silently serves stale code.
Layout
src/scenarios/— the entire universe as typed data:services.ts,topics.ts,scenarios.ts(domains + scenarios),owners.ts(teams),steps/<domain>.ts, barrel indata.ts. Most changes belong here.src/map/— SVG map rendering:Map.tsx(orchestration, layout edit mode),edge-resolver.ts(how a step becomes edges; special-cases the expandablerealtime-hub),edge-builder.ts(bezier geometry).src/components/— UI shell: intro, playback controls, step panel, tech icons.drift-sync/— the nightly honesty pipeline (its own README)..claude/skills/—add-serviceandadd-scenario: THE documented procedures for growing the map. Follow them rather than improvising.
Invariants
phaseIdglobal, unique, never reused; every step'sphaseequals its scenario'sphaseId.- Step
from/to/via/throughmust exactly matchSERVICES[].id/TOPICS[].id. - Service
hexmust match itscolorCSS token hue (src/styles/tokens.css); topics alwaysTOPIC_COLOR/TOPIC_HEX. - World is 2400×1400; capsules ≥150px apart center-to-center.
- Demo data is fictional (AstroMart). Keep it that way — no real company names/endpoints.
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.

