agentleFS
addyosmaniaddyosmani/factory/CLAUDE.md

factory

CLAUDE.md171 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. -…

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
  1. Distinctive:

    Run the complete local suite before committing:

    line 20
  2. Very specific:

    Keep install.sh idempotent and refuse to overwrite user files.

    line 38
  3. Distinctive:

    Keep Claude Code as the canonical workflow definition.

    line 39
  4. Distinctive:

    Treat the charter, required gates, merge boundary, and independent verification rule as protected behavior.

    line 41
  5. Distinctive:

    Update the tutorial when a user-visible install step changes.

    line 43
  6. Distinctive:

    Use small commits whose message names the behavior or documentation boundary changed.

    line 46
  7. Distinctive:

    Write for a programmer trying this on a real repository.

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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.md is the public map and product boundary.
  • GETTING_STARTED.md is the desktop-first tutorial.
  • ARCHITECTURE.md explains the design decisions.
  • LIMITS.md records product constraints that may change over time.
  • template/docs/factory/CONTRACT.md is 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.sh

For 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.json

The tests use disposable repositories. Do not point them at a real project.

Change rules

  • Keep install.sh idempotent 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.md and 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.