Skip to content
Skills Library
Programming · Writing

handoff

/handoff

Produces and refreshes `.docs/handoff.md`, a 200-line session-continuity runbook for coding agents. Captures git state, working-tree changes, last validation commands, session decisions, blockers, resume checklist, references, and greenfield scaffolds. Triggers on: "update handoff", "session handoff", "refresh handoff", "/handoff", "/handoff init", "resume checklist", "cold-start primer". Use this skill when ending, pausing, resuming, or transferring in-flight project work across agent sessions.

Repository
armory ↗
Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
7
Scripts
1
HTML comments
1
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Scripts: scripts/handoff.py

What it does and when to use it

Produces and refreshes `.docs/handoff.md`, a 200-line session-continuity runbook for coding agents. Captures git state, working-tree changes, last validation commands, session decisions, blockers, resume checklist, references, and greenfield scaffolds. Triggers on: "update handoff", "session handoff", "refresh handoff", "/handoff", "/handoff init", "resume checklist", "cold-start primer". Use this skill when ending, pausing, resuming, or transferring in-flight project work across agent sessions.

Triggers from the description

update handoffsession handoffrefresh handoffresume checklistcold-start primer
Original author description

Produces and refreshes `.docs/handoff.md`, a 200-line session-continuity runbook for coding agents. Captures git state, working-tree changes, last validation commands, session decisions, blockers, resume checklist, references, and greenfield scaffolds. Triggers on: "update handoff", "session handoff", "refresh handoff", "/handoff", "/handoff init", "resume checklist", "cold-start primer". Use this skill when ending, pausing, resuming, or transferring in-flight project work across agent sessions.

How it works

  1. Reference Files
  2. When To Use
  3. Triggers
  4. Prerequisites
  5. Workflow
  6. Supported Operations
  7. Implementation Notes
  8. Greenfield Scaffold
  9. Output Format
  10. Troubleshooting
Original SKILL.md headings · 127 lines, 862 words
SKILL.md preview
---
name: handoff
description: 'Produces and refreshes `.docs/handoff.md`, a 200-line session-continuity runbook for coding agents. Captures git state, working-tree changes, last validation commands, session decisions, blockers, resume checklist, references, and greenfield scaffolds. Triggers on: "update handoff", "session handoff", "refresh handoff", "/handoff", "/handoff init", "resume checklist", "cold-start primer". Use this skill when ending, pausing, resuming, or transferring in-flight project work across agent sessions.'
metadata:
  version: 0.1.0
  category: development
  tags: [session-continuity, runbook, context]
  difficulty: intermediate
  phase: ship
---

# Handoff

Maintains `.docs/handoff.md` as the project-local cold-start primer for the next coding agent or human developer. The file captures transient session state only: what changed, what was decided, what is blocked, and exactly how to resume.

## Reference Files

| File | Contents | Load When |
| --- | --- | --- |
| `references/schema.md` | Verbatim handoff schema and line-budget rules | Always before writing |
| `references/authority-boundaries.md` | Boundary between handoff, memory, CLAUDE.md, plans, and git | Always before writing |

## When To Use

| Use handoff | Use another surface |
| --- | --- |
| In-flight work, uncommitted edits, current branch, blockers, resume steps | `git log` for committed history |
| Session-scoped decisions and failed approaches | Memory or ADRs for durable project facts |
| Immediate validation state and exact next command | `CLAUDE.md` for stable setup instructions |
| Current roadmap cursor | Plan files for strategic roadmap content |

## Triggers

- Direct commands: `/handoff`, `/handoff init`
- Refresh phrases: "update handoff", "session handoff", "refresh handoff", "save handoff"
- Resume phrases: "cold-start primer", "resume checklist", "handoff to next session"
- Stop hook: refresh silently when `.docs/handoff.md` already exists

## Prerequisites

- `git` available in the project root.
- Project write access for `.docs/handoff.md`.
- Optional project-local marker files:
  - `.docs/handoff.last-validation` containing the last verification command and result.
  - `.docs/handoff.session` containing extra bullets for changes, decisions, blockers, or refs.

## Workflow

1. **Resolve mode.**
   - `/handoff init` or invocation from an initialization workflow writes a greenfield stub when `.docs/handoff.md` is absent.
   - `/handoff`, refresh phrases, and Stop-hook invocation rewrite the full file.
2. **Read source of truth.**
   - Load `references/schema.md` and preserve the schema headings exactly.
   - Load `references/authority-boundaries.md` and include the authority boundary line in every generated handoff.
3. **Detect repository state.**
   - Run `git rev-parse --show-toplevel`, `git branch --show-current`, `git rev-parse --short HEAD`, and `git status --porcelain`.
   - Count modified, untracked, and staged paths from porcelain status.
   - Include the top 3-5 changed paths in the Status section.
4. **Detect validation state.**
   - Prefer recent session context: commands actually run in the current agent session and their result.
   - If available, read `.docs/handoff.last-validation`.
   - If neither exists, write explicit unknowns: "not recorded this session" rather than inventing pass/fail.
5. **Gather session substance.**
   - Summarize logical changes from current conversation, uncommitted paths, and commits since the branch base when relevant.
   - Record decisions with rationale in two sentences or fewer.
   - Record blockers and open questions as actionable unchecked items.
   - Include failed approaches when they would prevent wasted work in the next session.
6. **Write by full rewrite.**
   - Replace `.docs/handoff.md` atomically; do not append.
   - Create `.docs/` if absent.
   - Keep the file lowercase at `.docs/handoff.md`.
7. **Enforce 200 lines.**
   - Count final lines after rendering.
   - If over 200, truncate `## What changed this session` oldest-first.
   - Insert `<!-- WARNING: handoff exceeded 200 lines; oldest session changes were truncated. -->`.
   - If still over 200, compress decisions and blockers to the newest actionable items, preserving all required headings.

## Supported Operations

| Operation | Command | Behavior |
| --- | --- | --- |
| Refresh | `/handoff` | Rewrites `.docs/handoff.md` from current repo and session state |
| Scaffold | `/handoff init` | Creates an empty schema stub when no handoff exists |
| Stop refresh | Stop hook | Refreshes only when `.docs/handoff.md` already exists |
| Dry run | `uv run skills/handoff/scripts/handoff.py --dry-run` | Prints generated content without writing |

## Implementation Notes

The bundled script is the deterministic baseline used by the command and hook:

```bash
uv run skills/handoff/scripts/handoff.py --project-root "$PWD"
uv run skills/handoff/scripts/handoff.py --project-root "$PWD" --init
```

Agents may improve populated bullets from live session context before writing, but must preserve:

- Schema headings and order.
- Authority boundary line.
- Full-file rewrite semantics.
- Hard 200-line cap.
- Explicit unknowns instead of silent fallbacks.

## Greenfield Scaffold

When invoked as `/handoff init` or under a project initialization flow and `.docs/handoff.md` does not exist, write the schema with empty placeholders and real git metadata. This documents the `/init` integration point without modifying any init script.

## Output Format

Write exactly one file: `.docs/handoff.md`.

Required first lines:

```markdown
# Handoff — <project name>

**Last touched:** <ISO 8601 timestamp with timezone> · **branch:** `<branch>` · **HEAD:** `<short-sha>` · **session:** <model id>
```

## Troubleshooting

| Problem | Resolution |
| --- | --- |
| Not in a git repository | Fail clearly for refresh; scaffold may use branch `—` and HEAD `—` only during `/handoff init` |
| `.docs/` missing | Create it before writing |
| Validation state unavailable | Write "not recorded this session"; do not claim tests passed |
| Generated file exceeds 200 lines | Truncate oldest `What changed` bullets and add the warning comment |
| Existing handoff uses old casing or root path | Do not migrate automatically; future refreshes converge only when invoked in that project |

## Verification

- `uv run python scripts/validate_evals.py`
- `uv run scripts/evaluate_package.py skills/handoff`
- `uv run skills/handoff/scripts/handoff.py --project-root <repo> --dry-run`
- `uv run skills/handoff/scripts/handoff.py --project-root <repo> --init --output <tmp-file>`

Files in this package (7)
  • SKILL.md 7 KB
  • evals/cases.yaml 2 KB
  • evals/fixtures/greenfield/expected-scaffold.md 1 KB
  • evals/fixtures/known-git-state/expected-handoff.md 1 KB
  • references/authority-boundaries.md 1 KB
  • references/schema.md 2 KB
  • scripts/handoff.py 10 KB

Versions

RepositoryScoreLicence
This page · mathews-tom/armory100MIT
lumpen-mya/claude-handoff100MIT
generous-corp/pulp100MIT
Ovid/paad100MIT
Ovid/paad100MIT
Ovid/paad100MIT
webdevnerdstuff/claude-marketplace100MIT
terencebristol/terencebristol-toolkit100MIT
verkyyi/claude-fleet100MIT

Database snapshot: 13.11.2026 · package version 6f57efffc498 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100spectre-handoff
    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.
  • 100resume
    Read the handoff note that a previous session left with handoff:save (a page in the Cairn board's Handoff collection, or .handoff/HANDOFF.md), check it against the current state of the repository, confirm the next piece of work with the user, and then resume the paused work.…
  • 100spectre-handoff
    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.
  • 100resume-pack
    Writes a resume pack when a session ends or context fills: handoff note, exact next prompt, pending manual steps and learnings, with no secrets or raw conversation. Use when pausing unfinished work for another session. Use evidence-handoff when a new owner needs to take over.
  • 100check-handoff
    Audit a coding-agent handoff or session summary against repository evidence before resuming work or claiming completion. Use for checking handoffs, not for general code review or running experiments.
  • 100ce-handoff
    Create a session handoff for another agent, or resume, find, and read any user-selected continuity source. Use when work or conversation must continue without access to the current session history.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.