/spectre:spectre-handofffrom spectre
Saves a branch-keyed session snapshot with continuity, active work, and optional task/todo state for automatic resume when ending or pausing a coding session.
Ships in spectre. 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.
Persist the smallest complete state needed to resume the current branch. Finish in 2–3 tool calls and emit only the final confirmation.
$ARGUMENTS: task name; default to the raw current branch.bd tasks labeled with the branch.CANONICAL_DIR=.spectre/handoffs/{raw-branch}; slash-containing branches intentionally create nested directories.LEGACY_DIR=docs/tasks/{raw-branch}/session_logs is read-only fallback history.*_handoff.json history wins. Use matching legacy history only when canonical history is empty; count that selected history so the first canonical handoff continues its numbering.CANONICAL_DIR. Resolve timestamp, selected history directory, and output path once and pass them literally; never reconstruct branch identity from paths.Write {timestamp}_handoff.json as valid JSON with this exact v1.1 shape:
{
"version": "1.1",
"timestamp": "YYYY-MM-DD-HHMMSS",
"branch_name": "raw branch",
"task_name": "argument or raw branch",
"session_number": 1,
"progress_update": {
"summary": "string",
"goal": "string",
"accomplished": [],
"now": "string",
"next_steps": [],
"confidence": "high|medium|low",
"constraints": [],
"decisions": [],
"blockers": [],
"open_questions": [],
"risks": []
},
"working_set": {
"key_files": [],
"active_ids": [],
"recent_commands": []
},
"beads": {
"available": true,
"workspace_label": "raw branch",
"task_count": 1,
"epic_id": null,
"epic_title": null,
"tasks": [{"id":"", "title":"", "status":"", "type":"", "parent":null, "children":[], "labels":[]}]
},
"context": {
"wip_state": "uncommitted|clean",
"last_commit": "short SHA"
}
}
Use “we” voice and empty arrays when optional content is absent. now identifies the exact interrupted work. Omit beads unless bd doctor succeeds and matching open|in_progress|blocked tasks exist. On continuations, @spectre:sync may add continuity while preserving current-session priority and schema.
When a nonempty agent-native todo list exists, also write its exact statuses to {timestamp}_todos.json and update todos_history.json to retain the five newest snapshots. Otherwise create neither file.
DONE when paths/numbering follow the selected-history rule; current summary, now, accomplished, next_steps, confidence, working set, and session number are preserved; optional beads is omitted when unavailable/empty; JSON reparses; and only the applicable canonical files changed.
unknown), short HEAD, worktree count, canonical and legacy counts, selected history, next session number, timestamp/output path, and healthy branch-labeled bd tasks. Create only CANONICAL_DIR.Next (recommended) skill and observed reason verbatim as the first next step; include its canonical artifacts in key_files. Do not independently reroute or invent todo state.session_count = 0, write the handoff directly. Otherwise dispatch exactly one @spectre:sync with the full current JSON inside <current_session>, plus the literal selected history directory and canonical output file inside <session_history_path> and <handoff_output_path>. It reads at most the three newest prior handoffs and writes the final file.| Handoff | Details |
|---|---|
| 🧭 Current phase | Done |
| 📦 What was just done | Result |
| ▶️ Proposed next step | Render resolved action. |
First: path/first-session notice; continuation: path/session/continuity counts. Output only applicable table.
Next step: resume from the saved canonical handoff.
What SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/spectre-captureCapture durable project decisions, accepted corrections, verified reusable patterns or gotchas, disproved guidance, and changed persistent blockers as soon as they matter. The user's correction is sufficient authority without code corroboration. Do not use for routine progress, transient errors, incidental code, task outcomes, or historical work accounts./spectre-code_reviewRun final adversarial review through a pinned high-effort opposing runtime with one native fallback. Use at the final boundary to falsify correctness, safety, production readiness, and requirement delivery. Do not use for partial checkpoints or implementation; review only./spectre-create_prGenerate a grounded draft pull request from the actual diff and open it via gh. Use when wrapping up a branch or writing a PR description; not for Ship-owned cleanup, rebase, or delivery sequencing./spectre-doctorAssess and repair a project's Spectre knowledge, work history, tags, and retrieval quality through primary-led decisions, parallel evidence review, and delegated repairs. Use for corpus cleanup, claim accuracy review, legacy migration, format compliance, or Knowledge Doctor. Not for installer/runtime diagnostics, product-code fixes, or routine capture./spectre-executeExecute tasks/plans with checks/reviews/proof. Use after planning/resume. Not for planning, unplanned fixes, or pruning./spectre-feature-rootInternal initializer for a missing Spectre feature root. Invoke only from a standalone workflow with no confirmed managed root. Do NOT invoke for existing roots, orchestrated calls missing a root, or direct user requests.npx claudepluginhub joenandez/spectre --plugin spectreOther plugins' skills for the same job