Skip to content
Back to skills

Closeout

ASecurity

Close a working session so the next one can continue with no explanation - journal what was measured, record decisions, update the status file and write the handoff, then check the tree. Use before ending any session that changed files in a project with `.mandatum/`, when the user says "wrap up", "that's it for today", "save state", "handoff", "stop here", when context is running low, and when the stop hook reports that the status file is stale.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgogit

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add mohamedbechirkefi/mandatum --skill closeout --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Closeout?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Closeout
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mohamedbechirkefi-closeout/badge)](https://www.skillsdirectory.com/skills/mohamedbechirkefi-closeout)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: closeout
description: Close a working session so the next one can continue with no explanation - journal what was measured, record decisions, update the status file and write the handoff, then check the tree. Use before ending any session that changed files in a project with `.mandatum/`, when the user says "wrap up", "that's it for today", "save state", "handoff", "stop here", when context is running low, and when the stop hook reports that the status file is stale.
---

# Close the session

The next session will know only what is on disk. Anything that lives in this
conversation alone is about to be lost: the half-finished thought, the reason a path was
abandoned, the thing the owner said in passing. Closing takes a few minutes and saves
the next session an hour of archaeology.

## Checklist

1. **Journal.** Every measurement or finding from this session has an entry in
   `.mandatum/journal/` (`mandatum journal <slug>`), including the ones that failed.
2. **Decisions.** Every real choice and every answer from the owner is in
   `.mandatum/DECISIONS.md` (`mandatum decision "<title>"`), with the owner's words
   quoted where they decided.
3. **Checks.** If code changed, its suite ran after the last edit; quote the result
   line. If it did not run, the handoff says why.
4. **Status.** In `.mandatum/STATUS.md`:
   - phase states are current (`planned`, `active`, `gated(<GATE>)`, `blocked(<reason>)`,
     `done` with its date);
   - the gate ledger has every pending request and every answer received;
   - open questions for the owner are listed, each answerable in a line.
5. **Handoff.** `mandatum handoff --check "<test command>" "<the new handoff>"` runs the
   check, archives the previous handoff and writes the new one with the check's real
   result, in a single call (what to put in it is below). For a longer
   handoff, run `mandatum handoff` alone to archive, then write it under `## Handoff`.
6. **Tree.** `git status`: nothing half-staged, no stray scratch files, nothing written
   into a directory that a report cites as evidence. Delete only scratch files this
   session created, by name.
7. **Nothing left the machine** that the owner did not approve. Commit only if the owner
   asked for commits or the charter says to.
8. **Shortcuts?** If the session left `shortcut:` comments, `mandatum debt` refreshes
   `.mandatum/DEBT.md`.
9. **Incident?** If the process caught or missed something today, one dated line in
   `.mandatum/INCIDENTS.md`. Otherwise nothing.

## The handoff

Keep it short enough to be read in a minute. It replaces the previous one; history
lives in `.mandatum/HANDOFFS.md`.

```
## Handoff (2026-03-14)

**Done this session:** import parser passes its twelve fixtures (P2 task 3); benchmark
script written, not yet run.
**State of the tree:** clean; two local commits not pushed (PUBLIC pending, G-004).
**Verified now:** `pytest` 87 passed. **Not verified:** the Windows path handling
(reported by a subagent, not re-run).
**Defaults taken:** fixtures stored as JSON, not YAML (no new dependency; a converter
is an hour if that is wrong). "None" when there were none.
**Next action:** run `scripts/bench.sh` on a quiet machine and journal it (P2 task 4).
**Waiting on the owner:** G-004 push to main; Q-2 whether CSV export is in scope.
**Watch out:** the fixture in `tests/fixtures/import/07.json` encodes a known bug on
purpose; do not "fix" it (D-012).
```

The parts that matter most are the ones people skip: what was *not* verified, the exact
next action, and the trap the next session would otherwise walk into.

## Keep the status file small

STATUS.md is read at the start of every session, so every stale paragraph in it is paid
for again each time. Move finished detail to the journal or the decision log and leave a
pointer. If the file has grown past a couple of screens, trim it now.

## If the session is being cut short

When context or time is nearly gone, do the handoff first and everything else after. An
honest three-line handoff beats a complete checklist that was never written.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.