joenandez/spectre/spectre-handoff
Claude Code and agent skill by joenandez/spectre
- community
Checking that the SKILL.md file is still in the repository.
Save a quiet, branch-keyed session snapshot with continuity, active work, and optional task/todo state for automatic resume. Use when ending or pausing a coding session; do not use for project documentation or workflow routing.
Install
npx vskill@latest install joenandez/spectre/spectre-handoffSKILL.md
handoff
Purpose
Persist the smallest complete state needed to resume the current branch. Finish in 2–3 tool calls and emit only the final confirmation.
Inputs
$ARGUMENTS: task name; default to the raw current branch.- Current conversation/session memory: goal, completed and active work, decisions, constraints, blockers, risks, open questions, next steps, active files/IDs, recent verification commands, outer workflow routing, and any nonempty agent-native todo list.
- Late-bound repository state: raw branch, HEAD, worktree status, canonical/legacy handoff history, and optional healthy
bdtasks labeled with the branch.
Working Set
CANONICAL_DIR=.spectre/handoffs/{raw-branch}; slash-containing branches intentionally create nested directories.LEGACY_DIR=docs/tasks/{raw-branch}/session_logsis read-only fallback history.- Canonical
*_handoff.jsonhistory wins. Use matching legacy history only when canonical history is empty; count that selected history so the first canonical handoff continues its numbering. - New handoffs and todo snapshots write only under
CANONICAL_DIR. Resolve timestamp, selected history directory, and output path once and pass them literally; never reconstruct branch identity from paths.
Outputs + DONE
Write {timestamp}_handoff.json as valid JSON with this exact v1.1 shape:
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.
Method / guardrails
- Gather repository/history/task state in one shell call: resolve raw branch (fallback
unknown), short HEAD, worktree count, canonical and legacy counts, selected history, next session number, timestamp/output path, and healthy branch-labeledbdtasks. Create onlyCANONICAL_DIR. - Compose the current snapshot from session memory. Preserve the outer workflow’s already-selected
Next (recommended)skill and observed reason verbatim as the first next step; include its canonical artifacts inkey_files. Do not independently reroute or invent todo state. - If selected
session_count = 0, write the handoff directly. Otherwise dispatch exactly one@spectre:syncwith 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. - Treat canonical artifacts as shared state; write no intermediate documents. Verify the final JSON and any todo-history retention before claiming success.
Handoff
| 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.
Escalate-If
- The canonical file, continuation synthesis, JSON validation, or required todo writes fail: surface the concrete failure and do not claim the handoff was saved.
Next step: resume from the saved canonical handoff.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/spectre/skills/spectre-handoff/SKILL.md
Popularity
- Repository stars
- 164
- Repository forks
- 16
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/joenandez/spectre/spectre-handoff)