agentleFS
getmaatgetmaat/maat/.claude/skills/maat-retrospect/SKILL.md

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.

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
  1. Very specific:

    Follow this procedure when maat init has run in an established repository and the scaffolded documentation does not yet reflect the actual …

    line 13
  2. Very specific:

    Read the create/skip output of maat init (re-run it if needed — it is idempotent and never overwrites).

    line 35
  3. Very specific:

    Run maat check and collect every finding.

    line 39
  4. Very specific:

    Reconcile AGENTS.md: If it pre-existed, merge Ma'at's expectations (project overview, update protocol, links into docs/) into the existing …

    line 51
  5. Very specific:

    Close the loop: Run maat sync, then maat check.

    line 62
  6. Very specific:

    Every document the developer called trustworthy is reachable from docs/index.md.

    line 71
  7. Very specific:

    No document claims status: current that the developer has not reviewed.

    line 73
  8. Very specific:

    Every retrospective ADR names the constraint it documents and carries status: retrospective.

    line 74

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- 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 init skipped 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

  1. Inventory the gaps deterministically.
    • Read the create/skip output of maat init (re-run it if needed — it is idempotent and never overwrites). skip lines are pre-existing files to reconcile; create lines are scaffolds with placeholder content to fill.
    • Run maat check and collect every finding. This is your work list.
  2. 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.
  3. 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?
  4. 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.
  5. Fill the scaffolded docs under docs/ (architecture overview, guides, reference). Set honest front-matter: status: draft for anything unverified, status: current only for reviewed content. Wire up related_code so staleness tracking starts working.
  6. Derive retrospective ADRs in docs/decisions/ from the interview — one per living constraint, using the ADR template, with status: retrospective.
  7. Close the loop. Run maat sync, then maat check; fix findings until green. Show the developer the final diff.
  8. Ratchet the severities. Where .maat.yml's check section was loosened for adoption, propose tightening (warn → error) now that the corresponding gaps are closed.

Verification

  • maat check exits 0.
  • Every document the developer called trustworthy is reachable from docs/index.md.
  • No document claims status: current that the developer has not reviewed.
  • Every retrospective ADR names the constraint it documents and carries status: retrospective.

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.