factory
CLAUDE.md221 starsChanged 3 months agoMITView on GitHub
This repository builds and documents a reference software factory. It is the distribution repository, not an installed factory. Files under template/ are copied into another repository by install.sh. Preserve the distinction between this repository's contributor instructions and the template/CLAUDE.md instructions installed in user projects. Run the complete local suite before committing: For a focused syntax check: The tests use disposable repositories. Do not point them at a real project. - Keep install.sh idempotent and refuse to overwrite user files. -…
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- template/AGENTS.mdAGENTS.md
- template/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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
- Distinctive: line 20
Run the complete local suite before committing:
- Very specific: line 38
Keep install.sh idempotent and refuse to overwrite user files.
- Distinctive: line 39
Keep Claude Code as the canonical workflow definition.
- Distinctive: line 41
Treat the charter, required gates, merge boundary, and independent verification rule as protected behavior.
- Distinctive: line 43
Update the tutorial when a user-visible install step changes.
- Distinctive: line 46
Use small commits whose message names the behavior or documentation boundary changed.
- Distinctive: line 50
Write for a programmer trying this on a real repository.
≈ “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
Factory reference development
This repository builds and documents a reference software factory. It is the distribution
repository, not an installed factory. Files under template/ are copied into another
repository by install.sh.
Read before changing behavior
README.mdis the public map and product boundary.GETTING_STARTED.mdis the desktop-first tutorial.ARCHITECTURE.mdexplains the design decisions.LIMITS.mdrecords product constraints that may change over time.template/docs/factory/CONTRACT.mdis the harness-neutral installed policy.
Preserve the distinction between this repository's contributor instructions and the
template/CLAUDE.md instructions installed in user projects.
Validation
Run the complete local suite before committing:
bash tests/run.shFor a focused syntax check:
bash -n install.sh template/.claude/hooks/*.sh template/.claude/scripts/*.sh \
template/.factory/scripts/*.sh tests/*.sh
jq empty template/.claude/settings.json template/.codex/hooks.jsonThe tests use disposable repositories. Do not point them at a real project.
Change rules
- Keep
install.shidempotent and refuse to overwrite user files. - Keep Claude Code as the canonical workflow definition. Codex adapters should remain thin and point to the same contract and workflow files.
- Treat the charter, required gates, merge boundary, and independent verification rule as protected behavior. A convenience change must not silently weaken them.
- Update the tutorial when a user-visible install step changes.
- Date product-specific claims in
LIMITS.mdand verify them against official documentation before changing them. - Use small commits whose message names the behavior or documentation boundary changed.
Writing
Write for a programmer trying this on a real repository. Prefer exact paths, commands, expected output, and failure behavior over broad claims. State when Claude and Codex differ instead of smoothing over the difference.
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.

