agentleFS
mattgierhartmattgierhart/PRD-driven-context-engineering/CLAUDE.md

PRD-driven-context-engineering

CLAUDE.md182 starsChanged 6 months agoMITView on GitHub

Mission: Build software in lockstep with the PRD Version Lifecycle. Authority: Load README.md → PRD.md → CLAUDE.md → Active EPIC. Core Rule: If it's not in the ID Graph (Specs), it doesn't exist. Rules are loaded automatically from .claude/rules/*.md. The pages in SoT/html/ are for humans, not for context loading: - Read: load the markdown SoT files for task context, never the HTML. The HTML duplicates markdown content in a heavier format — loading it wastes tokens. - Write: when…

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is 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.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write: when you add or change a SoT entry, mirror it in the companion page in the same session — duplicate the matching <article …

    line 36
  2. Distinctive:

    Conflict rule: if HTML and markdown disagree, markdown wins.

    line 43

≈ “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

CLAUDE.md — Agent Operating Guide

Mission: Build software in lockstep with the PRD Version Lifecycle. Authority: Load README.md → PRD.md → CLAUDE.md → Active EPIC. Core Rule: If it's not in the ID Graph (Specs), it doesn't exist.

Rules are loaded automatically from .claude/rules/*.md.

Quick Reference

  • Lifecycle Guide: README.md
  • ID System: SoT/SoT.UNIQUE_ID_SYSTEM.md
  • SoT Index: SoT/SoT.README.md
  • EPIC Template: epics/EPIC_TEMPLATE.md
  • Active Work: epics/
  • Domain Profile: .claude/domain-profile.yaml
  • Hook Contract: .claude/hooks/HOOK_CONTRACT.md
  • Agent Registry: .claude/agents/
  • Rules: .claude/rules/
  • SoT HTML Companion: SoT/html/ — human-review renders of each SoT file
  • Deliverables (concept): docs/DELIVERABLES_CONCEPT.md — proposed input-mode layer where humans emit SoT markdown

SoT HTML Companion (when to use it)

The pages in SoT/html/ are for humans, not for context loading:

  • Read: load the markdown SoT files for task context, never the HTML. The HTML duplicates markdown content in a heavier format — loading it wastes tokens.
  • Write: when you add or change a SoT entry, mirror it in the companion page in the same session — duplicate the matching <article class="entry" id="PREFIX-XXX"> block and fill the placeholders. Entry anchors must equal IDs; cross-references must be a.id hyperlinks.
  • Surface: at gate reviews, EPIC handoffs, or whenever a human asks to "see" the specs, point them at SoT/html/index.html (opens from file://, no build).
  • Extend: a new SoT file (via ghm-sot-builder) gets a companion page — follow "Extending the library" in SoT/html/README.md and register it in index.html.
  • Conflict rule: if HTML and markdown disagree, markdown wins; fix the HTML.

When in doubt, follow the Source of Truth.

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.