handoff

handoff is a skill for Claude Code from yuri-semenenko/ai-engineering-workspace. It costs 109 tokens per session (1,842 once invoked), scanned C, original, MIT.

A handoff skill that saves the state of one work stream before chat history is cleared and can resume from that saved state. It records what matters for continuation while leaving out information that can be reread from Git, a pull request, or a ticket.

In plain words
What is it for?
Use it at a task boundary before /clear, or when asked to write or resume a handoff file.
Why use it?
It prevents important context from being lost when a session ends or is reset. It also gives the next session a clear resume point rather than requiring the work to be reconstructed.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it at a task boundary before /clear, or when asked to write or resume a handoff file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yuri-semenenko/ai-engineering-workspace/handoff
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yuri-semenenko/ai-engineering-workspace --skill handoff
Clone the repo
git clone --depth 1 https://github.com/yuri-semenenko/ai-engineering-workspace

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for handoff

README.md
[![agentmods](https://agentmods.dev/badge/skills/yuri-semenenko/ai-engineering-workspace/handoff/github.svg)](https://agentmods.dev/skills/yuri-semenenko/ai-engineering-workspace/handoff)
Your own site
<a href="https://agentmods.dev/skills/yuri-semenenko/ai-engineering-workspace/handoff"><img src="https://agentmods.dev/badge/skills/yuri-semenenko/ai-engineering-workspace/handoff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for handoff

Your own site · 80×15
<a href="https://agentmods.dev/skills/yuri-semenenko/ai-engineering-workspace/handoff"><img src="https://agentmods.dev/badge/skills/yuri-semenenko/ai-engineering-workspace/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,842 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00109 $0.01842
Opus 5.5 $0.00044 $0.00737
Sonnet 5.5 $0.00022 $0.00368
Haiku 4.5 $0.00011 $0.00184

Measured 23d ago against content hash 9d388112aaf4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

handoff scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

When the stream ends (its last PR merged, or the work abandoned), close it instead of writing a handoff: fold anything durable into memory, then run the ownership check from Write on the stream's file. Before deleting an
claude-code/.claude/skills/handoff/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

handoff

/clear is cheap only if nothing that matters dies with the context. A handoff carries what a fresh session needs to continue without re-deriving it: the next step, the state, the decisions and their reasons. It leaves out whatever the next session can re-read from git, the PR, the ticket, or memory.

When

At a task boundary: write first, then suggest /clear with the resume line. Which moments are boundaries, and when not to offer one, is the Session Hygiene rule in the persona; it is not restated here. When the boundary is the stream's last PR merging, Close instead of writing.

Write

Path: ~/.handoffs/<key>/<stream>.md. <key> is the main checkout's directory name plus a short hash of the repository's identity: its origin URL as configured, or the main checkout's absolute path when there is no origin. Every worktree of one repository gets the same key, and two repositories that share a name do not. The hash covers exact bytes, so run one of these as written rather than translating it; both print the same key:

main=$(git worktree list --porcelain | sed -n '1s/^worktree //p')
id=$(git config --get remote.origin.url); [ -n "$id" ] || id=$main
printf '%s-%s\n' "$(basename "$main" .git)" "$(printf '%s' "$id" | git hash-object --stdin | cut -c1-8)"
$enc = [Console]::OutputEncoding; [Console]::OutputEncoding = [Text.UTF8Encoding]::new($false)
$main = (git worktree list --porcelain)[0] -creplace '^worktree '
$id = git config --get remote.origin.url; if (-not $id) { $id = $main }
[Console]::OutputEncoding = $enc
$f = [IO.Path]::GetTempFileName(); [IO.File]::WriteAllText($f, $id); $h = git hash-object $f; Remove-Item $f
'{0}-{1}' -f ((Split-Path -Leaf $main) -creplace '(?<=.)\.git$'), $h.Substring(0, 8)

The PowerShell form reads git's output as UTF-8 and strips .git case-sensitively, as basename does; without either, a non-ASCII path or a .GIT suffix prints a different key.

The URL goes into the hash, never into the path or the handoff, so a credential in it does not land there. Renaming the checkout's directory, changing origin, or moving a checkout that has none changes the key. <stream> is the ticket key (PROJ-123) or a kebab-case topic.

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed 9d388112aaf4
  2. 1mo ago First seen · 95 lines · 109 tokens per session scan C 1184677ef2cb

Subscribe to this mod's changes

handoff is a skill published in the GitHub repository yuri-semenenko/ai-engineering-workspace (4 stars, last pushed 3d ago), licensed MIT. It adds 109 tokens to every session and 1,842 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

handoff compared with skills from other repositories

handoff next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
handoffyuri-semenenko/ai-engineering-workspaceSkill43d agoMITC109Claude Code
al-context-createjaviarmesto/ALDC-AL-Development-CollectionSkill1162d agoMITA39Claude Code
al-memory-createjaviarmesto/ALDC-AL-Development-CollectionSkill1162d agoMITA40Claude Code
apex-context-managementjonathan-vella/apex-acceleratorSkill513d agoMITA100Claude Code
workspace-knowledge-synculises-jeremias/agent-toolkitSkill282d agoMITA64Claude Code
workspaceulises-jeremias/agent-toolkitSkill282d agoMITA27Claude Code
reflectrjmurillo/ai-agentsSkill50todayApache-2.0A42Claude Code