agentleFS
TAKEOFF69TAKEOFF69/codex-skills-kit/skills/session-close/SKILL.md

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

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.
  • OldvictechSkill

    session-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

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
  1. Distinctive:

    Read repository AGENTS.md and nested instructions governing changed paths.

    line 16
  2. Distinctive:

    Use repository-native closeout, worktree, documentation, and verification commands when defined.

    line 17
  3. Distinctive:

    Use live paths and current code.

    line 48
  4. Distinctive:

    Update canonical docs when behavior, architecture, commands, data contracts, or operator workflows changed.

    line 52
  5. Distinctive:

    If required doc cannot be updated, record explicit exception with reason and follow-up owner.

    line 54
  6. Distinctive:

    run cheapest probe capable of catching likely failure

    line 60
  7. Distinctive:

    verify UI in browser when UI behavior changed

    line 62
  8. Distinctive:

    Use repository session-log format when present.

    line 68
  9. Very specific:

    Follow repository's Git workflow.

    line 85
  10. Distinctive:

    Commit complete logical unit, or labeled WIP when unfinished and repository permits it.

    line 89
  11. Distinctive:

    Leave unrelated dirty paths untouched.

    line 91
  12. Distinctive:

    Do not deploy unless user explicitly requested deployment.

    line 92
  13. Distinctive:

    If commits or pushes are not authorized, preserve files and report exact uncommitted or unpushed state.

    line 94
  14. Distinctive:

    commit and pushed branch, when applicable

    line 105

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Read repository AGENTS.md and nested instructions governing changed paths.
  2. Use repository-native closeout, worktree, documentation, and verification commands when defined.
  3. 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 -10

Identify 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 lessons

Include 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-contention protects shared repository state.
  • verify-honestly defines verification claims.
  • retro-distill performs deeper learning loop after closeout.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.