agentleFS
stephen-tataristephen-tatari/claude-skills/resume-handoff/SKILL.md

resume-handoff

Skill0 starsChanged 10 months agoMITView on GitHub

Resume work from previous handoff documents in new sessions. Three-phase process - analyze handoff, present findings, then implement. Use when starting a session that continues previous work.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use handoff.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search current location first, then fall back to main repo for older handoffs:

    line 31
  2. Distinctive:

    If no path is provided, prompt the user:

    line 65
  3. Distinctive:

    Ask for the path to the handoff file

    line 67
  4. Distinctive:

    Prefer worktree handoffs over main repo when paths conflict

    line 70
  5. Distinctive:

    Read the complete handoff document: - Do NOT delegate to sub-agent

    line 76
  6. Distinctive:

    Verify current state: - Check that codebase matches documentation:

    line 83
  7. Distinctive:

    Always verify: - Don't assume handoff state matches current reality

    line 139
  8. Distinctive:

    Read directly: - Do NOT delegate critical file reading to sub-agents

    line 142
  9. Distinctive:

    Maintain continuity: - Use task list to track progress against handoff goals

    line 143

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Resume Work from Handoff Document

Adapted from humanlayer handoff pattern

Resume work based on a handoff document containing prior context and learnings.

Input

The handoff file path is provided as: $ARGUMENTS

Path Detection

Search current location first, then fall back to main repo for older handoffs:

# Initialize search locations
HANDOFF_DIRS=()

# 1. Check current repo location first (works in both worktree and main repo)
if [[ -d "ai_docs/handoffs" ]]; then
  HANDOFF_DIRS+=("ai_docs/handoffs")
fi

# 2. If in worktree, also check main repo for older handoffs
if [[ -f .git ]]; then
  MAIN_REPO=$(git rev-parse --git-common-dir | sed 's|/.git$||')
  if [[ -d "$MAIN_REPO/ai_docs/handoffs" ]]; then
    HANDOFF_DIRS+=("$MAIN_REPO/ai_docs/handoffs")
    echo "Also searching main repo at: $MAIN_REPO/ai_docs/handoffs"
  fi
fi

# 3. If in main repo, also check worktrees for handoffs created there
if [[ -d .git ]]; then
  # This is main repo (not worktree), check for worktrees
  while IFS= read -r worktree_line; do
    # Parse worktree path (first field before space)
    worktree_path=$(echo "$worktree_line" | awk '{print $1}')
    if [[ -d "$worktree_path/ai_docs/handoffs" ]]; then
      HANDOFF_DIRS+=("$worktree_path/ai_docs/handoffs")
      echo "Also searching worktree at: $worktree_path/ai_docs/handoffs"
    fi
  done < <(git worktree list | tail -n +2)  # Skip main worktree (first line)
fi

If no path is provided, prompt the user:

  • Ask for the path to the handoff file
  • List available handoffs from ALL search locations using ls -t (most recent first)
  • Show which location each handoff is from (current, legacy, main repo, or worktree)
  • Prefer worktree handoffs over main repo when paths conflict

Three-Phase Process

Phase 1: Analysis

  1. Read the complete handoff document - Do NOT delegate to sub-agent
  2. Read all referenced artifacts - Any documents, plans, or specs mentioned
  3. Extract key information:
    • Task statuses (completed, in progress, planned)
    • Learnings and insights
    • Recent changes made
    • Next steps identified
  4. Verify current state - Check that codebase matches documentation:

    git status          # Current branch and changes
    git log -1          # Verify commit matches
    • Spot-check that documented changes exist

Phase 2: Presentation

Present a synthesized analysis to the user:

## Handoff Analysis

### Original Tasks

[List tasks from handoff with their documented statuses]

### Validated Learnings

[Key learnings verified against current codebase state]

### Verified Changes

[Recent changes confirmed to exist in the codebase]

### Artifact Review

[Summary of referenced documents/plans that were read]

### Recommended Actions

[Prioritized list of next steps based on handoff guidance]

### Potential Issues

[Any discrepancies between handoff state and current state, or blockers identified]

Wait for user confirmation before proceeding to Phase 3.

Phase 3: Implementation

After user confirmation:

  1. Create prioritized tasks using TaskCreate based on Action Items & Next Steps
  2. Begin work on the highest priority items
  3. Continuously reference the handoff document for:
    • Documented patterns and approaches
    • Known pitfalls to avoid
    • Architectural decisions to follow

Key Principles

  • Always verify - Don't assume handoff state matches current reality
  • Present before acting - Get user buy-in before starting work
  • Apply learnings - The handoff contains valuable context; use it
  • Read directly - Do NOT delegate critical file reading to sub-agents
  • Maintain continuity - Use task list to track progress against handoff goals

Common Scenarios

Clean Continuation

Handoff state matches current state exactly. Proceed with documented next steps.

Diverged Codebase

Changes have been made since handoff. Note differences, ask user how to reconcile.

Incomplete Work

Previous work was interrupted. Identify where to resume based on task statuses.

Stale Handoff

Handoff is outdated (significant time passed, major changes). Recommend fresh assessment rather than following old guidance.

Schema Compatibility

This skill handles both schema versions:

New schema (ai_docs/):

schema_version: 1
type: handoff
# ... full schema fields

Legacy schema (pre-ai_docs):

type: handoff
date: ...
topic: ...
# ... minimal fields

Both have type: handoff so detection works. The skill should not fail on missing fields - gracefully handle whatever is present.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.