handoffs
npx skills add https://github.com/jellydn/my-ai-tools --skill handoffs
Agent 安装分布
Skill 文档
Session Handoff Plan
Creates a detailed handoff plan of the conversation for continuing the work in a new session.
The user specified purpose:
$ARGUMENTS
You are creating a summary specifically so that it can be continued by another agent. For this to work you MUST have a purpose. If no specified purpose was provided in the <purpose>...</purpose> tag you must STOP IMMEDIATELY and ask the user what the purpose is.
Do not continue before asking for the purpose as you will otherwise not understand the instructions and do not assume a purpose!
Goal
Create a detailed summary of the conversation so far, paying close attention to the user’s explicit purpose for the next steps. This handoff plan should be thorough in capturing technical details, code patterns, and architectural decisions that will be essential for continuing development work without losing context.
Process
Before providing your final plan, wrap your analysis in tags to organize your thoughts and ensure you’ve covered all necessary points:
- Chronologically analyze each message and section of the conversation. For each section thoroughly identify:
- The user’s explicit requests and intents
- Your approach to addressing the user’s requests
- Key decisions, technical concepts and code patterns
- Specific details like file names, full code snippets, function signatures, file edits, etc
- Double-check for technical accuracy and completeness, addressing each required element thoroughly.
Your plan should include the following sections:
- Primary Request and Intent: Capture all of the user’s explicit requests and intents in detail
- Key Technical Concepts: List all important technical concepts, technologies, and frameworks discussed.
- Files and Code Sections: Enumerate specific files and code sections examined, modified, or created. Pay special attention to the most recent messages and include full code snippets where applicable and include a summary of why this file read or edit is important.
- Problem Solving: Document problems solved and any ongoing troubleshooting efforts.
- Pending Tasks: Outline any pending tasks that you have explicitly been asked to work on.
- Current Work: Describe in detail precisely what was being worked on immediately before this handoff request, paying special attention to the most recent messages from both user and assistant. Include file names and code snippets where applicable.
- Next Step: List the next step that you will take that is related to the most recent work you were doing. IMPORTANT: ensure that this step is DIRECTLY in line with the user’s explicit requests, and the task you were working on immediately before this handoff request. If your last task was concluded, then only list next steps if they are explicitly in line with the users request. Do not start on tangential requests without confirming with the user first. Include this section only if there is an actionable next step.
Additionally create a “slug” for this handoff. The “slug” is how we will refer to it later in a few places. Examples:
- current-user-api-handler
- implement-auth
- fix-issue-42
Together with the slug create a “Readable Summary”. Examples:
- Implement Current User API Handler
- Implement Authentication
- Fix Issue #42
Output Structure
First, show your analysis to the user in <analysis> tags as part of your response.
Then write the handoff file with this structure:
# Session Handoff Plan
## 1. Primary Request and Intent
[Detailed description of all user requests and intents]
## 2. Key Technical Concepts
- [Concept 1]
- [Concept 2]
- [...]
## 3. Files and Code Sections
### [File Name 1]
- **Why important**: [Summary of why this file is important]
- **Changes made**: [Summary of the changes made to this file, if any]
- **Code snippet**:
\`\`\`language
[Important Code Snippet]
\`\`\`
### [File Name 2]
- **Code snippet**:
\`\`\`language
[Important Code Snippet]
\`\`\`
[...]
## 4. Problem Solving
[Description of solved problems and ongoing troubleshooting]
## 5. Pending Tasks
- [Task 1 that you have been explicitly asked to work on]
- [Task 2 that you have been explicitly asked to work on]
- [...]
## 6. Current Work
[Detailed description of what was being worked on immediately before this handoff, including file names and code snippets]
## 7. Next Step
[Next step to take, directly aligned with user's explicit handoff purpose. Only include if there is an actionable next step.]
Final Step
After providing your analysis and summary:
- Ensure the
.claude/handoffs/directory exists (create it if needed) - Write the handoff summary to a markdown file at
.claude/handoffs/[timestamp]-[slug].mdwhere [timestamp] is the current date in format YYYY-MM-DD and the slug is what we defined before - Tell the user about this file and that they can use
/pickup $1to continue where $1 is the filename