agentleFS
thieungthieung/agent-skills/skills/handoff/SKILL.md

handoff

Skill4 starsChanged 9 months agoMITView on GitHub

Preserve and restore cross-session work context via a compact repo-local `.handoff/handoff.md`. Use when the user says: hand off, wrap up, checkpoint, save progress, save where we are, continue later, continue from previous session, resume from handoff, pick up where we left off, what did we leave off, where we left off, read the prior handoff, read prior context, load handoff, load previous context, check the handoff file, last session, prepare the next session. Skill writes a handoff on end-of-session and reads it on start-of-session so a fresh agent can continue without re-discovery.

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use decision-mapping, setup-ts-deep-modules and 10 more.

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.
  • FabienDehopreSkill

    decision-mapping

    Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.

    Also in 8 projects that use this

  • liufeng1976Skill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 42 projects that use this

  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 93 projects that use this

  • GoogleSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 87 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 51 projects that use this

  • LesaniSkill

    writing-beats

    Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.

    Also in 54 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create or consume a compact handoff document so another agent, another session, or future-you can continue the work quickly.

    line 15
  2. Distinctive:

    Use this skill only when continuity is the goal.

    line 17
  3. Very specific:

    When reading or writing handoff state, use .handoff/handoff.md unless the user explicitly specifies another path.

    line 27
  4. Very specific:

    Default mode is ask: show the draft first, then write after approval.

    line 38
  5. Distinctive:

    When the user uses any of these or a close variant:

    line 46
  6. Very specific:

    Read .handoff/handoff.md if it exists.

    line 48
  7. Distinctive:

    If it does not exist, say no handoff file was found and start fresh unless the user provides another path.

    line 49
  8. Distinctive:

    Check alignment with the current user request.

    line 51
  9. Distinctive:

    Verify before trusting: run lightweight checks such as current branch, git status --short, and spot-check 1-2 Key Files.

    line 52
  10. Very specific:

    If aligned and current, continue from Next Steps.

    line 53
  11. Distinctive:

    If stale or branch/files do not match, say what is stale and do targeted rediscovery only for the mismatched areas.

    line 54
  12. Distinctive:

    When any of these apply:

    line 60
  13. Very specific:

    If the user supplied arguments, treat them as the next session's intended focus and tailor Next Steps around that.

    line 70
  14. Distinctive:

    Do not duplicate content already captured in plans, PRDs, ADRs, issues, commits, or reports.

    line 72
  15. Distinctive:

    Do not include full file contents, long code snippets, tool transcripts, or verbose logs.

    line 119

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

Handoff

Create or consume a compact handoff document so another agent, another session, or future-you can continue the work quickly.

Use this skill only when continuity is the goal. Do not use it for ordinary implementation, code review, or debugging unless the user asks to checkpoint or resume state.

Paths

Default handoff path:

.handoff/handoff.md

When reading or writing handoff state, use .handoff/handoff.md unless the user explicitly specifies another path.

Optional config:

handoff:
  mode: ask # ask | yolo
  include_git_diff: true
  max_key_files: 20

Default mode is ask: show the draft first, then write after approval. If config says yolo, write directly and report the path.

For reusable installs, keep the handoff file repo-local. Do not write to the skill directory itself.

Start Session

Trigger phrases (non-exhaustive): "resume", "continue", "continue from previous session", "pick up where we left off", "where we left off", "what did we leave off", "read the prior handoff", "check the handoff file", "load handoff", "load previous context", "what happened before", "last session".

When the user uses any of these or a close variant:

  1. Read .handoff/handoff.md if it exists.
  2. If it does not exist, say no handoff file was found and start fresh unless the user provides another path.
  3. Summarize the handoff in 3-6 bullets: branch, goal, in-progress state, blockers, next steps.
  4. Check alignment with the current user request. If the handoff is about a different task, ask whether to use it or start fresh.
  5. Verify before trusting: run lightweight checks such as current branch, git status --short, and spot-check 1-2 Key Files.
  6. If aligned and current, continue from Next Steps. Do not re-explore files already listed unless the handoff says they are uncertain or stale.
  7. If stale or branch/files do not match, say what is stale and do targeted rediscovery only for the mismatched areas.

End Session

Trigger phrases (non-exhaustive): "hand off", "wrap up", "checkpoint", "save progress", "save where we are", "I'll continue later", "prepare the next session", "context is heavy". Also auto-suggest when context pressure is high without an explicit user trigger.

When any of these apply:

  1. Gather facts (handoff is self-sufficient — collect directly):
    • Current branch and recent git state.
    • git status --short.
    • git diff --stat when useful.
    • Files read, created, edited, or important for the next session.
    • Decisions, blockers, gotchas, failed attempts worth preserving.
    • The user's original goal and any later scope changes.
    • Optional shortcut: if /ck:watzup (ClaudeKit paid skill) happens to have been run earlier in this conversation, reuse its summary as input for Done, In Progress, Next Steps, Decisions, Key Files, and Verification — distill, do not paste. Refresh missing/stale parts with targeted git checks. Do not require or invoke /ck:watzup if it was not already run.
  2. If the user supplied arguments, treat them as the next session's intended focus and tailor Next Steps around that.
  3. Draft a compact handoff using the template below.
  4. Do not duplicate content already captured in plans, PRDs, ADRs, issues, commits, or reports. Reference those artifacts by path or URL.
  5. In ask mode, show the draft and ask whether to save or adjust it. In yolo mode, write .handoff/handoff.md directly.

Template

# Handoff - [project or task name]

**Updated:** [real ISO 8601 timestamp]
**Branch:** [current branch]
**Focus:** [what the next session should continue]
**Context Pressure:** [low | medium | high]

## Goal
[One short paragraph. What outcome are we working toward?]

## In Progress
- [Current partial state, if any. Include exact file refs where useful.]

## Done
- [Completed work with file:line refs where useful.]

## Next Steps
1. [Most important next action, concrete enough to execute.]
2. [Second action.]
3. [Third action.]

## Blockers
- [External dependency, failing test, missing decision, or "None".]

## Decisions
- [Non-obvious choice and why.]

## Key Files
- `path/to/file` - why it matters; line ref if useful.

## Verification
- [Command/check run and result, or "Not run".]

## Open Questions
- [Unresolved question, or "None".]

Quality Bar

  • Target 30-80 lines, under roughly 1k tokens.
  • Favor file paths and line references over pasted code.
  • Do not include full file contents, long code snippets, tool transcripts, or verbose logs.
  • Include only dead ends that prevent repeated mistakes.
  • Next Steps must be executable without reading the old chat.
  • A fresh agent should be able to start productive work within 2-3 tool calls after reading the handoff.

Optional SessionStart Hook

For automatic context injection in Claude Code, add a SessionStart hook that prints the handoff if present.

macOS / Linux (bash):

{
  "hooks": {
    "SessionStart": [
      {
        "type": "command",
        "command": "if [ -f .handoff/handoff.md ]; then echo '--- PRIOR HANDOFF ---'; cat .handoff/handoff.md; echo '--- END PRIOR HANDOFF ---'; else echo 'No prior handoff.'; fi"
      }
    ]
  }
}

Windows (PowerShell):

{
  "hooks": {
    "SessionStart": [
      {
        "type": "command",
        "command": "powershell -NoProfile -Command \"if (Test-Path .handoff/handoff.md) { Write-Host '--- PRIOR HANDOFF ---'; Get-Content .handoff/handoff.md; Write-Host '--- END PRIOR HANDOFF ---' } else { Write-Host 'No prior handoff.' }\""
      }
    ]
  }
}

For project-local hooks, add this to the project settings file. For global hooks, only use it if you are comfortable exposing the current repo's handoff at every new session start.

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.