AGENT SKILL

handoff

Use when the user asks to create a handoff, session summary, context compact, continuation note, 交接文档, 压缩上下文, or instructions for the next agent to resume work later.

License 许可
MIT
最近更新
2026-11-03
Stars
★ 1
Forks
0

01 前言 Front Matter

name
handoff
description
Use when the user asks to create a handoff, session summary, context compact, continuation note, 交接文档, 压缩上下文, or instructions for the next agent to resume work later.
argument-hint
Focus for the next session

03 SKILL.md 正文

Handoff

Overview

Write a handoff document summarizing the current conversation so a fresh agent can continue the work. Save it to the user's OS temporary directory, not the current workspace.

When to Use

  • User asks for a handoff, session summary, context compact, continuation note, or next-agent instructions
  • User says "生成交接文档", "交接文档", "压缩上下文", "给下个 agent", "下一轮继续", or "接着做"
  • User passes arguments describing what the next session should focus on

Output Location

Save the document outside the workspace using the OS temp directory:

  • macOS/Linux: use $TMPDIR when set, otherwise /tmp
  • Windows: use %TEMP%

Use a clear filename like handoff-YYYYMMDD-HHMM.md, then report the saved path to the user.

Required Sections

  • Objective and requested next-session focus
  • Current status and completed work
  • Pending work and next recommended steps
  • Files touched or artifacts to inspect
  • Commands, tests, or checks already run
  • Known failures, risks, and constraints
  • User preferences and project rules that matter
  • Suggested skills with reasons

Constraints

Do not duplicate content already captured in other artifacts such as PRDs, plans, ADRs, issues, commits, or diffs. Reference them by path or URL and summarize only the current status needed to continue.

Redact sensitive information, including API keys, passwords, tokens, credentials, private keys, secrets, and personally identifiable information.

If the user passed arguments, treat them as the next-session focus and tailor the document accordingly.

Final Response

After successfully saving the handoff, reply with exactly:

  1. One brief confirmation in the user's language.
  2. A fenced text code block containing only the absolute saved path.

Example:

/tmp/handoff-20260715-1713.md

The code block is the copyable file information. Keep labels, bullets, and other metadata outside it.

Common Mistakes

  • Do not save the handoff inside the current repository.
  • Do not include secrets or raw private data.
  • Do not omit the final saved path.

04 同仓库更多 Skills

HeathWang
HeathWang/hw-cc-plugin

reconstructing-ui-from-screenshots

Use when implementing or correcting an app or web UI from a design image, screenshot, mockup, or reference PNG where accurate size, spacing, color, typography, assets, and alignment matter.

设计师
★ 1
HeathWang
HeathWang/hw-cc-plugin

question-answer

Use when the user wants a read-only explanation of existing code behavior, architecture, control flow, data flow, dependencies, or implementation decisions and has not requested project changes.

★ 1
HeathWang
HeathWang/hw-cc-plugin

java-to-swift

Use when converting Java 1.8 classes to Swift 5.0+ Codable structs - handling type mapping, nullability, inheritance flattening, BaseReq exclusions, and property naming conventions.

★ 1
HeathWang
HeathWang/hw-cc-plugin

java-to-nextjs

Use when converting Java 1.8 classes to Next.js TypeScript interface definitions - handling type mapping, nullability, inheritance, naming conventions, and BaseReq/BaseResponse exclusions.

★ 1
HeathWang
HeathWang/hw-cc-plugin

ios-i18n-workflow

Use when iOS apps using SwiftGen L10n need localization work - adding keys, checking missing translations, or cleaning unused entries. Triggered by hardcoded strings, missing L10n references, incomplete translations across multiple languages, or unused localization cleanup requests.

Skill与智能体开发
★ 1
HeathWang
HeathWang/hw-cc-plugin

improve-codebase-architecture

Use when the user wants architectural deepening opportunities for a codebase or named files, shown as a visual HTML report, and when they then pick candidates from that report to implement in the code already reviewed.

前端开发
★ 1