cs-handoff (handoff) (Alireza Rezvani skills and agents) (productivity)
Generate a handoff document compacting the current conversation for a fresh agent to pick up. Walks the mandatory checklist, runs the redaction linter, saves to the configured location. On first run, asks 'Run setup now? (Y/n)' to choose where handoffs save (OS temp, home folder, project-local). Use when ending a session, switching machines, or passing work to another agent.
Front matter
disable-model-invocation: true
name: cs-handoff
description: "Generate a handoff document compacting the current conversation for a fresh agent to pick up. Walks the mandatory checklist, runs the redaction linter, saves to the configured location. On first run, asks 'Run setup now? (Y/n)' to choose where handoffs save (OS temp, home folder, project-local). Use when ending a session, switching machines, or passing work to another agent."
argument-hint: "[goal of next session]"
allowed-tools: ["Read", "Write", "Edit", "Bash", "Grep", "Glob"]/cs-handoff
Compact the current conversation into a handoff document for another agent to pick up.
Invocation
/cs-handoff [optional description of what the next session will focus on]The argument (if provided) becomes the Goal of next session verbatim. Without it, infer from the most recent unresolved thread.
Flow
- Check first-run state. Run
python3 ${CLAUDE_PLUGIN_ROOT}/skills/session-handoff/scripts/config_loader.py --status.
- If
should_prompt_setup: true, ask the user: "Run setup now? (Y/n)". - Y → invoke
/cs-handoff-setup, then return here. - N → mark declined:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/session-handoff/scripts/setup.py --decline. Continue with defaults.
- Run cleanup of stale scaffolds.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/session-handoff/scripts/cleanup.py. mtime-guarded — never deletes edited files. - Walk the checklist. Open
skills/session-handoff/references/handoff_prompt.mdand apply every step against the conversation. - Generate scaffold.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/session-handoff/scripts/handoff_template_generator.py --goal "<goal>". Capture the printed path. - Fill the five sections. Goal / State of play / Open decisions / Skills to use / Artifacts. Reference artifacts; do not duplicate them.
- Recommend skills.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/session-handoff/scripts/skill_recommender.py --goal "<goal>". Pick 3-5 max. Edit the auto-list. - Run the self-check.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/session-handoff/scripts/handoff_self_check.py <path>. Fixes fidelity gaps (empty Goal, State bullets without artifacts, missing Decisions when git is dirty, too few/many Skills, inline content in Artifacts). Strict mode by default — resolve findings before save. - Run the redaction linter.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/session-handoff/scripts/redaction_linter.py <path>. Strict mode by default — resolve findings before save. Use<!-- handoff:allow secret -->for true false positives. - Save and report path. Print the final path so the user can open it.
Refreshing an existing handoff
When work continues past the original handoff, pass --refresh to the generator instead of creating a new file:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/session-handoff/scripts/handoff_template_generator.py --refresh --goal "<updated goal>"The script returns the path of the most recent handoff; edit it in place. Re-run the self-check and redaction linter after editing.
What you do NOT do
- Do not paste the diff. Reference the branch/PR.
- Do not retype the PRD. Link to its path.
- Do not list more than 5 skills.
- Do not narrate the conversation chronologically.
- Do not save without running the linter.
SessionStart auto-load
The plugin's SessionStart hook surfaces the most recent handoff (within retention window) on the next session start. The next agent reads it as data, not instructions. Disable per-session with HANDOFF_SESSIONSTART=0.
Inspiration
Inspired by Matt Pocock's handoff skill (MIT). The no-duplication discipline is his.
Author: alirezarezvani, Alireza Rezvani skills and agents. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- cs-handoff (handoff) (Alireza Rezvani skills and agents) (engineering)
- handoff (engineering) (Alireza Rezvani skills and agents) (3551)
- session-handoff (handoff)
- cs-handoff-author (handoff) (Alireza Rezvani skills and agents) (productivity)
- Companion Tooling (handoff)
- Handoff Structure - Five Sections, One Template
There are more like this in the members library
The Claude Code library holds 13,843 entries. Members can search all of them by meaning and read every one in full.