/next:go [focus for the next session]from Next Session
Writes a handoff note and arms it so a fresh Claude Code session can pick up work cold with full context. Use at natural breakpoints.
Ships in Next Session. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write a note that lets a fresh session pick up this work cold, then arm it.
When this turn ends, the plugin runs /clear and starts the new session
from the note by itself. The repo's CLAUDE.md already loads in every
session; the note carries only what CLAUDE.md does not: this session's
state, decisions, and next step.
Run via Bash:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/handoff.py" path --project-dir "${CLAUDE_PROJECT_DIR}"
Parse the JSON. On status: "error", show message and stop. Keep path.
Run via Bash:
git branch --show-current; git status --short | head -30; git log --oneline -5; git log --oneline @{upstream}..HEAD 2>/dev/null
Skip this step outside a git repo. Uncommitted and unpushed work is the detail the next session most often gets wrong, so record it exactly.
Write from this conversation, not from re-reading files. If $ARGUMENTS
is not empty, make it the next task unless the conversation clearly
contradicts it; say so if it does.
Use exactly this structure, and keep it under 60 lines:
# Handoff: <short task label>
**Goal:** <one or two sentences: what we are trying to achieve and why>
## State
- Branch `<branch>`; <uncommitted files / unpushed commits, or "clean">
- <what is done, one line each, the facts the next session would otherwise re-derive>
## Decisions
- <decision> — <why; include rejected alternatives worth not retrying>
## Dead ends
- <what was tried and failed, and the evidence>
## Next task
<the single next action, concrete enough to start without asking>
## Read first
- `<repo-relative path>` — <why it matters for the next task>
## Open questions
- <anything waiting on the user or an external answer>
Omit any section that would be empty, except Goal, State and Next task. List under Read first only files the next task needs, at most five; never CLAUDE.md, which loads by itself.
Write the note to path from Step 1 with the Write tool. If the write
fails, stop and report it — do not run arm, which would arm whatever
note already happens to be on disk at that path.
Once the write succeeds, run:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/handoff.py" arm --project-dir "${CLAUDE_PROJECT_DIR}"
On status: "error", show message and stop: the session is not
cleared. A note over the size limit must be shortened and armed again.
Tell the user, in one or two lines, that the handoff is armed and the
session clears and resumes at <next task> as soon as this turn ends.
End the turn there; do not start the next task in this session.
/next:go
/next:go rerun the failing e2e with the new fixture
~/.claude/next/. Never writes inside the
repository, never edits CLAUDE.md, never commits.<key>.consumed.md beside it, so it can still be pasted by hand.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub openshift-eng/edge-tooling --plugin next