Agent skill

Claude Code Handoff

by cafe3310 in cafe3310/public-agent-skills

从 Claude Code 的 Session 解析 jsonl 对话记录,接续执行任务. An agent skill from cafe3310/public-agent-skills.

Apache-2.0Auto-check passedAgent Workflows

Install Claude Code Handoff

skills CLI
$ npx skills add cafe3310/public-agent-skills --skill claude-code-handoff -a claude-code

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

GitHub CLI
$ gh skill install cafe3310/public-agent-skills claude-code-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/cafe3310/public-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/claude-code-handoff .claude/skills/claude-code-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
claude-code-handoff
GitHub stars
255
Token cost
~348 tokens
SKILL.md length
103 words
Files
2 (incl. scripts)
Skills in repo
29
Repo updated
First seen
Licence
Apache-2.0

At a glance

从 Claude Code 的 Session 解析 jsonl 对话记录,接续执行任务. An agent skill from cafe3310/public-agent-skills.

  • Works in 3 steps: 任务接力:开发工作由 Claude Code CLI… → 死锁/限制中断恢复:Claude Code 在运行过程中遇到了 API 频率超限… → 状态诊断:快速查看本地最新的 Claude Code…
  • Agent Workflows work in your project
  • SKILL.md covers 适用场景, 工作原理 and 使用步骤
  • Runs Python scripts from its folder; calls python3

What it does

Claude Code Handoff is an agent skill from cafe3310/public-agent-skills. 从 Claude Code 的 Session 解析 jsonl 对话记录,接续执行任务

Its SKILL.md is about 350 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/claude_handoff_parser.py`).

It sits in Agent Workflows. The repository describes itself as: personal agent skills for better QoL. The licence is Apache-2.0.

When your agent uses it

  • Agent Workflows work in your project

Example prompts

  • “/claude-code-handoff”

Requirements

  • Python 3

Workflow steps

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

  1. 任务接力:开发工作由 Claude Code CLI 启动并开发至一半,现在需要由 Gemini (Antigravity 平台) 接管。
  2. 死锁/限制中断恢复:Claude Code 在运行过程中遇到了 API 频率超限 (429 Rate Limit) 或上下文超长窗口超限 (422 Context Window Exceeded) 等错误强制中止,需要无缝迁移至 Gemini 续作。
  3. 状态诊断:快速查看本地最新的 Claude Code session,查看最后执行的对话历史、调用的工具以及运行时的 git 分支和 cwd 信息。

What it can do on your machine

Read from SKILL.md and the folder at commit 6c45501. 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:

    • python3

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

  • Network

    No URLs in SKILL.md.

    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

Claude Code Handoff loads about 348 tokens when it runs. Until then it costs about 16 tokens; SKILL.md has 103 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~16
When it runs · the whole SKILL.md, loaded when a task matches
~348

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 cafe3310/public-agent-skills at commit 6c45501, republished under its Apache-2.0 licence (© cafe3310). 103 words, ~348 tokens.

Download SKILL.mdSave it as .claude/skills/claude-code-handoff/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
claude-code-handoff
description
从 Claude Code 的 Session 解析 jsonl 对话记录,接续执行任务
argument-hint
Claude Code 的 session ID(如 UUID),或具体的 session.jsonl 文件路径 (必填)
license
Apache-2.0
author
github/cafe3310
depends_on_binary
python3

claude-code-handoff

解析本地 Claude Code 的 session jsonl 结构,诊断中断原因,自动恢复上下文或交接文档并指导接续任务。

适用场景

  1. 任务接力:开发工作由 Claude Code CLI 启动并开发至一半,现在需要由 Gemini (Antigravity 平台) 接管。
  2. 死锁/限制中断恢复:Claude Code 在运行过程中遇到了 API 频率超限 (429 Rate Limit) 或上下文超长窗口超限 (422 Context Window Exceeded) 等错误强制中止,需要无缝迁移至 Gemini 续作。
  3. 状态诊断:快速查看本地最新的 Claude Code session,查看最后执行的对话历史、调用的工具以及运行时的 git 分支和 cwd 信息。

工作原理

  1. 定位 Session 文件: 根据传入的 session ID(如 UUID)或 session 文件名,在 Claude 目录(包括官方的 ~/.claude/projects/)中自动搜索对应的 .jsonl 文件。同时也支持传入具体的本地文件路径。
  2. 提取历史与状态:
    • 提取 session 中最近几轮的对话历史;
    • 从 attachment 事件中提取最后生成的 HANDOFF.md ;
    • 分析最近的 system 和 assistant 事件是否有报错。
  3. 输出 Handoff 并落盘:
    • 自动在项目根目录生成/更新 HANDOFF.md。如果 session 包含已加载的 HANDOFF.md 附件,则以它为准;否则根据最近的上下文合成一份草拟版本。
    • 生成一段指令用于用户直接复制粘贴给接续的 Agent 引导后续工作。

使用步骤

  1. 用户在对话中调用此技能,传入特定的 session ID 或 jsonl 文件路径。
  2. Agent 执行解析脚本:
    bash
    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]
  3. 根据输出中的提示复制接力指令,并加载更新后的 HANDOFF.md 继续工作。

© cafe3310, Apache-2.0. 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 1 other file (scripts) in skills/claude-code-handoff of cafe3310/public-agent-skills.

  • SKILL.md
  • scripts/claude_handoff_parser.py

Open the folder on GitHubat commit 6c45501

Compare with similar skills

Claude Code 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.

Claude Code Handoff compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Claude Code Handoff this skillcafe3310/public-agent-skills255—~348Automated safety check: PassApache-2.0
MCP Server Builderanthropics/skills180k64 repos~2.3kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k11 repos~4.1kAutomated safety check: NotesApache-2.0
Using Superpowersfarm-fe/farm5.6k35 repos~1.4kAutomated safety check: PassMIT
Executing Plans Inlineobra/superpowers296k2 repos~5.1kAutomated safety check: PassMIT
Claude Code Agent Developmentanthropics/claude-plugins-official38k8 repos~2.8kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 11 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Using Superpowers

    farm-fe/farm

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    5.6k GitHub starsUsed in 35 repos~1.4k tokens
    Agent WorkflowsAuto-check passed
  • Executing Plans Inline

    obra/superpowers

    Has the agent carry out an implementation plan itself, task by task in the current session, keeping a ledger, proving each step with a test and ending with one whole-branch review.

    296k GitHub starsUsed in 2 repos~5.1k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 8 repos~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    795 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed

More from cafe3310/public-agent-skills

All 29 skills in this repo
  • Impeccable

    cafe3310/public-agent-skills

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    255 GitHub stars~4.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Text Watermark Fountain

    cafe3310/public-agent-skills

    A specialized skill for embedding and extracting resilient watermarks in text by manipulating sentence lengths and using Fountain Codes.

    255 GitHub stars~921 tokensUpdated 3 mo ago
    Auto-check passed
  • Obsidian Todo Collector

    cafe3310/public-agent-skills

    从 Obsidian 知识库中扫描指定时间范围内未完成事件,生成/更新未完成事件整理文档. An agent skill from cafe3310/public-agent-skills.

    255 GitHub stars~575 tokensUpdated 3 mo ago
    Auto-check passed
  • Deep Research

    cafe3310/public-agent-skills

    一个全面、自主的深度研究框架。当用户请求对复杂主题、市场调研、技术格局进行深入的多维度调查,或需要大量网页浏览、数据合成和结构化报告的任何任务时,使用此技能。它协调子代理(subagents)并使用基于文件系统的状态管理来防止上下文膨胀。

    255 GitHub stars~996 tokensUpdated 3 mo ago
    Auto-check passed
  • Long Audio To Obsidian

    cafe3310/public-agent-skills

    将语音转写项目输出的复杂文件结构整理合并为适合 Obsidian 归档的 Markdown 文档. An agent skill from cafe3310/public-agent-skills.

    255 GitHub stars~772 tokensUpdated 3 mo ago
    Auto-check passed
  • Markdown New

    cafe3310/public-agent-skills

    通过 markdown.new API 将网页、整站或搜索结果转换为干净的 Markdown. An agent skill from cafe3310/public-agent-skills.

    255 GitHub stars~344 tokensUpdated 3 mo ago
    Auto-check passed

Categories

Questions about Claude Code Handoff

What does Claude Code Handoff do?

从 Claude Code 的 Session 解析 jsonl 对话记录,接续执行任务. An agent skill from cafe3310/public-agent-skills. Claude Code Handoff is an agent skill from cafe3310/public-agent-skills.

When should I use Claude Code Handoff?

Claude Code Handoff fits situations like: agent Workflows work in your project.

How do I install Claude Code Handoff in Claude Code?

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

How do I install Claude Code Handoff in Codex?

Run `npx skills add cafe3310/public-agent-skills --skill claude-code-handoff -a codex`. Or copy the skill folder (skills/claude-code-handoff in cafe3310/public-agent-skills) into .agents/skills/claude-code-handoff in your project. Codex loads it when a task matches its description.

Can I use Claude Code 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 cafe3310/public-agent-skills --skill claude-code-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/claude-code-handoff, .gemini/skills/claude-code-handoff, .github/skills/claude-code-handoff and .opencode/skills/claude-code-handoff in your project.

What does Claude Code Handoff need to run?

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

Does Claude Code Handoff access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Claude Code 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 Claude Code Handoff use?

Claude Code Handoff is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Claude Code Handoff use?

About 348 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Claude Code Handoff?

Skills that share tags, products or a category with Claude Code Handoff: MCP Server Builder (anthropics/skills, 180k stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Using Superpowers (farm-fe/farm, 5.6k stars) and Executing Plans Inline (obra/superpowers, 296k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Claude Code Handoff?

cafe3310 (a GitHub user) maintains it in cafe3310/public-agent-skills, which has 255 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on June 26, 2026.

Source: cafe3310/public-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.