agentleFS
shawnla90shawnla90/recursive-drift/skills/context-handoff/SKILL.md

context-handoff

Skill17 starsChanged 9 months agoMITView on GitHub

Generate a context handoff document at the end of a session so the next session can pick up where this one left off. Auto-invoked when ending significant work, or manually via /handoff.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    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:

    Before switching between machines

    line 13
  2. Distinctive:

    When context window is getting large and a fresh session is needed

    line 14
  3. Distinctive:

    Write the handoff using this exact structure:

    line 25
  4. Distinctive:

    Always run git status and git log -1 --oneline: before writing the handoff to capture accurate state.

    line 55

“Common” is measured: kept by at least 6 in 10 of the 6 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

Context Handoff

Generate a structured handoff document that preserves session context for the next Claude Code agent.

When to Invoke

  • End of any session that made meaningful changes
  • Before switching between machines
  • When context window is getting large and a fresh session is needed
  • User says /handoff, "wrap up", "hand off", or "create a handoff"

Output Location

Write to: .claude/context-handoff.md

This file is checked by every new session via the MEMORY.md auto-load instruction.

Handoff Template

Write the handoff using this exact structure:

# Context Handoff
> Generated: YYYY-MM-DD HH:MM | Machine: [identifier] | Session: [brief label]

## What Was Done This Session
[Bullet list of completed work. File paths, not summaries.]

## Current State
- **Git**: [branch, clean/dirty, last commit hash + message]
- **Uncommitted changes**: [list or "none"]
- **Blocked on**: [anything that couldn't be completed and why]

## Next Steps
[Ordered list of what the next session should pick up. Include file paths and specific instructions.]

## Key Decisions Made
[Any architectural or approach decisions the next agent needs to know about to avoid re-litigating.]

## Files to Read First
[Top 3-5 files the next session should read to get oriented, in priority order.]

Rules

  1. Be specific -- file paths, commit hashes, line numbers. Vague handoffs are useless.
  2. Don't summarize the whole repo -- only include what changed THIS session.
  3. Include blockers -- if something failed or was skipped, say why.
  4. Keep it under 100 lines -- this is a handoff, not a novel.
  5. Always run git status and git log -1 --oneline before writing the handoff to capture accurate state.

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.