handoff-update

GitHub

用于更新会话交接文档,按规则合并进度。自动解析文件路径,严格遵循各章节的追加、替换或合并策略,确保历史记录完整并同步最新状态与下一步计划。

examples/skills/handoff-update/SKILL.md FlorianBruniaux/claude-code-ultimate-guide

触发场景

用户请求更新交接文档 会话恢复后同步进度

安装

npx skills add FlorianBruniaux/claude-code-ultimate-guide --skill handoff-update -g -y
更多选项

非标准路径

npx skills add https://github.com/FlorianBruniaux/claude-code-ultimate-guide/tree/main/examples/skills/handoff-update -g -y

不安装直接使用

npx skills use FlorianBruniaux/claude-code-ultimate-guide@handoff-update

指定 Agent (Claude Code)

npx skills add FlorianBruniaux/claude-code-ultimate-guide --skill handoff-update -a claude-code -g -y

安装 repo 全部 skill

npx skills add FlorianBruniaux/claude-code-ultimate-guide --all -g -y

预览 repo 内 skill

npx skills add FlorianBruniaux/claude-code-ultimate-guide --list

SKILL.md

Frontmatter
{
    "name": "handoff-update",
    "effort": "low",
    "description": "Update an existing handoff document with current session progress. Applies section-specific merge rules: append-only for Work Done (never deletes history), replace for Status and Next Steps, merge for Files and Discoveries. Falls back to creating a new handoff if no source file is found.",
    "argument-hint": "[handoff-file-path]",
    "disable-model-invocation": true
}

Update an existing handoff document with this session's progress.

Step 1: Resolve the handoff file

Determine which file to update, in this priority order:

  1. If $ARGUMENTS[0] was provided, use it as the file path.
  2. If this session was started via /handoff:resume, look in conversation history for the argument that was passed to it.
  3. If neither is found, fall back to creating a new file: claudedocs/handoffs/handoff_YYYYMMDD_HHMMSS.md. Inform the user that no existing handoff was found.

Step 2: Read the existing file

Read the resolved file completely. Parse all sections as the baseline for the merge.

Step 3: Apply section merge rules

Rewrite the file with updated content using these merge rules:

Section Rule Notes
Task Keep original Update only if scope fundamentally changed
Scope Keep or refine Preserve exclusions, acceptance, authorization, and ownership; record a new contract revision for material changes
Files Merge Add new files touched in this session. Keep originals. Use paths and symbols; include lines only when verified at the recorded revision
Discoveries Append Add new findings below existing list. Never remove prior discoveries
Work Done Append only Add new completed items below existing list. Never remove entries. Include commit hashes
Status Replace Record the observed revision and time, checks and their scope, blockers, and next owner; distinguish task, run, and acceptance state
Next Steps Replace Write the updated actionable checklist
Code Update Replace with the most relevant snippets from the current state

The append-only rule for Work Done is strict. Even if a previous entry describes work that was later revised, keep it. The history records prior claims; live evidence determines what is currently true. Append a correction with its evidence instead of removing the old entry.

Step 4: Confirm

After saving, confirm:

  • File path updated
  • How many new Work Done items were added
  • The updated Status (one line)
  • How many Next Steps remain

This command implements the Handoff Triad pattern documented in this guide's Session Handoff Pattern section. Template inspired by Packmind's handoff commands (Apache 2.0).

版本历史

  • f02545e 当前 2026-10-19 12:36

    优化了Files部分的引用格式为路径和符号形式;细化了Status和Next Steps的更新要求,强调记录版本时间和检查范围;增强了Code部分的状态更新描述。

  • dfb8bc6 2026-09-28 04:49

    修复公共引用和着陆搜索路径问题

  • fa57065 2026-07-25 10:18

同 Skill 集合

.agents/skills/guide-recap/SKILL.md
.agents/skills/self-assessment/SKILL.md
.agents/skills/source-command-audit-prose/SKILL.md
.agents/skills/source-command-audit-whitepapers/SKILL.md
.agents/skills/source-command-ccguide-daily/SKILL.md
.agents/skills/source-command-ccguide-diff-docs/SKILL.md
.agents/skills/source-command-ccguide-init-docs/SKILL.md
.agents/skills/source-command-ccguide-refresh-docs/SKILL.md
.agents/skills/source-command-methodology-advisor/SKILL.md
.agents/skills/source-command-track-mentions/SKILL.md
.agents/skills/source-command-update-infos-release/SKILL.md
.agents/skills/update-threat-db/SKILL.md
.claude/skills/self-assessment/SKILL.md
.claude/skills/source-command-update-infos-release/SKILL.md
.claude/skills/update-threat-db/SKILL.md
examples/learning-project/.claude/skills/verify-release/SKILL.md
examples/skills/audit-agents-skills/SKILL.md
examples/skills/audit-codebase/SKILL.md
examples/skills/autoresearch/SKILL.md
examples/skills/best-of-n/SKILL.md
examples/skills/canary/SKILL.md
examples/skills/catchup/SKILL.md
examples/skills/ccboard/SKILL.md
examples/skills/check-cache-bugs/SKILL.md
examples/skills/ci-all/SKILL.md
examples/skills/ci-pipeline/SKILL.md
examples/skills/ci-status/SKILL.md
examples/skills/ci-tests/SKILL.md
examples/skills/commit/SKILL.md
examples/skills/cyber-defense-team/SKILL.md
examples/skills/design-patterns/SKILL.md
examples/skills/diagnose/SKILL.md
examples/skills/eval-agents/SKILL.md
examples/skills/eval-rules/SKILL.md
examples/skills/eval-skills/SKILL.md
examples/skills/explain/SKILL.md
examples/skills/git-ai-archaeology/SKILL.md
examples/skills/git-worktree-clean/SKILL.md
examples/skills/git-worktree-remove/SKILL.md
examples/skills/git-worktree-status/SKILL.md
examples/skills/git-worktree/SKILL.md
examples/skills/guide-recap/SKILL.md
examples/skills/handoff-create/SKILL.md
examples/skills/handoff-resume/SKILL.md
examples/skills/investigate/SKILL.md
examples/skills/issue-triage/SKILL.md
examples/skills/land-and-deploy/SKILL.md
examples/skills/landing-page-generator/SKILL.md
examples/skills/learn-alternatives/SKILL.md

元信息

文件数
0
版本
dc6808c
Hash
eb7f8f3d
收录时间
2026-07-25 10:18

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 16:55
浙ICP备14020137号-1