close-session
/close-session
End-of-session close-out for a repository shared by several AI agents: commit this session's work with the Agent trailer, write or update today's log, paste the worklog line, release the board claim, and leave nothing of ours uncommitted. Use this whenever the user says wrap up, commit everything, close the session, we're done for today, write the log — and on your own initiative before you stop after a long stretch of repository work.
- Author
- Soda-null ↗
- Repository
- multi-agent-repo-protocol ↗
- Licence
- MIT
- Last repository change
- 05.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 05.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/preflight.py
What it does and when to use it
End-of-session close-out for a repository shared by several AI agents: commit this session's work with the Agent trailer, write or update today's log, paste the worklog line, release the board claim, and leave nothing of ours uncommitted. Use this whenever the user says wrap up, commit everything, close the session, we're done for today, write the log — and on your own initiative before you stop after a long stretch of repository work.
Triggers from the description
Original author description
End-of-session close-out for a repository shared by several AI agents: commit this session's work with the Agent trailer, write or update today's log, paste the worklog line, release the board claim, and leave nothing of ours uncommitted. Use this whenever the user says wrap up, commit everything, close the session, we're done for today, write the log — and on your own initiative before you stop after a long stretch of repository work.
How it works
- Why this list exists
- Step 0 — run the preflight
- Step 1 — sort the dirty tree into ours and theirs
- Step 2 — canonical files, only if their contents truly changed
- Step 3 — run the checks the change makes relevant
- Step 4 — commit the substantive work
- Step 5 — today's log
- Step 6 — the board
- Step 7 — the closing commit
- Step 8 — report to the owner
SKILL.md preview
--- name: close-session description: "End-of-session close-out for a repository shared by several AI agents: commit this session's work with the Agent trailer, write or update today's log, paste the worklog line, release the board claim, and leave nothing of ours uncommitted. Use this whenever the user says wrap up, commit everything, close the session, we're done for today, write the log — and on your own initiative before you stop after a long stretch of repository work." --- # Session close-out ## Why this list exists Several agents share this repository and one git identity. The protocol (`AGENTS.md`) therefore treats an uncommitted change as *the next agent's problem*: it is what gets reverted, stashed or built on by mistake. Three other things depend on closing properly: - the daily log is the only record of what was actually done (`STATUS.md`, `decisions.md` and `open_questions.md` are for state, not narrative); - the worklog line is derived from commit times, so it is only right if it is generated after the substantive commit; - the `commit-msg` hook rejects any commit without an `Agent:` trailer, and an agent's commit outside its own `agent/<name>` branch. Work through the steps in order; each is short. ## Step 0 — run the preflight ```bash python3 .claude/skills/close-session/scripts/preflight.py --agent claude-code ``` It is read-only. It prints `[ok]` / `[todo]` / `[info]` lines: hook configuration, branch, every dirty path, whether today's log exists and has its worklog line, which board claims belong to this agent, and the worklog line as of now. Treat `[todo]` lines as the remaining work; re-run it at the end. ## Step 1 — sort the dirty tree into ours and theirs `git status --short` lists everything. Decide, path by path, what this session touched. The rest belongs to another agent's unfinished session (compare with the status you saw when the session started). - Stage our paths explicitly (`git add path1 path2`). Never `git add -A` / `git add .`. - Never revert, stash, checkout over or tidy a file we did not touch. If one of them blocks our commit, say so in the report and leave it. - A tree that is dirty only with other agents' files is an acceptable end state; say which. ## Step 2 — canonical files, only if their contents truly changed Did the current goal, canonical artifact, implementation state or a blocking question change (→ `STATUS.md`, and move its `**Updated:**` date)? Did the owner accept a decision (→ `docs/decisions.md`, a new dated entry, its index row and its glossary line)? Did something stay unresolved (→ `docs/open_questions.md`)? Entries written by others are append-only. If nothing changed, touch none of them. ## Step 3 — run the checks the change makes relevant Run the project's checkers for what changed, so a hook failure is not a surprise at commit time. Never bypass a hook with `--no-verify`; fix what it reports. ## Step 4 — commit the substantive work First line under 100 characters: what changed. Numbers and narrative in the body. Then the trailer on its own line: ``` <what changed> <why, key numbers, the owner's words if it was their request> Agent: claude-code ``` If `git config core.hooksPath` is not `.githooks`, set it before committing. ## Step 5 — today's log If today's entry does not exist, `python3 scripts/new_log.py`. If it exists, edit it in place and keep every earlier bullet. Fill it from the template: only finished work, each item pointing at a file or commit; the evidence; status changes (say "none" when true); then run `python3 scripts/worklog.py --today` **after the substantive commit** and paste its line; one concrete next action. Do not create a log for a session with no substantive work. ## Step 6 — the board In `docs/agent_board.md`, delete the claim row for the task this session finished. Keep a row only for work that genuinely continues into a later session, and say so in the report. ## Step 7 — the closing commit Stage the log, the board and any canonical-file edits and commit them with the same trailer. Re-run the preflight: it should show no `[todo]` for our paths. On an `agent/*` branch, commit there and do not merge; merging into `main` is the owner's call. ## Step 8 — report to the owner Short and plain: what was committed (short hash and one line each), the worklog line, which uncommitted files were left alone because they belong to another agent, and the one next action.
Files in this package (2)
- SKILL.md 4 KB
- scripts/preflight.py 5 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · Soda-null/multi-agent-repo-protocol | 100 | MIT |
| shakacode/agent-workflows | 100 | MIT |
| awrshift/agent-memory-kit | 90 | MIT |
| cristobaltormo/cortex-md | 90 | MIT |
| awrshift/claude-memory-kit | 90 | MIT |
Database snapshot: 13.11.2026 · package version f69b76046b8a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100closer
Close out a project session — verify nothing is still running, write the documentation a fresh agent needs, commit and push every repository, and hand over cleanly. Use when the user says "close the project", "closer", "close it out", "hand off" or "wrap up". - 86end-session
Wrap up a work session. Use when the user says they are done, wants to switch tasks, is about to /clear, or asks for a handoff. Verifies checks pass, updates ROADMAP and HANDOFF, and flags uncommitted work. - 86close
Close out a task or session. Updates handoff, log and decisions, humanizes the prose, then hands the commit to `kstack:commit`. Use when work is done or the session is ending. - 95session-closeout
End-of-session ritual — close loose ends, verify live state, update the continuity block + state snapshot + tracker + memories, and commit, so the next session (any model) starts from the repository alone. Use when the user says "run the session closeout", "wrap up", "close… - 82session-end
Close a working session on Fairmark cleanly — run the quality gate, write the journal entry, add the release note fragment, commit, push and open or update the pull request with a complete, professional description. Use when the maintainer says the session is over, or before… - 82session-end
Close a working session on Fairmark cleanly — run the quality gate, write the journal entry, add the release note fragment, commit, push and open or update the pull request with a complete, professional description. Use when the maintainer says the session is over, or before…