ai-dev-operating-system
CLAUDE.md12 starsChanged 45 days agoMITView on GitHub
This file defines how Claude Code and other AI coding agents should behave inside this repository. The purpose of this repo is to provide a day-zero operating system for AI-assisted SaaS development: rules, agents, skills, commands, documentation layers, sprint system, changelog discipline, session logs, security gates, and prototype workflows. Listed in the order the wizard produces them: The canonical wizard is WIZARD.md. It runs in 5 phases: Do not simplify it. Do not skip phases. Phase 3 runs before Phase…
- Installs packages
In this repository28 other files it gives its agents.
- business-plan-impact-reviewSkill
- codemapSkill
- cost-watchdogSkill
- daily-standupSkill
- decision-logSkill
- deploy-vercel-supabaseSkill
- feature-scaffoldSkill
- first-100-usersSkill
- grow-sustainablySkill
- multi-ai-reviewSkill
- os-self-testSkill
- pitchSkill
- plain-portuguese-explainerSkill
- privacy-auditSkill
- processizeSkill
- product-briefSkill
- project-genesisSkill
- prototype-labSkill
- registry-pickSkill
- release-checkSkill
- research-wavesSkill
- rollback-safeSkill
- secrets-disciplineSkill
- secrets-scanSkill
- sprint-managementSkill
- sprint-roadmapSkill
- usage-monitorSkill
- verify-build-worksSkill
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Do not code before context.
- Very specific: line 12
Use START-HERE.md and WIZARD.md for new projects.
- Distinctive: line 13
Keep documentation layers separate.
- Distinctive: line 16
Use multi-agent review when relevant.
- Distinctive: line 17
No invented facts in market, competitor, legal, pricing, or regulatory claims.
- Distinctive: line 18
Use separation of concerns and keep code files under 200 lines where practical.
- Distinctive: line 20
Use stable dependencies by default.
- Distinctive: line 57
Do not simplify it. Do not skip phases.
- Distinctive: line 61
Do not move to code before all of Phase 1–4 is complete and approved.
- Very specific: line 74
Run the ones your change touches before calling it done.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 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
CLAUDE.md — AI Dev Operating System
This file defines how Claude Code and other AI coding agents should behave inside this repository.
The purpose of this repo is to provide a day-zero operating system for AI-assisted SaaS development: rules, agents, skills, commands, documentation layers, sprint system, changelog discipline, session logs, security gates, and prototype workflows.
Golden rules
- Do not code before context.
- Use
START-HERE.mdandWIZARD.mdfor new projects. Prototype (Phase 3) before specifying (Phase 4). - Keep documentation layers separate.
- Preserve decision memory in
session-log/. - Human review is mandatory for BP v0.0.1 before BP v0.0.2.
- Use multi-agent review when relevant.
- No invented facts in market, competitor, legal, pricing, or regulatory claims.
- Use separation of concerns and keep code files under 200 lines where practical.
- Generated code files should include purpose/version/sprint headers.
- Use stable dependencies by default; avoid alpha/beta unless explicitly accepted.
Required generated artifacts for a new project
Listed in the order the wizard produces them:
knowledge-base/README.md (Phase 2)
docs/business/BUSINESS-PLAN.md (Phase 2)
docs/business/PITCH.md (Phase 2)
prototype-lab/README.md (Phase 3)
docs/product/DESIGN-DIRECTION.md (Phase 3)
docs/product/PRODUCT-BRIEF.md (Phase 4)
docs/technical/TECHNICAL-PLAN.md (Phase 4)
docs/SPRINTS.md (Phase 4)
CODEMAP.md (Phase 5, generated from the code)
CHANGELOG.md
session-log/INDEX.md
session-log/YYYY-MM-DD-project-genesis.mdProject Genesis Wizard
The canonical wizard is WIZARD.md. It runs in 5 phases:
| Phase | Name | Produces |
| 1 | Largada | detached repo, project intro |
| 2 | Ideação | research, red team, BP v0.0.2 |
| 3 | Protótipo | brand, color, UI, UX — three clickable directions, one approved, and docs/product/DESIGN-DIRECTION.md written as the bridge into Phase 4 |
| 4 | Documentação | Product Brief + Technical Plan reverse-engineered from the prototype, then the roadmap |
| 5 | Chegada | Sprint 0 / Sprint 1 |
Do not simplify it. Do not skip phases.
Phase 3 runs before Phase 4, deliberately. The prototype is built from BP v0.0.2 and the research; the Product Brief and Technical Plan are then derived from the approved prototype. Never write the Product Brief first and prototype against it — a spec written before the prototype invents completeness the prototype would have shown as gaps.
Do not move to code before all of Phase 1–4 is complete and approved.
Checking your work
npm install # once — installs Biome and wires the git pre-commit hook
npm test # unit tests for the scripts and hooks
npm run lint # Biome: lint + format check (`npm run format` fixes)
node scripts/os-self-test.js # coherence of the OS itselfRun the ones your change touches before calling it done. A PostToolUse hook already runs Biome on each file you edit and reports back; CI runs all four.
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.

