agentleFS
ShaftHQShaftHQ/chaosengine-harness/skills/pre-done-self-review/SKILL.md

pre-done-self-review

Skill5 starsChanged 6 days agoMITView on GitHub

Use before claiming Done, signing off, or handing off: reconcile every item. On demand only.

The file

We split this skill into the rules it gives an agent

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

  • 4

    Very specific

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

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

    Gaps cite a rule and an alternative: Every Blocked or Skipped row carries rule: <rule that permits it> and alt: <mock, fixture, stub, fake, …

    line 24
  2. Very specific:

    Adversarial pass: Write a ## What's missing section that answers the user's next question, "are we missing any?": items not tracked, rules …

    line 32
  3. Very specific:

    Machine check: Run the gate (pre_done_review.py), fix every finding, then re-run it:

    line 36
  4. Very specific:

    When the delivery has a work item, run intent_converge.py before Done.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Pre-done self-review

Green tests are not Done. Before you say "Done", sign off as owner or reviewer, or write a handoff note, run this review on the status report (PR body, handoff note, or status doc). Run python3 .chaos-engine/tool.py retrieve --store graphify "<task> standing rules" and python3 .chaos-engine/tool.py retrieve --store mempalace "<task> standing rules" first.

Steps

  1. Rules reconcile. List every standing rule that applies: user memory, project and harness skills, the overlay, and the item's Definition of Done. Check every tracked item against each rule, not only against tests.
  2. Gaps cite a rule and an alternative. Every Blocked or Skipped row carries rule: <rule that permits it> and alt: <mock, fixture, stub, fake, simulator, or recording tried>. If a rule says a gap needs a substitute (for example blocked-on-data needs mock coverage), build the substitute; it is not a gap you can report.
  3. Derived views match the source. Diagrams (mermaid), summaries, and counts are views of the status table. Regenerate them, or edit them in the same change as the table.
  4. Adversarial pass. Write a ## What's missing section that answers the user's next question, "are we missing any?": items not tracked, rules not checked, and evidence not opened this turn.
  5. Subtract before add. Name what was deleted or reused before any new file, skill, or abstraction. If nothing was subtracted or reused, say why the addition is the smallest correct change.
  6. Machine check. Run the gate (pre_done_review.py), fix every finding, then re-run it:

    python3 .chaos-engine/tool.py pre-done report.md          # 0 pass, 1 findings, 2 usage
    python3 .chaos-engine/tool.py pre-done report.md --json

What the gate enforces

  • A status table exists (first markdown table with a Status column; the ID is in the first column).
  • Mermaid drift: a node ID[status] or class ID status that disagrees with the row's status fails.
  • Blocked/Skipped rows without rule: or without alt: naming a substitute fail.
  • alt: must point at an existing covering test file (path or path::name); "no", "not yet", "candidate", "TODO" or "pending" before the first path fail.
  • Non-data blocks (human-only step, platform-only, feature disabled) may write alt: none-possible (<reason>) verified: <how>; data-blocked rows (test data, fixture, mock, seed, account) still need an existing covering test.
  • A "nothing"/"none" item under ## What's missing fails without a verified: <how> note.
  • Declared counts in prose (Blocked: 3) that differ from the table fail.
  • A missing or empty ## What's missing section fails.

The gate cannot judge step 1 or the quality of step 4. Those stay manual and belong in the reviewer's PDCA Check.

Intent inventory

When the delivery has a work item, run intent_converge.py before Done. A checked task is not evidence. A clean inventory reports Converged and does not add an empty convergence section. Unrequested files are listed and left in place.

python3 .chaos-engine/runtime/intent_converge.py converge work-item.md tree-dir

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.