handoff

handoff is a skill for Claude Code from aldianriski/lean-flow. It costs 93 tokens per session (1,963 once invoked), scanned A, a copy of google-tag-manager, MIT.

A session handoff skill that saves the current work state, decisions, blockers, and next steps in a temporary document for another agent or a future session.

In plain words
What is it for?
Use it when pausing mid-task, transferring work to another agent, or preparing a future session to continue from the same state.
Why use it?
It prevents unfinished work from losing its context when a session ends, the task is blocked, or the conversation becomes too large.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the lean-flow plugin — 16 skills shipped together

Good fit Use it when pausing mid-task, transferring work to another agent, or preparing a future session to continue from the same state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aldianriski/lean-flow/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 aldianriski/lean-flow --skill handoff
Clone the repo
git clone --depth 1 https://github.com/aldianriski/lean-flow

Made for: Claude Code.

Or install lean-flow, the plugin that ships this one along with the rest of its 16 skills.

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/aldianriski/lean-flow/handoff/github.svg)](https://agentmods.dev/skills/aldianriski/lean-flow/handoff)
Your own site
<a href="https://agentmods.dev/skills/aldianriski/lean-flow/handoff"><img src="https://agentmods.dev/badge/skills/aldianriski/lean-flow/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/aldianriski/lean-flow/handoff"><img src="https://agentmods.dev/badge/skills/aldianriski/lean-flow/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,963 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod 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.00093 $0.01963
Opus 5.5 $0.00037 $0.00785
Sonnet 5.5 $0.00019 $0.00393
Haiku 4.5 $0.00009 $0.00196

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

Security

Grade A, and why

handoff scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to google-tag-manager — 116 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/handoff/SKILL.md · 110 lines

How it starts

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

handoff

Compact the current conversation into a handoff document so a fresh agent can continue without re-deriving everything. Transient, not durable — this is the conversation's working state, not a project record. Pairs with /prime: handoff out at session end → /prime + read the handoff in. TODO.md present and no docs/work/ → v1 · both present → mixed · only docs/work/ → v2 (existence only, never content). On v1 or mixed, name it and refuse to write the status stub — point to /lean-doc-generator migrate, the only 2.x path for a v1 tree.

When to invoke

  • The session's context is past ~200k (or the host's lane-context-ceiling:) at a task boundary and work is unfinished; in a lane, also send the coordinator "rotate me <path>" (→ /orchestrator references/coordinator.md § 8 Lane rotation).
  • A task is blocked and the next session will resume it.
  • A deliberate stop mid-task, or a planned agent-to-agent handoff.

Not a substitute for /lean-doc-generator close (durable sprint record + CHANGELOG) or a commit.

Where it saves

Write to the OS temp directory, not the workspace — a handoff is throwaway and must not pollute the repo or git status. Resolve temp per platform:

  • Windows: $env:TEMP (e.g. C:\Users\<you>\AppData\Local\Temp)
  • macOS / Linux: $TMPDIR or /tmp

Filename: handoff-<short-slug>.md. Emit the absolute path so the next session can read it.

Before saving, pass the doc's prose through /humanizer embedded mode (the humanizer skill's references/embedded.md; format markdown; voice sample = the "What goes in" outline below, since no template file exists). Never changed: paths, commands, ids, the handoff-path line and the status fields. A failed pass saves the original text plus the contract's one-line notice; it never blocks the handoff.

What goes in

  1. Goal / focus — what this work is trying to achieve. If the user passed an argument, treat it as the next session's focus and tailor the doc to it.
  2. State — what's done, what's in progress, what's left. Be concrete (files touched, decisions made).
  3. Next steps — the ordered list the next agent should start with.
  4. Blockers / open questions — anything unresolved, with what's needed to unblock. A sprint run's ready frontier lands here as rounds with a recommended answer per question; dependents wait for prerequisite answers (orchestrator/references/sprint-bulk-run.md § Runtime).
  5. Uncertain writes — every write you started but did not see finish (a worktree agent that timed out, a remote gate run whose connection dropped, a merge-back that stopped part-way, a push with no reply), plus any you inherited from an earlier handoff and have not yet reconciled: the operation, its target, and how to read it back. A timeout does not prove it failed. Write none when there is none; never omit the item.
  6. Suggested skills — which skills the next agent should invoke (e.g. /prime first, then /orchestrator to resume, /diagnose for the failing test).
  7. References — do not duplicate — point to durable artifacts by path or URL (PRDs, ADRs, the sprint file, commits, diffs, issues). Summarize only what is NOT already captured elsewhere.

Read the full file on GitHub · 110 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. 8d ago Changed 3de91736930a
  2. 14d ago Changed · +1 lines f5db5b3bb31e
  3. 15d ago Changed · +3 lines f0560c6ac043
  4. 1mo ago Changed · +2 lines e0c9546a92b1
  5. 1mo ago Changed · +3 lines 65f6a5d57f5a
  6. 1mo ago Changed 193eb0700597
  7. 2mo ago Changed · +7 lines c86e5034854f
  8. 2mo ago Changed · +28 lines 30f06f7a483b
  9. 3mo ago First seen · 66 lines · 93 tokens per session scan A 512a77dd5ce0

Subscribe to this mod's changes

handoff is a skill published in the GitHub repository aldianriski/lean-flow (4 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 1,963 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to google-tag-manager, differing in 116 lines, and is treated as a copy.

Related

handoff compared with skills from other repositories

handoff next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
handoffaldianriski/lean-flowSkill4todayMITA93Claude Code
knowledge-ingestopenclaw/openclawSkill395ktodayMITA80Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A0Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k12d agoMITA184Claude Code
memoryopensquilla/opensquillaSkill7.2k4d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex