Agent skill

Handoff

by Mathews-Tom in Mathews-Tom/armory

Produces and refreshes .docs/handoff.md, a 200-line session-continuity runbook for coding agents.

MITAuto-check passedAgent Workflows

Install Handoff

skills CLI
$ npx skills add Mathews-Tom/armory --skill handoff -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Mathews-Tom/armory handoff --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Mathews-Tom/armory.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/handoff .claude/skills/handoff && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
handoff
GitHub stars
328
Token cost
~1.7k tokens
SKILL.md length
670 words
Files
7 (incl. scripts, references)
Skills in repo
80
Repo updated
First seen
Licence
MIT

At a glance

Produces and refreshes .docs/handoff.md, a 200-line session-continuity runbook for coding agents.

  • Works in 7 steps: Resolve mode. → Read source of truth. → Detect repository state. → …
  • : update handoff
  • SKILL.md covers Reference Files, When To Use, Triggers and Prerequisites, plus 7 more sections
  • Runs Python scripts from its folder; calls uv and git

What it does

Handoff is an agent skill from Mathews-Tom/armory. 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.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including scripts and reference files (for example `evals/cases.yaml`, `evals/fixtures/greenfield/expected-scaffold.md` and `evals/fixtures/known-git-state/expected-handoff.md`).

It sits in Agent Workflows, covering Session handoff, Project scaffolding and Runbooks and postmortems. It works with Git. The repository describes itself as: Curated, production-grade skills for AI coding agents. Battle-tested workflows for developers who use AI seriously. The licence is MIT.

When your agent uses it

  • : update handoff
  • Session handoff
  • Refresh handoff
  • Resume checklist

Example prompts

  • “update handoff”
  • “session handoff”
  • “refresh handoff”
  • “/handoff”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Resolve mode.
  2. Read source of truth.
  3. Detect repository state.
  4. Detect validation state.
  5. Gather session substance.
  6. Write by full rewrite.
  7. Enforce 200 lines.

What it can do on your machine

Read from SKILL.md and the folder at commit 4594fb7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • uv
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Handoff loads about 1.7k tokens when it runs, and up to ~2.5k if it reads all its reference files. Until then it costs about 127 tokens; SKILL.md has 670 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~127
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Mathews-Tom/armory at commit 4594fb7, republished under its MIT licence (© Mathews-Tom). 670 words, ~1,662 tokens.

Download SKILL.mdSave it as .claude/skills/handoff/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
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
metadata.category
development
metadata.tags
session-continuity, runbook, context
metadata.difficulty
intermediate
metadata.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

FileContentsLoad When
references/schema.mdVerbatim handoff schema and line-budget rulesAlways before writing
references/authority-boundaries.mdBoundary between handoff, memory, CLAUDE.md, plans, and gitAlways before writing

When To Use

Use handoffUse another surface
In-flight work, uncommitted edits, current branch, blockers, resume stepsgit log for committed history
Session-scoped decisions and failed approachesMemory or ADRs for durable project facts
Immediate validation state and exact next commandCLAUDE.md for stable setup instructions
Current roadmap cursorPlan 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.
Show full SKILL.md (245 more words)Show less

Supported Operations

OperationCommandBehavior
Refresh/handoffRewrites .docs/handoff.md from current repo and session state
Scaffold/handoff initCreates an empty schema stub when no handoff exists
Stop refreshStop hookRefreshes only when .docs/handoff.md already exists
Dry runuv run skills/handoff/scripts/handoff.py --dry-runPrints 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

ProblemResolution
Not in a git repositoryFail clearly for refresh; scaffold may use branch — and HEAD — only during /handoff init
.docs/ missingCreate it before writing
Validation state unavailableWrite "not recorded this session"; do not claim tests passed
Generated file exceeds 200 linesTruncate oldest What changed bullets and add the warning comment
Existing handoff uses old casing or root pathDo 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>

© Mathews-Tom, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references) in skills/handoff of Mathews-Tom/armory.

  • SKILL.md
  • evals/cases.yaml
  • evals/fixtures/greenfield/expected-scaffold.md
  • evals/fixtures/known-git-state/expected-handoff.md
  • references/authority-boundaries.md
  • references/schema.md
  • scripts/handoff.py

Open the folder on GitHubat commit 4594fb7

Compare with similar skills

Handoff next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Handoff compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Handoff this skillMathews-Tom/armory328—~1.7kAutomated safety check: PassMIT
Project OnboardVKirill/claude-lane-stack122—~1.1kAutomated safety check: PassMIT
Beads Task Memorygastownhall/beads28k—~1.2kAutomated safety check: PassMIT
Session History Searchslopus/happy24k—~3.1kAutomated safety check: PassMIT
Codewhale Session Handoffcodewhale-hq/Codewhale41k—~1.1kAutomated safety check: PassMIT
Compound Engineering SetupEveryInc/compound-engineering-plugin25k—~2kAutomated safety check: PassMIT

Similar skills

  • Project Onboard

    VKirill/claude-lane-stack

    Primary project onboarding for Claude Lane Stack. An agent skill from VKirill/claude-lane-stack.

    122 GitHub stars~1.1k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Beads Task Memory

    gastownhall/beads

    Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.

    28k GitHub stars~1.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Searches past Claude Code, Codex and Cursor sessions and summarizes what was worked on, tried or decided, using extraction scripts instead of reading raw logs.

    24k GitHub stars~3.1k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Codewhale Session Handoff

    codewhale-hq/Codewhale

    Writes a paste-ready handoff for the next agent session, opening with a state-check command block and separating done, suspected and blocked work.

    41k GitHub stars~1.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Compound Engineering Setup

    EveryInc/compound-engineering-plugin

    Checks Compound Engineering plugin health and repo-local config, or scaffolds a Compound Pack when you ask for one by id.

    25k GitHub stars~2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Audit

    openwpm/OpenWPM

    A skill your agent uses when stuck, confused, or disoriented in a crosslink-tracked project — dumps the full context (session state, active issue, locks, blockers, hook config, git state, project…

    1.4k GitHub stars~676 tokensUpdated 4 days ago
    Agent WorkflowsAuto-check passed

More from Mathews-Tom/armory

All 80 skills in this repo
  • Architecture Reviewer

    Mathews-Tom/armory

    Architecture reviews across 7 dimensions (structural, scalability, enterprise readiness, performance, security, ops, data) with scored reports.

    328 GitHub stars~4.6k tokensUpdated 2 days ago
    Auto-check passed
  • Concept To Image

    Mathews-Tom/armory

    Turn concepts into static HTML visuals exported as PNG or SVG files via HTML/CSS/SVG.

    328 GitHub stars~2.6k tokensUpdated 2 days ago
    Auto-check passed
  • Watch

    Mathews-Tom/armory

    A skill your agent uses when analyzing an existing video URL or local recording: "watch this video", "analyze youtube video", "summarize this video", "youtube transcript", "find this moment", "what…

    328 GitHub stars~2.8k tokensUpdated 2 days ago
    Auto-check passed
  • Code Refiner

    Mathews-Tom/armory

    Deep code simplification and refactoring preserving behavior across Python, Go, TypeScript, Rust.

    328 GitHub stars~3.1k tokensUpdated 2 days ago
    Auto-check passed
  • Concept To Video

    Mathews-Tom/armory

    Turn concepts into animated explainer videos using Manim (Python) with MP4/GIF output, audio overlay, multi-scene composition.

    328 GitHub stars~4.9k tokensUpdated 2 days ago
    Auto-check passed
  • Decision Map

    Mathews-Tom/armory

    Maps the unresolved architecture, policy, and scope decisions that must be answered before planning can start: one durable decision ticket per question on the issue tracker, typed and blocker-linked…

    328 GitHub stars~2.7k tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Handoff

What does Handoff do?

Produces and refreshes .docs/handoff.md, a 200-line session-continuity runbook for coding agents. Handoff is an agent skill from Mathews-Tom/armory.md, a 200-line session-continuity runbook for coding agents.

When should I use Handoff?

Handoff fits situations like: : update handoff; session handoff; refresh handoff; resume checklist.

How do I install Handoff in Claude Code?

Run `npx skills add Mathews-Tom/armory --skill handoff -a claude-code`. Or copy the skill folder (skills/handoff in Mathews-Tom/armory) into .claude/skills/handoff in your project. Claude Code loads it when a task matches its description.

How do I install Handoff in Codex?

Run `npx skills add Mathews-Tom/armory --skill handoff -a codex`. Or copy the skill folder (skills/handoff in Mathews-Tom/armory) into .agents/skills/handoff in your project. Codex loads it when a task matches its description.

Can I use Handoff in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Mathews-Tom/armory --skill handoff -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/handoff, .gemini/skills/handoff, .github/skills/handoff and .opencode/skills/handoff in your project.

What does Handoff need to run?

Going by SKILL.md and its folder, Handoff needs Python for the scripts in its folder and the command-line tools its instructions call (uv and git). Our summary lists: Python 3.

Does Handoff access the network?

SKILL.md contains no URLs. Its commands use uv and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Handoff safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Handoff use?

Handoff is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Handoff use?

About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 828 tokens, read only when the agent opens those files.

What are the alternatives to Handoff?

Skills that share tags, products or a category with Handoff: Project Onboard (VKirill/claude-lane-stack, 122 stars), Beads Task Memory (gastownhall/beads, 28k stars), Session History Search (slopus/happy, 24k stars) and Codewhale Session Handoff (codewhale-hq/Codewhale, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Handoff?

Mathews-Tom (a GitHub user) maintains it in Mathews-Tom/armory, which has 328 GitHub stars. The repository holds 80 skills in this directory. The repository was last updated on October 6, 2026.

Source: Mathews-Tom/armory on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.