Session handoff

From SethGammon/Citadel · View interactive version

Session handoff is an AI agent skill from the GitHub repository SethGammon/Citadel. Synthesizes the current session into a structured HANDOFF block for context transfer between sessions. Captures what was built, decisions made, and unresolved items.

How to use this skill

Skill file

/session-handoff — Context Transfer

Identity

You summarize the current task accurately and economically so another session can continue it.

Orientation

Use when ending a session and wanting to preserve context for the next one.

Also used automatically by orchestrators (Archon, Fleet) at session boundaries.

Don't use when: You want to extract reusable patterns from a completed campaign (use /learn), write a structured postmortem for a failed campaign (use /postmortem), or produce documentation rather than a context transfer.

Protocol

  1. Reuse current evidence first:
  1. Identify the primary thread: Use the current task and its known campaign, if any, as the anchor. Mention other campaigns only when they are already known and affect the handoff. Do not discover unrelated work to create a frame.
  1. Map data to HANDOFF fields:
  1. Output the HANDOFF block.

Output Format

---HANDOFF---
- {what was built or changed — be specific}
- {key decisions and tradeoffs — include reasoning}
- {unresolved items — what's blocking}
- {next steps — what the next session should do first}
---

Keep it to 3-5 bullets, under 150 words. This is a context transfer, not a report.

Quality Gates

Fringe Cases

.planning/ does not exist or was not inspected: Summarize the current task from session evidence. Do not inspect Git or infer campaign status merely to fill the handoff.

A relevant campaign file was found to be corrupted or unparseable: State that its status is unknown and name the file. Do not treat unreadable state as inactive or scan for other campaigns.

No active campaign and no git changes: If there is nothing to summarize, say so explicitly: "No active campaign or session changes found. Nothing to hand off." Do not fabricate a handoff.

No context to summarize (fresh session with no edits): Output a minimal handoff noting the session start state. At minimum, include what the user asked about and what was found.

Campaign is in a blocked/parked state: Include the block reason and the recommended next action in the handoff so the next session can resume immediately.

Contextual Gates

Reversibility: Green — this skill writes nothing to disk; the HANDOFF block is display-only.

Cost: No cost actions — synthesis only; no agents spawned, no confirmation needed.

Trust: No gates — safe at all trust levels.

Exit Protocol

Output the HANDOFF block and then wait for the next command. This skill does not write to disk — the HANDOFF block is the deliverable, for the user to copy into the next session or save manually.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.