AGENT SKILL

handoff-and-archive

Run /handoff, then archive this Claude Code desktop session. Shortcut for /handoff --archive. Triggers: "handoff and archive", "wrap up and close this session".

License 许可
MIT
最近更新
2026-11-12
Stars
★ 94
Forks
18

01 前言 Front Matter

name
handoff-and-archive
description
Run /handoff, then archive this Claude Code desktop session. Shortcut for /handoff --archive. Triggers: "handoff and archive", "wrap up and close this session".
allowed-tools
Skill, Read
argument-hint
[handoff message]

02 资源文件 1

03 SKILL.md 正文

/handoff-and-archive — handoff, then close this session

Input: $ARGUMENTS

This is a shortcut. It runs /handoff with --archive added, so the session is archived after the handoff is saved and reported.

Process

  1. Invoke the handoff skill with the Skill tool. Pass --archive followed by the input above (if any) as its arguments. If the input already contains --no-archive, drop that flag. Running this command means the user wants the session archived.
  2. Follow the handoff skill exactly, including its Step 7. Step 7 decides with core/scripts/handoff-archive-decision.sh and archives the session through archive_session only when that script prints archive: yes.
  3. If the Skill tool is not available (for example in Codex), read .claude/skills/handoff/SKILL.md and follow it with --archive as the handoff arguments.

Rules

  • Never archive before the handoff has finished. The handoff skill's Step 7 is the only place the session is archived.
  • The handoff skill's refusals still apply: the session stays open when a follow-up recovery command is pending, when the handoff files are missing, when its worktree has uncommitted changes, when its branch has an open PR, when it has background work running, when it has an ask waiting on the owner, when one of those checks cannot run, or outside the desktop app. Say so in one plain sentence.
  • Do not repeat the handoff report. The handoff skill writes it.

04 同仓库更多 Skills