/zsl:handoff What will the next session focus on?from zsl
Compact the current conversation into a handoff document so a fresh agent (or session) can continue the work cleanly. Saves to the OS temp directory, redacts secrets, references existing artifacts by path instead of duplicating them, and suggests which skills the next session should invoke. Use when the user wants to end a session, hand off to a teammate, switch agents, says "wrap this up for next time", or mentions "/handoff".
Ships in zsl. 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 handoff document summarising the current conversation so a fresh agent can continue the work without re-deriving context from scratch.
flowchart LR
cur["Current session<br/>(conversation context)"] --> scan["Scan for secrets<br/>· API keys / JWTs<br/>· hostnames / .env vars"]
scan --> compact["Write handoff.md<br/>· state at handoff<br/>· open decisions<br/>· don't redo<br/>· pointers (path:line)"]
compact --> tmp[("$TMPDIR / %TEMP%<br/>zsl-handoff-YYYYMMDD-slug.md")]
tmp --> next["Next session<br/>cat <path> or paste"]
next --> sug["Suggested skills<br/>/zsl:tdd · /zsl:triage · …"]
sug -.->|"resume in the loop"| loop["the engineering loop"]
classDef step fill:#e0e7ff,stroke:#3f51b5;
classDef artifact fill:#dcfce7,stroke:#16a34a;
classDef external fill:#fef3c7,stroke:#d97706;
class cur,scan,compact,next,sug step
class tmp artifact
class loop external
The OS temp directory — not the current workspace. The handoff is ephemeral session metadata, not a project artifact.
$TMPDIR/zsl-handoff-<YYYYMMDD>-<short-slug>.md (fallback /tmp/...)%TEMP%\zsl-handoff-<YYYYMMDD>-<short-slug>.mdTell the user the absolute path after writing so they can hand it to the next session via cat <path> or paste.
If a handoff file with the same slug already exists for today, read it first before writing so existing content is preserved or appended to, not clobbered.
Lead with what the next agent actually needs in the first 30 seconds. Cut anything they can reconstruct themselves.
git rev-parse --abbrev-ref HEAD / git rev-parse HEAD), unpushed work, open worktrees, halted RCAs, anything mid-flight. Reference, don't copy./zsl:<skill> calls the next agent should reach for first, in order. Be specific: /zsl:tdd <NN> not just /zsl:tdd.<path>:<line> or URL. Never paste the full body.Skip aggressively. The point is compaction.
file:line.#123 or the path.Before writing, scan for and redact:
sk-…, ghp_…, eyJ… (JWT), xox[abp]-… (Slack), AWS access-key patterns.env* that the conversation surfacedWhen in doubt, redact. Replace with <redacted: kind> (e.g. <redacted: api-key>). If the redaction makes a step incomprehensible, the next session can ask the user for the value; that's safer than leaking it into a tmp file.
If the user passed an argument to /handoff, treat it as a description of what the next session will focus on. Tailor the Suggested skills and State at handoff sections to that focus. The other sections still cover the broader conversation, but the spotlight shifts.
If no argument was passed, write a general-purpose handoff covering everything substantive in the session.
# Handoff — <YYYY-MM-DD HH:MM> — <one-line topic>
> Generated by `/zsl:handoff`. Read this once, then start work — don't re-derive what's already settled.
## Summary
<3 sentences: what this session was about, what got done, where it stopped>
## State at handoff
- Branch: `<branch-name>` (last sha: `<short-sha>`)
- Pushed: yes / no
- Open PRs: <#N or none>
- Halted operations: <RCA path or none>
- Worktrees: <paths or none>
## Done — don't redo
- <one-line per completed item, with the commit/PR/issue link>
## Open questions / pending decisions
- **<decision>** — options considered: A (…), B (…). Leaning <X> because <reason>. Needs user to confirm.
- **<question>** — context: <file:line or PRD ref>. Asked, not yet answered.
## Suggested skills for the next session
In order:
1. `/zsl:<skill> <args>` — <one line: why this first>
2. `/zsl:<skill> <args>` — <one line>
3. `/zsl:<skill> <args>` — <one line>
## Pointers
- PRD: <path or URL>
- Relevant ADRs: <path>
- Recent commits worth reading: `<sha>` (`<subject>`)
- Files most likely to need attention: `<file>:<line-range>`
The handoff is for a stranger. They have no conversational context, no memory of your earlier debates, no idea who's the user and who's the agent. Write so a cold read makes them productive in 30 seconds. If a section needs scaffolding to be understandable, the section is wrong — rewrite the section, don't pad it with explainer.
What SKILL.md sets; muted values are Claude Code's defaults
32 skills in this plugin
/afk-fanoutInteractive local-session scheduler for overnight remote /tdd-parallel runs. Reviews the queue of tracking PRDs with ready-for-agent children, lets the human pick which to run overnight and in what order, then schedules one one-shot remote routine per selected PRD spaced a fixed 2h apart — each fires its own remote claude.ai session running /afk-worker against one PRD. The 2h spacing is a deliberate throttle to stay under the per-5h-window token cap. Places a light scheduled claim on each PRD so a re-run the same evening won't double-book. Morning you walks the results via /morning-review./afk-workerRemote per-PRD executor fired by an /afk-fanout-scheduled one-shot routine. Runs unattended in its own remote claude.ai session — own clone, own working tree, own branch — so it never contends with other PRDs' workers. Flips the PRD's scheduled claim to in-progress, runs /tdd-parallel <num> --on-review-failure=continue --max 2, opens one integration PR, and on halt records the offending slice + RCA. Reports its outcome (claim state, PR URL or halt RCA) as a per-PRD entry on the shared afk-runs git branch that /morning-review reconciles back into the tracker, and fires a best-effort Telegram heads-up. Invoked by the scheduled routine, not by hand.Other plugins' skills for the same job
/ask-zslInteractive router that helps you find the right ZSL skill for what you're doing right now, without leaving your work. Use when you're mid-session and unsure which skill fits — "which ZSL skill should I use", "how do I do X with these skills", or when you want to be routed to the right part of the loop.npx claudepluginhub zunosmartlabs/zsl-superpowers --plugin zsl