AgentSkillsCN

handoff

为新线程生成交接上下文并复制到剪贴板

SKILL.md
--- frontmatter
name: handoff
description: Generate handoff context for a new thread and copy to clipboard
argument-hint: [goal for new thread]
allowed-tools: Read, Edit, Bash

Handoff to New Thread

Analyze our entire conversation and prepare a handoff for a new Claude Code session.

Goal for new thread: $ARGUMENTS

Instructions

  1. Create the handoff context by analyzing what we've discussed
  2. Create directory if needed: mkdir -p ~/.claude/handoff
  3. Write to file at ~/.claude/handoff/HANDOFF.md
  4. Copy to clipboard using cat ~/.claude/handoff/HANDOFF.md | pbcopy
  5. Cleanup: rm ~/.claude/handoff/HANDOFF.md

Handoff Document Structure

Write the following to ~/.claude/handoff/HANDOFF.md:

markdown
# Handoff Context

Generated: [ISO 8601 timestamp]

## Goal

$ARGUMENTS

## What We Were Working On

[Brief description of the main task/feature]

## Current State

- **Completed**: [What's done and working]
- **In Progress**: [What's partially implemented]
- **Blocked/Issues**: [Known problems or blockers]

## Key Files

[List file paths that are relevant, formatted for easy @-mentioning]

- `path/to/file1.ts`
- `path/to/file2.ts`

## Important Decisions

[Key technical or architectural decisions made and why]

## Context & Notes

[Any other important context the new thread needs]

## Next Steps

[Prioritized list of immediate actions aligned with the goal above]

Output

After writing the file, copying to clipboard, and cleaning up, output ONLY:

code
Handoff copied to clipboard

Next steps:
1. Run /clear to reset this conversation
2. Paste (Cmd+V) in your new Claude Code session to continue