agentleFS
zji996zji996/AIA-skills/skills/agent-handoff/SKILL.md

agent-handoff

Skill2 starsChanged 2 months agoMITView on GitHub

会话上下文快满、要换 Agent 或换设备、任务需要暂停或交给他人时使用;脚本自动采集 Git 与委派任务状态,生成交接账本,接手者无需翻聊天记录即可继续。Use for handoff, resume, context checkpoint, pausing work.

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use retro and tdd.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 3 projects that use this

  • GoogleSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 4 projects that use this

The file

Files
SKILL.md

Agent Handoff (任务交接)

接手者(人或其他 Agent)只看这份账本就应该知道:现场是什么状态、哪些已经验证过、下一步做什么、什么不能碰。

流程

  1. 运行快照脚本,拿到已填好事实的草稿:

    <本技能目录>/scripts/handoff-snapshot.sh [--repo <dir>] [--commits <n>]

    它会填入分支、HEAD、未提交文件、最近提交、要先读的项目文件(AGENTS.md、docs/current.md、.local/plan/*.md),以及 .local/run/delegate/ 和旧 .local/run/pi/ 里还在运行或结果未读取的任务,并提示尚未合并的写入型 worktree。

  2. 补全尖括号占位的部分:目标名称、已完成结果、验证状态、卡点、下一步、关键约束。这些需要判断,脚本给不了。
  3. 按场景输出:直接回复给用户,或写入 .local/plan/handoff.md。

写好账本的要点

  • 验证状态只写实际跑过的:接手者会据此决定跳过哪些检查,把"计划跑"写成"已通过"会直接导致回归。没跑的写明原因。
  • 未提交文件要说明去留:否则接手者可能当成垃圾清掉,或者误提交。
  • 下一步要能立刻执行:写"运行 X 并修复 Y 处失败",不要写"继续优化"。
  • 关键约束只挑两三条:挑最容易被新会话无意破坏的,比如"不要改动公共 API 签名"。
  • 如果 docs/current.md 已经完整承载了这些状态,账本只需指向它,并补充它没覆盖的现场信息。

草稿结构可以按任务调整,但上面几类信息不要缺。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.