SkillHub / domain-memory
AGENTS.md1 starsChanged 2 months agoMITView on GitHub
A file-backed Registry of reviewed domain facts, and the commands that read it and change it under review. The next Agent inherits what this one established about the domain, instead of re-deriving it from the code and guessing where it was wrong. Nothing here is specific to one Agent or one host. The durable state is JSON files in the repository, the behavior is Markdown plus Python, and the review boundary is Git. Python 3.10 or later, its standard library,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,691 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 repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- brief-a-subagentSkill
- ci-by-restSkill
- domain-memorySkill
- false-greenSkill
- flaky-testSkill
- istqb-test-designSkill
- mutation-checkSkill
- parallel-writersSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Run readiness --repo-root <repo> first.
- Very specific: line 19
Treat only reviewed records as facts.
- Distinctive: line 32
Search for what already exists, and use it or extend it.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
Domain Memory
A file-backed Registry of reviewed domain facts, and the commands that read it and change it under review. The next Agent inherits what this one established about the domain, instead of re-deriving it from the code and guessing where it was wrong.
Nothing here is specific to one Agent or one host. The durable state is JSON files in the repository, the behavior is Markdown plus Python, and the review boundary is Git.
Running the commands
python3 scripts/registry_tools.py <command> [options]Python 3.10 or later, its standard library, and git on the path. Nothing to install, no environment to prepare, and the script runs from any working directory. Output is JSON except for success and error lines. A non-zero exit is a refusal that names its reason; read the reason rather than retrying.
Before you rely on anything here
Run readiness --repo-root <repo> first. It distinguishes an empty repository, a greenfield design, a brownfield implementation, and a memory whose evidence has died. Its signals route your work; they are not domain facts.
Treat only reviewed records as facts. A candidate is handoff material and authorizes no implementation. reviewed-empty means there is no model to depend on yet, so go back to the decisions, contracts, code, and tests.
Choosing what to do
SKILL.md beside this file is where the work is chosen. In the complete package it routes the four lifecycle capabilities and the hygiene check to a page under skills/; in a standalone bundle it is the one capability the bundle carries. It is plain Markdown, so read it whether or not your host has a concept of Skills.
references/script-api.md is the command surface and what each command guarantees. references/host-integration.md is for wiring this into a host that dispatches work to several Agents.
When you are the one writing the code
The reviewed facts say what must stay true. These six hold for every change to source, and they are stated here because this page is the one every Agent reads:
- Run
quality-gates --repo-root <repo>. The checks it lists must pass, and a check met by a change of form alone is not met: when one forces a change, remove the cause it points at. Whenstandardisnone, say so in your report and claim no standard the repository does not enforce. - Search for what already exists, and use it or extend it.
- Take names from the reviewed terms. A business number, such as a threshold, a rate, or a limit, gets the domain's name and one home, and every place it appears uses that name.
- Every rule you add or move ends with a test in the repository that fails when the rule is broken. Prove it with
counterfactual, once for each rule:survivedmeans no test protects that rule, so write the test and run it again. A comparison you run once and discard does not count. Report each rule that survived before you wrote its test. - An external system goes behind a Port named in the domain's terms and declared where a decision can reach it without loading the provider. Address, credentials, and status codes stay in the Adapter. A failure the domain survives is handed to the caller or recorded, never dropped.
- A mechanical change gets the change, the tests, and a short report.
The reasoning, the evidence each claim needs, and the cases where these do not apply are in references/code-expression.md and references/ports-and-adapters.md.
What it will not do
It will not promote a record to reviewed without an approval path that can be checked from outside the package, and it will not let a command claim a result it did not compute. Both refusals are the point: a fact nobody can check is worse than a gap you can see.
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.

