AgentSkillsCN

Skill Pickup

技能评审

SKILL.md

Session Pickup Skill

This skill intelligently resumes work from previous session handoffs.

Usage

Invoke with /pickup followed by optional arguments:

  • /pickup - Find and load most recent handoff
  • /pickup --list - Show available handoffs
  • /pickup <filename> - Load specific handoff
  • /pickup --task "<search>" - Find handoff by task description

Workflow

1. Find Handoffs

Search for handoff documents:

bash
# Check standard locations
ls -la .handoff/*.md 2>/dev/null
ls -la handoff*.md 2>/dev/null

2. Rank and Display Options

When multiple handoffs exist, rank by:

  1. Most recent timestamp
  2. Matching current branch
  3. Incomplete tasks (in-progress status)

Display format:

code
Available Handoffs:
1. [2024-01-15 14:30] feature/auth - "Add user authentication" (in-progress)
2. [2024-01-14 16:45] main - "Fix payment bug" (completed)
3. [2024-01-13 10:00] feature/api - "API refactoring" (blocked)

Select handoff (1-3) or press Enter for most recent:

3. Load Context

After selection:

  1. Read the handoff document
  2. Display summary to user
  3. Verify current state matches

4. Present Resumption Plan

Output Format

markdown
## Session Resumed

**From**: [handoff filename]
**Original Date**: [when handoff was created]
**Task**: [task description]

### Previous Session Summary
[Summary from handoff]

### Current State Check
- Branch: [current] (expected: [from handoff])
- Modified files: [list any unexpected changes]
- Git status: [clean/dirty]

### Recommended Actions
1. [First action based on "Next Steps" from handoff]
2. [Second action]

### Context Loaded
I've reviewed the handoff and understand:
- [Key point 1]
- [Key point 2]
- [Key point 3]

Ready to continue. What would you like to focus on?

State Verification

Before resuming, verify:

  • On expected branch (warn if different)
  • No unexpected file changes
  • Dependencies still installed
  • No new blockers apparent

Smart Matching

When searching for handoffs:

  • Match partial task descriptions
  • Consider branch names
  • Look for related file paths
  • Check for dependent tasks

Error Handling

SituationResponse
No handoffs foundSuggest creating one with /handoff
Handoff outdatedWarn about significant time gap
State mismatchDetail differences, ask how to proceed
Corrupted fileSkip and try next available

Integration

Works well with:

  • /handoff - Create handoffs to pick up later
  • /review - Review changes since handoff