session-close
Skill7 starsChanged 6 months agoMITView on GitHub
Close a coding-agent session with durable repository state, proportional verification, documentation reconciliation, and a useful handoff. Use when the user says close out, wrap up, end session, session report, doc sync, preserve work, or asks for a final commit and push before stopping.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- wycats/vscode-ai-plugintheir own version, first seen Oct 7, 2026
- maurice-jobst/ai-workbenchtheir own version, first seen Sep 27, 2026
- kimkon1011/orgiast-claude-rulestheir own version, first seen Sep 25, 2026
- PUNCKe/manuscript-context-integritytheir own version, first seen Sep 19, 2026
- vardan6/tracklinetheir own version, first seen Sep 8, 2026
- AN0099/toothpaste-kittheir own version, first seen Sep 6, 2026
Used with
Projects with it also use session-open.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OldvictechSkillsession-open
Get a fresh chat current on an ongoing project with minimum lost time, verification-first. Reads the project's canonical state files, optionally runs one targeted search of past conversations, verifies load-bearing claims before acting on them, then orients the user in plain language — ending with a reasoned recommended next action. Use when the user says "catch up", "get up to speed", "onboard me", "where did we leave off", "here's the handover", "continuing from a previous session", "/open", or "/handover-in". The RECEIVING half of a session-continuity pair — see session-close for the outgoing half.
Also in 3 projects that use this
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- wycats/vscode-ai-plugin★ 11same name
- ngmeyer/skills★ 4same name
- samhcus/skills★ 3same name
- PUNCKe/manuscript-context-integrity★ 2same name
- toper2525ua-eng/claude-longrun★ 2same name
- vardan6/trackline★ 2same name
- AN0099/toothpaste-kit★ 1same name
- farky-tech/containers★ 1same name
- Oldvictech/session-continuity★ 1same name
- rana/skills★ 1same name
4 more not listed
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 repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex-promptSkill
- gate-engineeringSkill
- git-under-contentionSkill
- retro-distillSkill
- verify-honestlySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 13 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
13
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 16
Read repository AGENTS.md and nested instructions governing changed paths.
- Distinctive: line 17
Use repository-native closeout, worktree, documentation, and verification commands when defined.
- Distinctive: line 48
Use live paths and current code.
- Distinctive: line 52
Update canonical docs when behavior, architecture, commands, data contracts, or operator workflows changed.
- Distinctive: line 54
If required doc cannot be updated, record explicit exception with reason and follow-up owner.
- Distinctive: line 60
run cheapest probe capable of catching likely failure
- Distinctive: line 62
verify UI in browser when UI behavior changed
- Distinctive: line 68
Use repository session-log format when present.
- Very specific: line 85
Follow repository's Git workflow.
- Distinctive: line 89
Commit complete logical unit, or labeled WIP when unfinished and repository permits it.
- Distinctive: line 91
Leave unrelated dirty paths untouched.
- Distinctive: line 92
Do not deploy unless user explicitly requested deployment.
- Distinctive: line 94
If commits or pushes are not authorized, preserve files and report exact uncommitted or unpushed state.
- Distinctive: line 105
commit and pushed branch, when applicable
“Common” is measured: kept by at least 6 in 10 of the 11 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
Session Close
Turn active session into recoverable, reviewable handoff without absorbing unrelated work.
This is lightweight closeout. Use retro-distill for deeper pattern mining after major chunks or failures.
Authority order
- Read repository
AGENTS.mdand nested instructions governing changed paths. - Use repository-native closeout, worktree, documentation, and verification commands when defined.
- Apply generic workflow below only where repository has no stronger rule.
Workflow
1. Inventory live state
Capture:
git rev-parse --show-toplevel
git branch --show-current
git rev-parse HEAD
git status --porcelain
git diff --name-only
git diff --cached --name-only
git log --oneline -10Identify owned paths, unrelated dirty paths, commits made this session, and unpushed commits. Do not clean or stage yet.
2. Map changes to obligations
For each owned change, identify:
- tests or probes required by affected surface
- documentation that describes changed behavior
- generated artifacts needing repository-native regeneration
- release or deployment boundary
- session log or handoff format required by repository
Use live paths and current code. Prior plans record intent, not necessarily final state.
3. Reconcile documentation
Update canonical docs when behavior, architecture, commands, data contracts, or operator workflows changed. Avoid documentation churn for implementation details with no durable effect.
If required doc cannot be updated, record explicit exception with reason and follow-up owner. Do not silently leave known drift.
4. Verify proportionally
Use verify-honestly:
- run cheapest probe capable of catching likely failure
- cite existing green deterministic gates instead of repeating them
- verify UI in browser when UI behavior changed
- name live or production gaps instead of implying coverage
- record exact commands and results
5. Write handoff
Use repository session-log format when present. Otherwise record concise Markdown with:
## Scope
## Changes
## Files touched
## Decisions
## Verification
## Residual risks
## Next-session context
## Transferable lessonsInclude only reusable lessons supported by session evidence. Do not turn routine closeout into speculative retrospective.
6. Make work durable
Follow repository's Git workflow. Under contention, use git-under-contention.
- Stage explicit owned paths only.
- Review cached diff and staged filenames.
- Commit complete logical unit, or labeled WIP when unfinished and repository permits it.
- Push authorized branch and confirm remote tip.
- Leave unrelated dirty paths untouched.
- Do not deploy unless user explicitly requested deployment.
If commits or pushes are not authorized, preserve files and report exact uncommitted or unpushed state.
7. Final state check
Re-run status and compare current HEAD with captured state. If HEAD moved during closeout, recheck generated files and documentation against new tip.
Final response contract
Report:
- outcome
- commit and pushed branch, when applicable
- owned files changed
- highest verification level and evidence
- documentation reconciled or exceptions
- residual risks and deploy-gated checks
- single next action, only when work remains
Checklist
- Current branch, root, and HEAD captured.
- Owned and unrelated changes separated.
- Durable behavior changes reflected in canonical docs.
- Generated artifacts refreshed by canonical command.
- Verification level named with exact evidence.
- Explicit paths staged and cached diff reviewed.
- Commit pushed or exact preservation gap reported.
- Final status checked without deleting unrelated work.
Stop conditions
- Ownership of dirty or staged paths is unclear.
- Repository requires destructive cleanup or force operation.
- Required verification or docs sync exposes unresolved correctness issue.
- Push or merge would include unreviewed work from another session.
Preserve current state and report blocker instead of manufacturing clean closeout.
Related skills
git-under-contentionprotects shared repository state.verify-honestlydefines verification claims.retro-distillperforms deeper learning loop after closeout.
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.

