Session close workflow

Before a session closes, lists unfinished work and leaves a handoff and a way to resume.

#Claude Code#handoff#session resume#GitHub issues#skills
Session close skill

WorkflowSession close skill

Dev infrastructure Claude Code

A skill you call before closing a Claude Code session. It sweeps for uncommitted changes, background jobs still running and promises not yet kept, then produces four things at once: a handoff note, a handoff issue, a desktop shortcut that resumes the session, and a commit and push.

Challenge

  • After closing a long session, you cannot tell what was finished and what was left until you open it again
  • Unpushed changes, jobs still running and requests that were quietly forgotten all vanish from view the moment the session closes

Approach

  • First a read-only sweep (uncommitted work, background jobs, unchecked plan items, user-level config changes, external side effects), reconciled item by item against what the user asked for
  • Before anything leaves the machine, a single preview is shown for confirmation; only what is approved becomes the note, issue, shortcut and commit

Outcome

  • Open the desktop shortcut and you are back in the same session, and the resume is noted on the issue
  • Cancelling leaves nothing outside the machine, and re-running never duplicates issues or comments

When you run several Claude Code sessions a day, the follow-ups of closed sessions end up scattered. This skill spends the last few minutes before closing on leaving those follow-ups in a form both people and machines can pick up.

There are five stages and only one stop: the confirmation. A script sweeps read-only, Claude reconciles the results against the user's requests into handoff content, and writing and publishing run only after the author approves.

Session close skill
Overview: roles, tasks, work products and the rework loop

Key points

The sweep only reads. It runs no project commands and just collects state; even a health-check command is shown as text, and the user decides whether to run it.

Only your own changes get committed. A file is committed only if this session has evidence of editing it and the user confirmed it in the preview. Changes from other sessions, or ones someone has partially staged, are never included automatically.

Re-running never duplicates. Each handoff keeps a record file: issues are not reopened, comments from the same run are not resent, and an existing commit is simply pushed. Finished work is also recorded by opening and then closing an issue.