living-architecture / project-memory
AGENTS.md139 starsChanged 3 months agoApache-2.0View on GitHub
Project memory is the persistent cross-PRD planning layer for this repository. When doing planning, discovery, PRD drafting, architecture planning, delivery planning, or future-project discussion, read project-memory/README.md and apply these instructions. Do not invent priorities, dependencies, need levels, user pain, reasons, risks, or timing signals. Use the user's approved words as the source of truth. If a detail is unclear, ask before recording it. Architecture memory lives under project-memory/architecture/. It stores approved reusable architectural reasoning for planning. It is for lessons…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyze-sessionSkill
- dddSkill
- role-check-and-lint-error-remediationSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
32 rules. About 0 are common, 22 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
When doing planning, discovery, PRD drafting, architecture planning, delivery planning, or future-project discussion, read …
- Very specific: line 9
Read project-memory/README.md before using or changing project memory.
- Very specific: line 10
Read project-memory/priorities.md when discussing future work, sequencing, or what may come next.
- Very specific: line 11
Read project-memory/architecture/AGENTS.md and project-memory/architecture/README.md before querying, creating, or updating architecture …
- Very specific: line 12
Read relevant idea folders under project-memory/ideas/ when the user names an idea, when choosing between future candidates, or when …
- Distinctive: line 17
Do not invent priorities, dependencies, need levels, user pain, reasons, risks, or timing signals.
- Distinctive: line 19
Use the user's approved words as the source of truth.
- Distinctive: line 29
Every architecture memory must be standalone for future use.
- Distinctive: line 38
When working on architecture drafting or architecture approval:
- Very specific: line 41
Read project-memory/architecture/README.md for the frontmatter schema, approved metadata values, and memory-card structure.
- Distinctive: line 44
If a memory seems relevant but the fit is unclear, ask the user whether it applies before using it to shape a recommendation.
- Distinctive: line 45
If a reusable architecture insight emerges, propose concise memory-card text and ask the user whether it is worth saving before writing it.
- Distinctive: line 47
Never create or update an architecture memory without explicit user approval of the memory content.
- Distinctive: line 49
Do not use architecture memory to override an approved PRD, ADR, role definition, or repository convention.
- Distinctive: line 53
When the user says an item is out of scope, deferred, not for this PRD, later, future work, not now, or similar, treat it as a triage point …
- Distinctive: line 55
Ask, or confirm if the user already said clearly, whether the item is:
- Distinctive: line 62
If the item is probably or definitely needed later:
- Very specific: line 64
Create or update an idea folder at project-memory/ideas/<idea-slug>/.
- Very specific: line 65
Add or update idea.md in that folder.
- Distinctive: line 76
Keep the current PRD focused by recording only the concise scope decision there, with a link to the idea folder when useful.
- Distinctive: line 78
If the item is explicitly not needed:
- Distinctive: line 80
Do not create an idea folder unless the user confirms that the decision should be remembered more broadly.
- Distinctive: line 81
Keep it as concise out-of-scope context in the current PRD or planning artefact.
- Distinctive: line 83
If the item is uncertain:
- Distinctive: line 85
Ask a clarifying question before recording it as future work.
- Distinctive: line 86
Use the current planning artefact's open questions area if it may affect the current PRD.
- Distinctive: line 90
Use a short kebab-case slug for idea folders.
- Distinctive: line 92
Before creating a new folder, check whether a matching or overlapping idea already exists.
- Very specific: line 94
Use project-memory/ideas/README.md as the idea template source.
- Very specific: line 98
Only add or reorder items in project-memory/priorities.md when the user explicitly confirms the priority.
- Distinctive: line 104
Do not manually duplicate completed-work history into project memory.
- Distinctive: line 106
When a future planning discussion needs implementation context, retrieve it from existing PRDs, git history, GitHub issues, GitHub pull …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.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
Project Memory Agent Instructions
Project memory is the persistent cross-PRD planning layer for this repository.
When doing planning, discovery, PRD drafting, architecture planning, delivery planning, or future-project discussion, read project-memory/README.md and apply these instructions.
Reading project memory
- Read
project-memory/README.mdbefore using or changing project memory. - Read
project-memory/priorities.mdwhen discussing future work, sequencing, or what may come next. - Read
project-memory/architecture/AGENTS.mdandproject-memory/architecture/README.mdbefore querying, creating, or updating architecture memories. - Read relevant idea folders under
project-memory/ideas/when the user names an idea, when choosing between future candidates, or when updating deferred work. - During the initial
problem-definitionplanning stage, do not use project-memory content such aspriorities.mdor idea folders as source material unless the user explicitly names it. The problem definition must come from the user, user-named sources, or already-approved problem-definition content.
Updating project memory
Do not invent priorities, dependencies, need levels, user pain, reasons, risks, or timing signals.
Use the user's approved words as the source of truth. If a detail is unclear, ask before recording it.
Architecture memory
Architecture memory lives under project-memory/architecture/.
It stores approved reusable architectural reasoning for planning. It is for lessons that should help future architecture decisions, including trade-off reasoning, responsibility-placement lessons, project-convention interpretation, misunderstood Rivière role definitions, and architectural anti-patterns.
Architecture memory is advisory, not automatic enforcement.
Every architecture memory must be standalone for future use. A future reader must be able to understand the original problem, the evidence, the reasoning, and the reusable lesson without access to the conversation that produced it. Include concrete code samples, dependency examples, diagrams, or other supporting content when they make the concepts clear. Include direct references to the relevant source files, role definitions, conventions, or architecture documents. Do not record vague conclusions that require the reader to guess what code or structural relationship they describe.
When working on architecture drafting or architecture approval:
- Read
project-memory/architecture/AGENTS.md. - Read
project-memory/architecture/README.mdfor the frontmatter schema, approved metadata values, and memory-card structure. - Query memories by the actual system areas and architecture concepts relevant to the current architecture discussion.
- Include
globalsystem-area memories when their architecture concepts are relevant. - If a memory seems relevant but the fit is unclear, ask the user whether it applies before using it to shape a recommendation.
- If a reusable architecture insight emerges, propose concise memory-card text and ask the user whether it is worth saving before writing it.
Never create or update an architecture memory without explicit user approval of the memory content.
Do not use architecture memory to override an approved PRD, ADR, role definition, or repository convention. If a memory conflicts with a current artefact or convention, clarify with the user before proceeding.
Out-of-scope triage
When the user says an item is out of scope, deferred, not for this PRD, later, future work, not now, or similar, treat it as a triage point rather than a deletion.
Ask, or confirm if the user already said clearly, whether the item is:
- explicitly not needed
- probably needed later
- definitely needed later
- uncertain and needing more discussion
If the item is probably or definitely needed later:
- Create or update an idea folder at
project-memory/ideas/<idea-slug>/. - Add or update
idea.mdin that folder. - Record:
- idea or capability name
- status
- need level
- source PRD, planning session, or conversation context
- reason it was deferred from the current PRD
- confirmed priority signals, if any
- confirmed dependencies, if any
- open questions
- links to related PRDs, research, prototypes, issues, or PRs
- Keep the current PRD focused by recording only the concise scope decision there, with a link to the idea folder when useful.
If the item is explicitly not needed:
- Do not create an idea folder unless the user confirms that the decision should be remembered more broadly.
- Keep it as concise out-of-scope context in the current PRD or planning artefact.
If the item is uncertain:
- Ask a clarifying question before recording it as future work.
- Use the current planning artefact's open questions area if it may affect the current PRD.
Idea folder guidance
Use a short kebab-case slug for idea folders.
Before creating a new folder, check whether a matching or overlapping idea already exists. If it is not clear whether two ideas are the same, ask the user rather than merging them silently.
Use project-memory/ideas/README.md as the idea template source.
Priorities guidance
Only add or reorder items in project-memory/priorities.md when the user explicitly confirms the priority.
Priority entries should explain why the item is prioritised and link to supporting idea folders, PRDs, research, issues, or PRs where available.
Retrieval-first history
Do not manually duplicate completed-work history into project memory.
When a future planning discussion needs implementation context, retrieve it from existing PRDs, git history, GitHub issues, GitHub pull requests, and linked evidence.
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.

