/cornerman:handoverfrom cornerman
Write a short handover for the current work so a fresh session (after /clear) picks it up automatically. Use for '/handover', 'write a handover', 'hand this off', 'save my place before I clear'.
Ships in cornerman. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write a handover a fresh session can act on without this conversation, then save it.
After the user runs /clear, the plugin's SessionStart hook loads it for them.
Run these rather than recalling them. A handover with a wrong branch or a stale
"next step" costs the next session more than it saves. Run them where you are,
without a cd first: a cd before a git command asks the user for approval.
git branch --show-current
git status --short
git log --oneline -5
Aim for under 40 lines.
Write for someone who has never seen this project. The next session has none of this conversation and none of your reasoning, so every reference has to stand on its own: name files by path, name decisions by what was decided rather than "as discussed", and never say "the usual place" or "the file we changed".
Next action comes second, straight after the goal, because it is the line that
gets read first and acted on.
# <title>
## Goal
One or two sentences: what this work is for, and what "done" means.
## Next action
The single first thing to do, concrete enough to run: a command, or a file:line
and the change to make there. Not a topic to look into.
## State
- Branch, last commit, PR number if there is one.
- Done and verified, with how it was verified (the command, and what it printed).
- In progress, uncommitted, or unverified. Say which.
## Decisions already made
Choices the user settled that the next session must not reopen. One line each,
with the reason if the decision looks arbitrary without it.
## Do not
Traps, approaches already tried and failed, anything off-limits. Say what happened,
so it is not retried in a slightly different form.
## Key files
- path/to/file - why it matters
Do not write a "Recent trail" section. Saving adds one from this session's own tool calls (the last
files written, edited and read, and the last commands that succeeded and failed), and replaces any
you wrote, so it is exact. CORNERMAN_TRAIL=0 turns it off.
Leave out sections that would be empty; an empty heading costs the reader a stop. Do not include secrets, tokens or passwords: the file is plain text on disk.
Pass the handover on stdin with a short title. Use a quoted heredoc so $ and
backticks in the text are kept as written:
node "${CLAUDE_PLUGIN_ROOT}/scripts/save.mjs" --title "<short title>" <<'EOF'
<the handover markdown>
EOF
Run it exactly in this form: one command, the heredoc, nothing chained before or
after it. This skill pre-approves the plugin's own save.mjs and load.mjs, so the save
runs without a permission prompt. Do not write the handover to a temporary file
and redirect it with <, and do not add a cd: either one makes the user approve
it by hand.
It saves one JSON record under ~/.cornerman/handovers/. Saving again archives only this
window's own earlier handover, never another window's, so two windows on the same branch each
keep their own waiting handover.
With CORNERMAN_WEB=1 set (for Claude Code on the web), it also pushes
.cornerman/HANDOVER.md to its own branch, cornerman/<branch>, leaving the
current branch untouched, so the next cloud session can find it. That session lists it
with the command that prints it; it does not load it automatically. If the output says
the push failed, tell the user: the handover is saved on this machine, but a new cloud
session will not see it.
One line: the handover's title, and that running /clear now will load it in the fresh session.
If a cornerman nudge this session said the relay is on, say instead that the relay clears
and continues when this turn ends, and end the turn with no further tool calls.
To read a waiting handover without taking it from its window, use
node "${CLAUDE_PLUGIN_ROOT}/scripts/load.mjs" --peek <file>; --take moves it here.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub m4cd4r4/cornerman --plugin cornerman