closeout
Skill1 starsChanged 7 months agoMITView on GitHub
Use at the END of a work session — before compacting context, before declaring work done, or when invoked via /architect-team:closeout. A double-check that reviews the changes made against the requirement and confirms the documentation has been suitably updated; if any doc in the currency inventory is lax or incomplete, it updates it itself rather than just flagging it. Fires automatically before compaction via the PreCompact hook (hooks/precompact-closeout.py), which surfaces the deterministic staleness signals from hooks/closeout_check.py. Reuses the documentation-currency discipline + the doc-updater pattern; operates from the working-tree diff so it works OUTSIDE a full pipeline run.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- chrislacey89/skillstheir own version, first seen Sep 18, 2026
- braincandy-parallel/tamarindos-workflow-kittheir own version, first seen Sep 18, 2026
- Simple-With-Us/BotFleettheir own version, first seen Sep 16, 2026
- MHouse/claude-global-memorytheir own version, first seen Jul 11, 2026
- HaipingShi/coderailtheir own version, first seen Jul 8, 2026
- 4444J99/a-i--skillstheir own version, first seen Jun 7, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- 4444J99/a-i--skills★ 17same name
- HaipingShi/coderail★ 8same name
- Simple-With-Us/BotFleet★ 4same name
- chrislacey89/skills★ 3same name
- MHouse/claude-global-memory★ 1same name
- braincandy-parallel/tamarindos-workflow-kit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository60 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- api-design-from-frontendSkill
- architect-team-pipelineSkill
- bug-fix-pipelineSkill
- cartographer-teamSkill
- claude-design-importSkill
- claude-md-efficiencySkill
- common-pipeline-conventionsSkill
- contract-first-parallelismSkill
- coverage-mappingSkill
- data-annotationsSkill
- data-dictionarySkill
- data-engineering-explorationSkill
- data-eng-pipelineSkill
- data-lineage-mappingSkill
- delivery-manifestSkill
- design-fidelity-mappingSkill
- dev-api-integration-testingSkill
- diagnostic-research-teamSkill
- documentation-currencySkill
- domain-research-teamSkill
- dynamic-value-discoverySkill
- editability-completenessSkill
- email-testingSkill
- endpoint-trace-mappingSkill
- expensive-verification-debuggingSkill
- frontend-route-mappingSkill
- helpdeskSkill
- intake-and-mappingSkill
- interaction-completenessSkill
- interaction-intuitionSkill
- interactive-mockup-discoverySkill
- intuition-map-lifecycleSkill
- mcp-output-contract-designSkill
- mempalace-integrationSkill
- mini-architect-team-pipelineSkill
- phenotype-absorptionSkill
- phenotypesSkill
- playwright-suite-builderSkill
- playwright-user-flowsSkill
- proposal-refinerSkill
- readme-stylingSkill
- reuse-first-designSkill
- root-cause-test-failuresSkill
- structure-optimizationSkill
- team-spawning-and-review-gatesSkill
- test-prod-safety-classifierSkill
- test-run-monitorSkill
- token-compressionSkill
- ux-test-builderSkill
- verification-planningSkill
- verified-agent-outputSkill
- visual-fidelity-reconciliationSkill
- visual-to-api-designSkill
- visual-verification-teamSkill
- warehouse-sql-miningSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
At any end-of-work boundary: Before you tell the user the work is done, run the closeout review.
- Distinctive: line 44
Run the engine to get the advisory staleness signals:
- Distinctive: line 62
Read the working-tree diff (git diff + git status) — what did this session change?
- Distinctive: line 74
If any doc is stale or incomplete, perform the update — do not merely suggest it.
- Very specific: line 80
When the closeout is run as an isolated/heavy pass, spawn the closeout-agent to do Steps 1-3 (it carries the bounded doc-write scope).
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Closeout (CO-1 … CO-3)
Work is not done when the code is done — it is done when the code AND the documentation reflect what changed. The closeout is the last-mile double-check that closes that gap: before context is compacted or work is declared finished, review what changed against the requirement, confirm every affected document is current, and update any that are stale — yourself, now, not as a deferred follow-up.
This skill is the contract. The deterministic staleness detector is
hooks/closeout_check.py (stdlib-only); the automatic trigger is the
PreCompact hook hooks/precompact-closeout.py. The actual review-and-update
work reuses the documentation-currency discipline (the canonical inventory
- per-doc rules) and the
doc-updaterwhole-file-rewrite pattern. Do not re-implement those — follow them.
When this fires (CO-1)
- Automatically, before compaction. The
PreCompacthook runscloseout_check.pyagainst the working tree and, when docs look stale, injects a reminder to run this skill BEFORE the compaction proceeds. The hook is a non-blocking double-check — it never blocks compaction; performing the update is your job, prompted by the reminder. - At any end-of-work boundary. Before you tell the user the work is done, run the closeout review.
- On demand via
/architect-team:closeout(read-only with--check).
The closeout is distinct from the pipeline's Phase-8 doc-currency gate: that gate
runs inside a full /architect-team run with a coverage-map + run ledger; the
closeout runs at ANY session's end (often with no pipeline artifacts at all),
working from the git working-tree diff. That is why it has its own engine + agent
(closeout-agent) rather than reusing doc-updater directly — doc-updater
depends on pipeline artifacts the closeout context may not have.
Workflow
Step 1 — Assess (deterministic signals)
Run the engine to get the advisory staleness signals:
$(command -v python3 || command -v python) hooks/closeout_check.py --repo . --jsonIt classifies the working-tree changes into code / docs / version /
new_surfaces and emits signals such as code-changed-no-doc,
version-bumped-no-changelog, source-changed-no-changelog, and
new-surface-undocumented. docs_appear_current: true with no signals means the
deterministic check is clean — but still do Step 2 (the engine catches structural
staleness, not semantic staleness).
Step 2 — Review against the requirement (CO-2)
Independently review the session's changes against the requirement / mandate (what the user actually asked for), not just against the engine signals:
- Read the working-tree diff (
git diff+git status) — what did this session change? - For each change, ask: which docs in the
documentation-currencyinventory does it affect? (README, CHANGELOG, CLAUDE.md, AGENTS.md,docs/CODEBASE_MAP.md,docs/INTEGRATION_MAP.md, per-codebase*_MAP.md, and — when present —phenotypes/README.md/SCHEMA.md.) - Is each affected doc current with what shipped? Counts, version strings, new surfaces (skills/agents/commands), new external integrations, the CHANGELOG entry, the map note ledgers.
Step 3 — Update if lax, do not just flag (CO-3)
If any doc is stale or incomplete, perform the update — do not merely suggest
it. Apply the documentation-currency per-doc rules and the doc-updater
discipline: whole-file rewrites that touch ONLY the currency inventory (never
source, tests, openspec/*, or the version source-of-truth — the version bump is
the orchestrator's job). Every update must cite the triggering change.
When the closeout is run as an isolated/heavy pass, spawn the closeout-agent
to do Steps 1-3 (it carries the bounded doc-write scope). For an inline closeout
at the end of a normal session, do the review-and-update directly per this skill.
Step 4 — Confirm
State plainly what was reviewed and what was updated (or that docs were already current). Then it is safe to compact / declare done. If you updated docs, the changes are part of the session's work — commit them with it, do not leave a stale doc and a fixed code in the same state.
Honest boundary
The engine's signals are heuristics — code-changed-no-doc can fire when the
docs genuinely needed no change (e.g. a pure refactor), and a clean engine result
does not prove semantic currency. The engine narrows where to look; the
review (Step 2) is judgment. Never silence a signal by editing a doc you did not
actually need to change, and never claim docs are current without having looked.
Cross-references
hooks/closeout_check.py— the deterministic staleness engine (the machine).hooks/precompact-closeout.py— the PreCompact trigger (CO-1).skills/documentation-currency— the canonical currency inventory + per-doc rules this skill applies.agents/closeout-agent— the spawnable worker for an isolated closeout pass.agents/doc-updater— the in-pipeline (Phase 8) counterpart + the whole-file-rewrite pattern this skill reuses.
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.

