handoff-update

GitHub

用于更新现有交接文档,根据会话进度按特定规则合并内容(如追加工作完成记录、替换状态),若未找到源文件则创建新文档,确保历史记录完整可追溯。

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

Trigger Scenarios

需要更新当前会话的交接进度 通过 /handoff:resume 恢复会话后更新文档

Install

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

Non-standard path

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

Use without installing

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 Narrow it if new understanding emerged
Files Merge Add new files touched in this session. Keep originals. Use path:line format
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 Write the current state: what is done now, what remains, test status
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 is the record. Add a new entry describing the revision instead of removing the old one.

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).

Version History

  • fa57065 Current 2026-07-25 10:18

Same Skill Collection

.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
.claude/skills/self-assessment/SKILL.md
examples/skills/audit-agents-skills/SKILL.md
examples/skills/audit-codebase/SKILL.md
examples/skills/autoresearch/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-hooks/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
examples/skills/learn-quiz/SKILL.md
examples/skills/learn-teach/SKILL.md
examples/skills/mcp-integration-reference/SKILL.md
examples/skills/methodology-advisor/SKILL.md

Metadata

Files
0
Version
5ea7054
Hash
6bd4d8c7
Indexed
2026-07-25 10:18

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-01 17:40
浙ICP备14020137号-1 $bản đồ khách truy cập$