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.
npx skills add cafe3310/public-agent-skills --skill claude-code-handoffgit clone --depth 1 https://github.com/cafe3310/public-agent-skillsWrote 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.
[](https://agentmods.dev/skills/cafe3310/public-agent-skills/claude-code-handoff)<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/claude-code-handoff"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/claude-code-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.
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/claude-code-handoff"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/claude-code-handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00023 | $0.00611 |
| Opus 5.5 | $0.00009 | $0.00244 |
| Sonnet 5.5 | $0.00005 | $0.00122 |
| Haiku 4.5 | $0.00002 | $0.00061 |
Grade A, and why
claude-code-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 3mo 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.
What it actually says
claude-code-handoff
解析本地 Claude Code 的 session jsonl 结构,诊断中断原因,自动恢复上下文或交接文档并指导接续任务。
适用场景
- 任务接力:开发工作由 Claude Code CLI 启动并开发至一半,现在需要由 Gemini (Antigravity 平台) 接管。
- 死锁/限制中断恢复:Claude Code 在运行过程中遇到了 API 频率超限 (429 Rate Limit) 或上下文超长窗口超限 (422 Context Window Exceeded) 等错误强制中止,需要无缝迁移至 Gemini 续作。
- 状态诊断:快速查看本地最新的 Claude Code session,查看最后执行的对话历史、调用的工具以及运行时的 git 分支和 cwd 信息。
工作原理
- 定位 Session 文件:
根据传入的
session ID(如 UUID)或session 文件名,在 Claude 目录(包括官方的~/.claude/projects/)中自动搜索对应的.jsonl文件。同时也支持传入具体的本地文件路径。 - 提取历史与状态:
- 提取 session 中最近几轮的对话历史;
- 从
attachment事件中提取最后生成的HANDOFF.md; - 分析最近的
system和assistant事件是否有报错。
- 输出 Handoff 并落盘:
- 自动在项目根目录生成/更新
HANDOFF.md。如果 session 包含已加载的HANDOFF.md附件,则以它为准;否则根据最近的上下文合成一份草拟版本。 - 生成一段指令用于用户直接复制粘贴给接续的 Agent 引导后续工作。
- 自动在项目根目录生成/更新
使用步骤
- 用户在对话中调用此技能,传入特定的 session ID 或 jsonl 文件路径。
- Agent 执行解析脚本:
python3 {path_to_public-agent-skills}/skills/claude-code-handoff/scripts/claude_handoff_parser.py -f <session_id_or_file_path> [-o /path/to/HANDOFF.md] - 根据输出中的提示复制接力指令,并加载更新后的
HANDOFF.md继续工作。
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 39 lines · 23 tokens per session scan A 6c1d64fecbd7
claude-code-handoff is a skill published in the GitHub repository cafe3310/public-agent-skills (260 stars, last pushed 14d ago), licensed Apache-2.0. It adds 23 tokens to every session and 611 once invoked, about $0.0001 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-08-30.
claude-code-handoff compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| claude-code-handoffcafe3310/public-agent-skills | Skill | 260 | 14d ago | Apache-2.0 | A | 23 | Claude Code |
| expertsflc1125/skills | Skill | 39 | today | MIT | A | 62 | Claude Code, Codex |
| asyncflc1125/skills | Skill | 39 | today | MIT | A | 52 | Claude Code, Codex |
| github-release-pr-writerflc1125/skills | Skill | 39 | today | MIT | A | 80 | Claude Code, Codex |
| yuqueflc1125/skills | Skill | 39 | today | MIT | A | 72 | Claude Code, Codex |
| getnoteflc1125/skills | Skill | 39 | today | MIT | A | 83 | Claude Code, Codex |
| opentelemetry-go-reviewerflc1125/skills | Skill | 39 | today | MIT | A | 34 | Claude Code, Codex |