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

handoff

Skill1 starsChanged 3 days agoMITView on GitHub

Write or pick up HANDOFF.md, the resume note that lets a new session, an agent in a different harness, or a coordinator continue a branch's work cold. Use when asked to "write a handoff", "hand off", "save state for a new session", "pick up where we left off", "resume this branch", or "what is each worktree doing", and when starting work in a worktree that contains HANDOFF.md.

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

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 5

    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. Very specific:

    Keep durable facts out of it.

    line 10
  2. Very specific:

    Read the existing HANDOFF.md, if there is one.

    line 14
  3. Distinctive:

    Run git ls-files --error-unmatch HANDOFF.md and git check-ignore -q HANDOFF.md.

    line 16
  4. Very specific:

    Read HANDOFF.md. Compare the commit in its header with git rev-parse --short HEAD.

    line 50
  5. Distinctive:

    Treat the note as authoritative.

    line 51
  6. Distinctive:

    Before you build on a Verified item, run its command once.

    line 52
  7. Distinctive:

    Start at Next. Say in one or two lines where you are resuming.

    line 53
  8. Very specific:

    If there is no HANDOFF.md, say so.

    line 55
  9. Very specific:

    Run <skill>/scripts/handoff-status inside any worktree of the repo.

    line 61
  10. Distinctive:

    Delete the note when the branch merges.

    line 67

“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

HANDOFF.md is a snapshot of one branch's work, written by an agent for the next agent. It sits in the root of the worktree, is ignored by git, and is overwritten in full on every write. It holds what git, the task and the PR do not: the intent, what is verified, the next action, and why files are uncommitted.

Keep durable facts out of it. A fact that will still be true next month (a convention, a tool quirk) goes in the repo's AGENTS.md, or in AGENTS.local.md if it is private.

Write

  1. Read the existing HANDOFF.md, if there is one. Carry forward every item that is still true, including items you cannot confirm from your own context. Drop only what you know is finished or wrong.
  2. Get the facts from commands, not memory: git rev-parse --abbrev-ref HEAD, git rev-parse --short HEAD, git status --porcelain.
  3. Run git ls-files --error-unmatch HANDOFF.md and git check-ignore -q HANDOFF.md. If the first exits 0, the file is tracked: write it anyway and say so; untracking it is the owner's decision. If both fail, add HANDOFF.md to .gitignore and say that you did.
  4. Write the file from the template. Put an item under Verified only if you ran its command in this session and it passed. This includes items carried forward: run the command again, or move the item to Unverified. Start Next with one exact command or file path.
  5. Reply with the path and the first next action.
# HANDOFF
_<YYYY-MM-DD> · <harness> · <branch> @ <short-sha> · <n> uncommitted_

## Goal
<What this branch is for, in one or two lines. Link the task or PR.>

## State
- Verified: <what works> (`<command that proved it>`)
- Unverified: <done, not yet proven>
- In progress: <started, not finished>

## Next
1. <First action: an exact command or file path.>
2. <The rest, in order.>

## Decisions
- <What was decided and why. What was deliberately left undone.>

## Uncommitted
- <file>: <why it is not committed>

## Gotchas
- <Only what git and the code do not show.>

Omit a section that has nothing in it.

Pick up

  1. Read HANDOFF.md. Compare the commit in its header with git rev-parse --short HEAD. If they differ, run git log --oneline <note-sha>..HEAD and git status --porcelain, and state what changed after the note was written.
  2. Treat the note as authoritative. Do not repeat work it lists as done, and do not reopen its decisions.
  3. Before you build on a Verified item, run its command once. If the command fails, say so and make that the first task.
  4. Start at Next. Say in one or two lines where you are resuming.

If there is no HANDOFF.md, say so. Reconstruct the state from git log, the task and the PR, and do not invent the rest.

Coordinator

<skill> in a command is this skill's folder, the one that holds this file. Run those scripts by that path, with the target repo as the working directory.

Run <skill>/scripts/handoff-status inside any worktree of the repo. It prints one block per worktree: branch, commit, the note's header, whether the branch moved after the note, and the first Next line.

A coordinator keeps its own note in the main checkout: which builders are running, what each one waits on, and the merge order.

End of a branch

Delete the note when the branch merges. Before you remove a worktree whose work is unfinished, copy Next and Decisions to the task or the PR.

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.