/zulfiqar:handofffrom zulfiqar
Write a cold-resume HANDOFF PROMPT for the next agent session — a prompt that drops a fresh session into your exact spot and drives it to act, not a status summary. Captures decisions + WHY, dead-ends, checkable state, one bookended next action. Use at ~85-90% context, before compaction, or at a task boundary.
Ships in zulfiqar. 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.
You are writing a handoff prompt for the next session, which sees NONE of this conversation; only what you write plus the repo, git state, and any auto-loaded memory. It is the prompt that RUNS the next session: a fresh agent must read it and, within ~30s, know the goal, what to trust, what NOT to retry, and its first move.
The one idea: preserve decision-density, not information-density. A summary already captures what happened. Capture what to do next, WHY the current shape was chosen, and what was ruled out. The highest-value, most-skipped part is dead-ends: leaving them out makes the successor re-run failures. Cut any corner but that one.
When torn, write MICRO plus the 1–2 extra lines that genuinely matter. One real dead-end or load-bearing constraint is what justifies FULL; never promote "to be safe."
git branch --show-current + git status --short + git log --oneline -10.Fenced code block, second person, directive prose. Only write a file when asked or when the
convention in this repo calls for it (e.g. tmp/handoff-YYYY-MM-DD-HHMM.md, or an equivalent
scratch location when not in a repo).
# Handoff — <branch> — <YYYY-MM-DD HH:MM local>
**Mission:** <one sentence — the goal>.
You are continuing <X>; as of now <state in 1 sentence>.
State: branch `<branch>`, <key dirty file(s), or "clean">. <Last command → result, if any.>
<Only if real: Don't retry <X> — failed because <Y>. / Don't fix <path:line> — out of scope.>
**Start here:** <the single concrete next action — exact file path or command>.
Wanting more than ~3 extra lines for decisions/dead-ends = switch to FULL; don't grow micro.
# Handoff — <branch> — <YYYY-MM-DD HH:MM local>
## Mission
<One sentence. Opens AND closes the handoff (bookend).>
## You are here
<2-3 sentences, second person: what's in flight, where it just shipped or broke.>
## How this works (mental model)
<The non-obvious understanding you built — the gotcha invisible from grep/git. Omit if none.>
## Decisions & WHY
- <Chose X over Y because Z — never a bare conclusion. Include constraints stated once.>
## Ruled out / dead-ends — DO NOT RETRY / DO NOT FIX
<MANDATORY; write "None this session." if truly empty. (a) Tried X → failed because Y.
(b) Known out-of-scope bugs by path:line the successor must not "helpfully" fix.>
## State you can act on (evidence, not ground truth — verify against the repo)
- **Branch / dirty:** <branch; key uncommitted files>
- **Key files:** <path:line — why it matters; one-line contract for anything half-built;
mark just-written-not-yet-proven code as such>
- **Commands run + result:** <exact command → pass/fail>
- **NOT verified:** <the honesty line — what you did not check>
- **Open questions:** <only genuine unknowns + what unblocks each; small calls: just make them>
## Background work
<Only if something is still running (a loop, scheduled job, or background agent): name + trigger + effect. Else omit.>
## Authoritative docs / memory
- <plan/tracker path> · <memory or notes files written this session>
## Start here
Reminder — Mission: <restate verbatim>. Re-read <the 1-2 grounding files>; trust the repo over
this handoff if they conflict.
<THE single concrete next action — exact path or command. LAST line, nothing follows.>
lib/spike.js:204 drops caller audio beats "the echo bug."bookend skill in this toolkit for the general version of this transform, applicable to any
prompt, not just handoffs.)Test: a fresh session reads it, re-reads the 1–2 named files, and acts correctly on the first move, with no re-derived decisions, no re-run dead-ends, no questions this should have answered. If a section won't change what the next agent does, cut it.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
20 skills in this plugin
/bookendApply the "bookend" transform to a prompt — keep its body, then restate the objective + top hard constraints + the explicit task at the very END, task LAST. For prompts you didn't generate; other skills that already compose their own output (a plan writer, a handoff writer) should bookend it themselves rather than have this run on top./brainstormingUse before creative implementation to turn an uncertain request into an approved design. Not for prompt writing, mechanical edits, or requirements already fixed by an accepted specification./common-groundSurface hidden project assumptions and persist them into docs/common-ground.md with an OPEN/WORKING/ESTABLISHED tier, so a long project stays honest about what's assumed vs known. Modes: default (surface + file), --list, --check, --graph.Generated from the plugin's indexed repository (mohamed-alaboudi/zulfiqar) — no native marketplace selected
npx claudepluginhub p/mohamed-alaboudi-zulfqar-of-coding