session-end — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited session-end (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Close out a session with an evidence-grounded record — and, when work is still in flight, hand off so a fresh session can pick up with zero loss. Two intents, one flow: ending always produces the record; handing off (the mid-flight mode) adds the exact resumable state + a copy-pasteable continuation prompt for the next session (you, with an empty context window) and for the human operator. Optimize for truth and resumability, not for sounding complete.
A summary written from recollection will hallucinate. Reconstruct the session from hard evidence first, then narrate. This is what makes the handoff safe.
git status --short and git diff --stat (+ git log --oneline -15) — what actually changed / was created. Every artifact you cite must appear here or on disk.Include only the sections that apply to this session (a design session, a debugging session, and a research session produce different shapes). Always tag epistemics — this mirrors a verify-first standard.
[verified] / [unverified] / [assumed]. Never present an unverified figure as fact. Note how the verified ones were checked.git status.Keep it scannable (ranked, terse). Match length to session size; don't pad.
If a task was underway when handoff was invoked, capture the exact resumable state:
Write the full summary to a file so the next session can READ it rather than trust pasted prose: <project-root>/.claude/handoffs/<UTC-timestamp>_<slug>.md (create the dir; it's additive/safe). If not in a writable repo, skip and emit in-chat only. Never commit, never modify other files.
Stamp a provenance marker as the very FIRST line of the handoff file (before the H1), so a later automated review can identify the handoff THIS session wrote and never a concurrent sibling session's: <!-- review-loop:session:<session-id> -->. <session-id> is the current Claude Code session id (the UUID for this session — e.g. the active transcript's id for this cwd, or a --session-id value surfaced in this session). If you cannot determine it with confidence, write <!-- review-loop:session:unattributed --> — the review will then safely SKIP reconciling this handoff rather than risk editing the wrong one. (HTML comments are invisible in rendered markdown.) This is the only hook the /review-loop "Reconcile the session's handoff" step keys on.
If the session is DONE — nothing in flight (work shipped, parked, or merged) — skip this step. Close with the Step 2 record plus a one-line stop marker ("Nothing in flight; clean stopping point — no resume needed."). Don't manufacture a continuation prompt when there's nothing to continue; that's the whole point of ending vs handing off.
If work is mid-flight (Step 3 applied), emit a self-sufficient Claude Code prompt to start the next session. It MUST:
Present it in a fenced block, ready to paste. Keep it tight but complete — it is the single thing that determines whether the next session continues cleanly.
git status/on disk; every number is tagged for verification status.session-pickup is the inverse — it rehydrates the next session from the handoff doc this writes (invoke it at the start of a continued session; only relevant when this ran in mid-flight mode). pattern-retrospective (rigorous multi-session studies) and chat-history-search (find past prompts) are heavier and backward-looking. session-end is the fast, forward-looking close-out for this session — recording it always, and handing it off when there's work to continue.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.