batch-closeout
Skill15 starsChanged 4 months agoMITView on GitHub
Close out a batch of finished work before it goes to acceptance — clear the defect ledger, then run a multi-lens final audit. Use when a series of changes is complete and about to be verified end-to-end, released, or handed over, or when deciding whether a group of work is ready to be accepted at all.
In this repository5 other files it gives its agents.
- codex-delegationSkill
- concurrent-worktreesSkill
- delegating-to-agentsSkill
- false-greenSkill
- matt-skills-on-openspecSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Every implementation and review report carries items its author found but didn't act on — out of scope, noticed late, deemed someone else's …
- Distinctive: line 44
Only then does acceptance run: full suite, real end-to-end exercise in the authoritative environment, static gates green.
≈ “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
Batch Closeout
A batch is a group of work that will share one acceptance signal — a single end-to-end run, release, or handover. Work shares that signal because it is expensive: too slow to run per change, so changes accumulate and get validated together.
Sharing is exactly what creates the hazard. One change carrying a known defect contaminates the signal for every change in the batch: the run fails, and now nobody can tell whether the failure belongs to the new work or to something that was already understood and deferred. You lose the only clean read you were going to get.
Closeout protects that signal. It runs after the last change merges and before acceptance, in two actions, in this order: clear the ledger, then audit. What comes out the far side is meant to be final — not a layer to revisit.
The ledger
Every implementation and review report carries items its author found but didn't act on — out of scope, noticed late, deemed someone else's problem. Left in prose, they disperse: nobody re-reads a report from four changes ago, and the batch reaches acceptance carrying them.
- The moment a report mentions a defect it didn't fix, it becomes a ledger entry — tracked where you track work, not quoted in a summary.
- Clear the ledger before acceptance, never after. That ordering is the whole point of the ledger: a deferred defect surfacing during acceptance is precisely the contamination this gate exists to prevent.
- What genuinely stays unfixed becomes written, bounded debt: what it is, why it's acceptable, what it blocks. Silence is what turns a decision into a surprise.
The final audit
Once the ledger is clear, send parallel read-only agents across the whole batch — each with a different lens. Three that cover distinct ground:
- Architecture — the batch against its design intent, including the items marked "worth exploring" at the time and never revisited.
- Code — exception paths, concurrency, cache and state coherence, concentrated on the seams where new work meets old.
- Contract — every promise the work made, checked twice over: is it implemented, and is it tested?
The lenses have to be orthogonal. Three agents pointed at the same question return three copies of one report and read as thorough coverage while leaving the same ground unexamined. Pick lenses that fail differently.
These are review agents: constrain them structurally rather than by instruction (see delegating-to-agents), and read their raw findings before treating any of it as established.
Confirm before you fix
An auditor sent to find problems is under pressure to return some. Findings arrive mixed: real defects alongside confident speculation.
Split them. A confirmed finding names the input, the path, and the wrong result — fix it. A plausible one gets a dedicated agent whose job is to refute it, defaulting to refuted when the evidence runs out. What survives refutation gets fixed; what doesn't gets dropped, and neither outcome costs you the batch.
Done means
The batch is closed when the audit's severe findings are all fixed or all written down as bounded debt — no third state.
Only then does acceptance run: full suite, real end-to-end exercise in the authoritative environment, static gates green. This is the boundary the expensive full-fat gate exists for; per-change runs stay narrow so that this one gets run at all.
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.

