closeout
Skill17 starsChanged 6 months agoApache-2.0View on GitHub
Session-end ritual that walks back through plans authored and atoms touched in this session, assigning each a closure status (DONE-NNN, IRF-XXX-NNN, or `~/.Codex/plans/abandoned/`). Verifies git state. Produces CLOSEOUT_SUMMARY.md. Triggers on "/closeout", "close out the session", "end of session", "wrap up", "session close", or before any planned `git push`. Addresses the 90.4% plan-orphan rate documented in docs/evaluation/self-review-2026-05-05/stale-plans-and-orphan-commits.md.
- Commits and pushes
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
- paulingram/claude-skillstheir own version, first seen May 16, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- HaipingShi/coderail★ 8same name
- Simple-With-Us/BotFleet★ 4same name
- chrislacey89/skills★ 3same name
- MHouse/claude-global-memory★ 1same name
- paulingram/claude-skills★ 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 repository172 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- algorithmic-artSkill
- audio-engineering-patternsSkill
- canvas-designSkill
- creative-writing-craftSkill
- generative-art-algorithmsSkill
- generative-art-deploymentSkill
- generative-music-composerSkill
- interactive-theatre-designerSkill
- modular-synthesis-philosophySkill
- movement-notation-systemsSkill
- narratological-algorithmsSkill
- natural-center-extractionSkill
- react-three-fiber-patternsSkill
- reality-tv-narrative-analyzerSkill
- script-analysis-dramaturgicalSkill
- theme-factorySkill
- three-js-interactive-builderSkill
- corpus-persona-extractionSkill
- data-ingestion-pipelineSkill
- data-pipeline-architectSkill
- data-storytelling-analystSkill
- market-gap-analysisSkill
- ml-experiment-trackerSkill
- prompt-atom-formalizationSkill
- sql-query-optimizerSkill
- systemic-product-analystSkill
- time-series-analystSkill
- accessibility-patternsSkill
- agent-testing-patternsSkill
- api-design-patternsSkill
- artifacts-builderSkill
- backend-implementation-patternsSkill
- browser-extension-patternsSkill
- cli-tool-designSkill
- code-refactoring-patternsSkill
- code-review-checklistSkill
- coding-standards-enforcerSkill
- community-platform-patternsSkill
- configuration-managementSkill
- continuous-learning-agentSkill
- data-backup-patternsSkill
- database-migration-patternsSkill
- deployment-cicdSkill
- docker-containerizationSkill
- dotfile-systems-architectSkill
- error-handling-logging-patternsSkill
- fastapi-patternsSkill
- feature-workflow-orchestratorSkill
- frontend-design-systemsSkill
- fullstack-starter-packSkill
- gcp-resource-optimizerSkill
- htmx-interaction-patternsSkill
- iterative-code-explorationSkill
- json-schema-designSkill
- mcp-builderSkill
- mcp-server-orchestratorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 6 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Before any non-trivial git push (the close-out should precede the push)
- Distinctive: line 37
When the session has produced 3+ files, plans, or atoms and the user is signaling end
- Distinctive: line 43
Run, in parallel where possible:
- Very specific: line 69
ABANDONED: no closure reference, no follow-on commits.
- Distinctive: line 71
Ask the user for ambiguous cases.
- Very specific: line 75
If data/prompt-registry/prompt-atoms.json was touched this session, identify atoms that were closed in this session and confirm their …
- Distinctive: line 77
If not (most sessions), skip.
- Very specific: line 84
No stray exports/temp files in workspace root (ls /Users/4jp/Workspace/*.txt should be empty)
- Very specific: line 86
If stray exports exist (the auto-named 2026-MM-DD-NNNNNN-this-session-being-continued-from-a-previous-c.txt pattern), move them to …
- Very specific: line 90
If the active repo has a CLAUDE.md carrying <!-- ORGANVM:AUTO:START --> / <!-- ORGANVM:AUTO:END --> sentinels, run the gate:
- Distinctive: line 96
If it exits non-zero, the autogen tail is older than 7 days.
- Very specific: line 116
If .conductor/active-handoff.md exists in any active repo, update it with:
“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 — Session Close-Out Ritual
When to invoke
- User explicitly says:
/closeout, "close out", "wrap up", "end the session" - Before any non-trivial
git push(the close-out should precede the push) - When the session has produced 3+ files, plans, or atoms and the user is signaling end
Six-step protocol
Step 1 — Inventory session outputs
Run, in parallel where possible:
# What files did this session create or modify?
git status --short
# What plans were authored in this session?
ls -t ~/.Codex/plans/*.md 2>/dev/null | head -10
# What's the current branch and where does it stand vs origin?
git branch --show-current
git log @{u}.. 2>/dev/null || echo "(no upstream tracking)"Surface a brief inventory table to the user:
- N files modified, M created
- K plans authored this session
- L commits ahead of origin
Step 2 — Walk back through plans
For each plan authored this session (filter ~/.Codex/plans/*.md by mtime within session window):
For each plan, classify it as one of:
- EXECUTED: contains
DONE-NNNreference. No action. - IN-PROGRESS: contains
IRF-XXX-NNNreference but no DONE-NNN. Update its frontmatter to confirm continued status. - ABANDONED: no closure reference, no follow-on commits. Move to
~/.Codex/plans/abandoned/with a brief abandonment-reason.
Ask the user for ambiguous cases. Do NOT bulk-classify without confirmation — the home-scope AGENTS.md rule "Atoms are permanent — never batch-close" applies to plans-as-artifacts too.
Step 3 — Walk back through atoms (if applicable)
If data/prompt-registry/prompt-atoms.json was touched this session, identify atoms that were closed in this session and confirm their status field is updated.
If not (most sessions), skip.
Step 4 — Verify git state
Cross-check:
- Working tree is clean (no uncommitted changes meant for this session)
- Local main is in sync with origin (or branch tracks correctly)
- No stray exports/temp files in workspace root (
ls /Users/4jp/Workspace/*.txtshould be empty)
If stray exports exist (the auto-named 2026-MM-DD-NNNNNN-this-session-being-continued-from-a-previous-c.txt pattern), move them to ~/Documents/session-exports/ or delete if duplicative.
Step 4.5 — Verify CLAUDE.md autogen freshness (hall-monitor gate)
If the active repo has a CLAUDE.md carrying <!-- ORGANVM:AUTO:START --> / <!-- ORGANVM:AUTO:END --> sentinels, run the gate:
~/.local/bin/claude-md-autogen-gateIf it exits non-zero, the autogen tail is older than 7 days. Refuse to mark the session as DONE. Refresh first:
organvm context sync --write # autogen sections only
# or
organvm refresh # full 10-step pipelineThen re-stage CLAUDE.md and commit (the claude-md-autogen-freshness pre-commit hook will re-verify), and re-run the gate.
Bypass only with explicit user authorization:
AUTOGEN_FRESHNESS_THRESHOLD_DAYS=999 ~/.local/bin/claude-md-autogen-gatePairs with the pre-commit hook (claude-md-autogen-freshness); together they catch staleness at both the commit boundary and the session boundary. Root-cause precedent: 32-day autogen-tail staleness traced on 2026-05-16 to organvm refresh step 6 soft-failing on system-system--system: invalid tier 'sovereign' (closed via schema + validator lockstep edit; see GH 4444J99/domus-semper-palingenesis#30, IRF-DOM-048).
Step 5 — Update active-handoff (if exists)
If .conductor/active-handoff.md exists in any active repo, update it with:
- What this session accomplished
- What's locked / not-yet-attempted
- What the next session should pick up
This is the cross-session continuity gate.
Step 6 — Write CLOSEOUT_SUMMARY.md
Produce a session-close-out summary at ~/.Codex/plans/closeout-{date}.md with:
# Session Close-Out — {date}
## Outputs
- {N} files created, {M} modified
- {K} plans authored: {filenames}
- {L} commits made (SHAs): {sha-list}
## Closure marks
- EXECUTED plans (DONE-NNN refs): {list}
- IN-PROGRESS plans (IRF refs): {list}
- ABANDONED plans (moved): {list}
## Pending
- Uncommitted changes: {if any}
- Unpushed commits: {if any}
- Active handoff: {path if exists}
## Hand-off note for next session
{one-paragraph context for resumability}Rules to honor
- Never batch-close atoms or plans without explicit user confirmation. Per Universal Rule (memory rule #53): atoms are permanent, never batch-close.
- Never delete plan files. Move to
abandoned/instead, preserving the history (per the plan-discipline section of the home AGENTS.md). - Never push as part of closeout unless user has explicitly authorized push for this session. Closeout's job is to prepare for push, not perform it.
- If the session produced no notable artifacts, say so and exit cleanly. Closeout is fast on quiet sessions.
Why this exists
Per docs/evaluation/self-review-2026-05-05/stale-plans-and-orphan-commits.md:
90.4% of plans are ORPHANED. Of 427 plans in
~/.Codex/plans/, 386 contain neither a DONE-NNN nor IRF reference. Only 20 (4.7%) are EXECUTED, 21 (4.9%) are IN-PROGRESS.
The orphan rate is a direct artifact of the absence of a close-out ritual. This skill is the ritual.
The cost of skipping is invisible bookkeeping debt: plans accumulate, atoms stay open against doctrine that already encodes them, the system can't programmatically answer "what was done?". The cost of doing it is ~3-5 minutes per session.
Related
docs/evaluation/SELF-REVIEW-MASTER-2026-05-05.md— Pathology #4: plan-author cadence vastly exceeds plan-execution cadence (21:1)docs/evaluation/self-review-2026-05-05/stale-plans-and-orphan-commits.md— full data behind the 90.4% orphan rate- Universal Rule #2: "Nothing local only" — close-out is what makes "nothing local only" achievable per session
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.

