maat-retrospect
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Retrofit Ma'at documentation onto an existing repository — inventory gaps, interview the developer, derive AGENTS.md content and retrospective ADRs.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/maat.mdcCursor rule
- docs/llms.txtllms.txt
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 0 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Follow this procedure when maat init has run in an established repository and the scaffolded documentation does not yet reflect the actual …
- Very specific: line 35
Read the create/skip output of maat init (re-run it if needed — it is idempotent and never overwrites).
- Very specific: line 39
Run maat check and collect every finding.
- Very specific: line 51
Reconcile AGENTS.md: If it pre-existed, merge Ma'at's expectations (project overview, update protocol, links into docs/) into the existing …
- Very specific: line 62
Close the loop: Run maat sync, then maat check.
- Very specific: line 71
Every document the developer called trustworthy is reachable from docs/index.md.
- Very specific: line 73
No document claims status: current that the developer has not reviewed.
- Very specific: line 74
Every retrospective ADR names the constraint it documents and carries status: retrospective.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
<!-- Generated by Ma'at — do not edit. `maat sync` regenerates this file from
the templates embedded in the binary (see ADR 0007). -->Retrospect: adopt Ma'at in an existing repository
Follow this procedure when maat init has run in an established repository
and the scaffolded documentation does not yet reflect the actual codebase.
You (the agent) supply the judgment; the maat CLI supplies deterministic
facts; the developer supplies the intent. Work in a pair-programming session —
this procedure is interactive by design.
Ground rules
- Never invent intent. Code tells you what; only the developer can confirm why. When context cannot be recovered, write "unknown — inferred from code" rather than a plausible fabrication.
- Never overwrite hand-written content without showing the developer the
change first. Files
maat initskipped are pre-existing and owned by the team. - Decisions derived after the fact are archaeology, not records. Give
them
status: retrospective, and only document decisions that still constrain the codebase today. Do not backfill superseded history. - Small steps: propose, confirm, write, re-check — one document at a time.
Procedure
- Inventory the gaps deterministically.
- Read the
create/skipoutput ofmaat init(re-run it if needed — it is idempotent and never overwrites).skiplines are pre-existing files to reconcile;createlines are scaffolds with placeholder content to fill. - Run
maat checkand collect every finding. This is your work list.
- Read the
- Explore the codebase before asking anything. Entry points, build and test commands, CI configuration, directory layout, recurring conventions, external dependencies. Form hypotheses to verify in the interview, not open questions the code already answers.
- Interview the developer. Cover at least:
- What does this project do, in one paragraph? (project summary)
- What must an agent never do here? What always? (update protocol, conventions)
- Which parts of the architecture are deliberate and constraining, and why? (candidate retrospective ADRs)
- Which existing docs/READMEs are trustworthy, which are stale?
- Reconcile AGENTS.md. If it pre-existed, merge Ma'at's expectations
(project overview, update protocol, links into
docs/) into the existing text — preserve the team's voice and rules. If it was scaffolded, replace the placeholders with interview results. - Fill the scaffolded docs under
docs/(architecture overview, guides, reference). Set honest front-matter:status: draftfor anything unverified,status: currentonly for reviewed content. Wire uprelated_codeso staleness tracking starts working. - Derive retrospective ADRs in
docs/decisions/from the interview — one per living constraint, using the ADR template, withstatus: retrospective. - Close the loop. Run
maat sync, thenmaat check; fix findings until green. Show the developer the final diff. - Ratchet the severities. Where
.maat.yml'schecksection was loosened for adoption, propose tightening (warn→error) now that the corresponding gaps are closed.
Verification
maat checkexits 0.- Every document the developer called trustworthy is reachable from
docs/index.md. - No document claims
status: currentthat the developer has not reviewed. - Every retrospective ADR names the constraint it documents and carries
status: retrospective.
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.

