Create and commit a durable handoff document that gives a fresh agent the context and prompt to continue the current planning or implementation work. Use only when explicitly invoked as `$handoff` or when the user explicitly requests a handoff.
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Create a durable, committed handoff document for a fresh agent to resume the current work in a new session. Treat it as a replacement for conversation compaction: the document must let the next agent begin without access to this chat.
Inspect the current context in one command where possible:
git rev-parse --show-toplevel && git branch --show-current && \
git status --short --branch && echo "---DIFF---" && \
git diff --stat && echo "---CACHED---" && git diff --cached --stat && \
echo "---RECENT---" && git log --oneline -5Also inspect the relevant files, issue/PR/ticket context, commands run, and test results already established in this session. If the current directory is not a Git repository, write the document but report that it could not be committed.
Derive a concise lowercase-kebab-case topic from the work being handed off.
Create docs/handoffs/YYYY-MM-DD-<topic>.md. If the topic is unclear, use
docs/handoffs/YYYY-MM-DD-session-handoff.md; do not ask.
Write the document using the template below. Be specific: cite repository paths, branch names, commit SHAs, commands, and observed outcomes. Include only sections that have relevant content, except Open Questions, Confidence, and Start Here, which are always required.
# Handoff: <topic>
**Created:** <ISO 8601 timestamp>
**Repository:** `<absolute repository root>`
**Branch:** `<branch>`
**Base / HEAD:** `<base if known>` / `<HEAD SHA>`
**Status:** <clean or exact modified/untracked files>
## Goal
<The requested outcome and success criteria.>
## Start Here
> You are continuing the work described in this handoff. First run the
> verification commands in **Current State**, read the listed context files,
> then execute **Recommended Next Steps**. Preserve the recorded decisions;
> revisit them only if new evidence invalidates an assumption. Ask the human
> only the blocking questions in **Open Questions**.
## Current State
- **Completed:** <facts, including commits already made.>
- **In progress:** <precise partial work and its state.>
- **Working tree:** <which files are intentionally modified and why.>
- **Verification:** <commands run and their exact pass/fail/not-run result.>
- **Resume commands:**
```bash
<safe commands to confirm branch, status, and relevant tests>| Decision | Rationale | Do not pursue |
|---|---|---|
<path> — Plan completeness: <high | medium | low> (<0–100>%).
<What is known, what remains uncertain, and what evidence would increase confidence.>
<Use one agent when the work is sequential or small. For parallelizable work, name each role, its bounded responsibility, dependencies, and integration order. State "Not warranted" when a team would add coordination overhead.>
Review the document for completeness, factual accuracy, sensitive data, and
actionable next steps. Replace empty template fields with Not applicable
or a concrete open question; do not leave placeholders.
Commit the document without touching other changes:
git add -- "docs/handoffs/YYYY-MM-DD-<topic>.md"
git commit -m "docs: Add <topic> handoff"If the commit fails because of a hook or repository state, keep the document written, report the failure and exact remediation, and do not alter unrelated changes.
Report the document path, commit SHA, confidence level, the first next step, and every unresolved question.
phatblat/dotfiles
4d65cab
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.