handoff-doc

handoff-doc is a skill for Claude Code, Codex from sjarmak/coding-agent-workflows. It costs 40 tokens per session (1,783 once invoked), scanned A, original, MIT.

A file-based handoff tool for saving the current work and context so a new agent session can continue from a document. The next session reads the file and deletes it after using it.

In plain words
What is it for?
It helps record the user's goal, relevant files, current progress, and instructions for continuing later or by another person.
Why use it?
It avoids losing important context when a conversation reaches its limit or work moves to a new session.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps record the user's goal, relevant files, current progress, and instructions for continuing later or by another person.

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

Made for: Claude Code, Codex.

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-doc

README.md
[![agentmods](https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/handoff-doc/github.svg)](https://agentmods.dev/skills/sjarmak/coding-agent-workflows/handoff-doc)
Your own site
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/handoff-doc"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/handoff-doc/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-doc

Your own site · 80×15
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/handoff-doc"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/handoff-doc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,783 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 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.00040 $0.01783
Opus 5.5 $0.00016 $0.00713
Sonnet 5.5 $0.00008 $0.00357
Haiku 4.5 $0.00004 $0.00178

Measured 1mo ago against content hash 10602e45e89a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

handoff-doc 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 1mo 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.

source/skills/handoff-doc/SKILL.md · 221 lines

How it starts

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

Handoff Doc: Durable Context Continuation

Record continuation context in the repository's durable handoff store. The next session gets a pointer, reads the document, and follows that store's lifecycle.

Use this when:

  • Nearing the auto-compact or context limit
  • Starting a fresh session while preserving important context
  • The handoff is long enough that a pasted prompt is unwieldy
  • The next session may be started by someone else, or later

Why a file instead of a pasted prompt:

  • Survives clipboard churn between clearing the session and starting the new one
  • Holds more context than is comfortable to paste
  • The pointer is short and stable, so it works from a script, a cron job, or another agent
  • The repository's lifecycle records when a handoff has been consumed

The Job

  1. Get the user's goal for the next session
  2. Extract relevant context from the current conversation
  3. Identify important files that were worked on
  4. Write the handoff to the configured store or its documented file adapter
  5. Show the user the short pointer prompt for the new session

Step 1: Get the User's Goal

Use the active task as the goal when it is clear. If no goal can be recovered, ask:

What do you want to continue working on in the new session?

Step 2: Extract Relevant Context

Analyze the current conversation and extract information from your own perspective, writing in first person ("I did...", "I found...").

Include:

  • What was accomplished: major implementations, fixes, or changes made
  • Key decisions: architecture choices, patterns chosen, libraries selected
  • Important discoveries: APIs, methods, patterns found in the codebase
  • Constraints and preferences: user-specified requirements, patterns to follow
  • Caveats and limitations: edge cases, known issues, things to watch out for
  • Open questions: unresolved issues or decisions needed
  • Plans or specs: if a plan was created, summarize the key points
  • State of the working tree: uncommitted changes, branch name, failing tests, half-finished edits. The next session cannot see any of this and will otherwise rediscover it the expensive way.

Read the full file on GitHub · 221 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. 1mo ago Changed · -17 lines · -29 tokens per session 10602e45e89a
  2. 2mo ago First seen · 238 lines · 69 tokens per session scan A 4377f84bd8f8

Subscribe to this mod's changes

handoff-doc is a skill published in the GitHub repository sjarmak/coding-agent-workflows (7 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 1,783 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

handoff-doc compared with skills from other repositories

handoff-doc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
handoff-docsjarmak/coding-agent-workflowsSkill72d agoMITA40Claude Code, Codex
planning-with-filesmxyhi/ok-skillsSkill5189d agoApache-2.0A117Claude Code
ponytailmxyhi/ok-skillsSkill5189d agoApache-2.0A91Claude Code
obsidian-baseskepano/obsidian-skillsSkill55k3d agoMITA63Claude Code
grillingvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA43Claude Code, Codex
stay-within-limitsBuilderIO/skillsSkill4.7k3d agoMITA45Claude Code
learntw93/WazaSkill7.7k12d agoMITA39Claude Code