agentleFS
marcodallasantamarcodallasanta/claude-skills/skills/handover/SKILL.md

handover

Skill0 starsChanged 2 months agoMITView on GitHub

Write a handover prompt that lets a fresh Claude session pick up the current work exactly where this one stops, and copy it to the clipboard. Use whenever the user says "handover", "hand over", "handoff", "write the prompt for the next session/agent", "I'm going to start a new session", or wants to stop and continue later instead of compacting context. Also use when a PR or plan step is finished and the user asks how to continue in a new session.

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident, harness-init 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.
  • JkudjoSkill

    incident

    Production incident response — structured triage, hypothesis tree, safe remediation, incident record

    Also in 4 projects that use this

  • steptianSkill

    harness-init

    初始化 .harness 开发框架,集成代码修改影响范围评估和测试覆盖建议功能。触发词:'初始化新项目'、'harness init'、'更新 harness'、'分析影响范围'、'评估修改影响'

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 5 projects that use this

  • nicolasestremSkill

    brainstorm

    Structured idea generation and solution exploration with systematic analysis.

    Also in 4 projects that use this

  • GoogleSkill

    to-tickets

    Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker — edges as text in one file per ticket locally, or native blocking links on a real tracker.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    design

    Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 44 edited versions we read keep these.

  • 5

    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:

    When a session gets long, or a unit of work is done, they ask for a handover prompt, paste it into a fresh session, and expect that session …

    line 9
  2. Distinctive:

    Before writing the prompt, check whether the session produced anything that outlives this task: a convention learned the hard way, a user …

    line 20
  3. Distinctive:

    Do not write from recall alone.

    line 31
  4. Distinctive:

    If the project has its own handover template (a "Handover" section in a plan file or CLAUDE.md), use its fields exactly and add the fields …

    line 60
  5. Distinctive:

    If none exists, the copy fails.

    line 147

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

Handover

This skill is for users who prefer a fresh session over context compaction. When a session gets long, or a unit of work is done, they ask for a handover prompt, paste it into a fresh session, and expect that session to continue without re-deriving anything.

The next agent is capable and has a large context: it can read the repo, the plan, git, the PR and its auto-memory on its own, cheaply. So the prompt is not a summary of everything. It carries only what the next agent cannot recover from those sources — session state, reasons, dead ends, and limits on what it may do — and points to files for the rest.

1. Move durable lessons to memory first

Before writing the prompt, check whether the session produced anything that outlives this task: a convention learned the hard way, a user preference, a gotcha in the tooling. If auto-memory is available, save or update those memories now (following the memory instructions in the system prompt). Memory is loaded in every future session; the handover is read once.

The prompt then links those memories by file name instead of restating them, and stays about the state of this task.

2. Gather the facts

Do not write from recall alone; verify against the tree so the next agent is not handed a stale picture. Run what applies (skip what does not — e.g. no git repo, no remote):

git branch --show-current; git status --short
base=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's#^origin/##'); echo "${base:-main}"
git log --oneline "${base:-main}"..HEAD                                   # commits on the branch
git rev-parse HEAD; git rev-parse @{u} 2>/dev/null                        # pushed and up to date?
git remote -v                                                             # github → gh, gitlab → glab
gh pr view --json number,url,state 2>/dev/null   # or: glab mr view

Also list work that dies with this session: background shell jobs, running subagents, worktrees (git worktree list), scheduled wakeups or loops. Either clean them up or name them in the prompt.

Then answer, from the conversation, what the tools cannot tell:

  • which plan step this is (quote its title verbatim if a plan file exists)
  • what was done, what is left, in order, and what "done" means for this step
  • which checks ran, at which sha, and whether you ran them this session or only remember them
  • decisions taken, with the reason, and approaches tried or rejected, with why they failed
  • whether a published copy of the plan (issue, doc) was re-synced
  • unrelated bugs noticed, and whether an issue was filed
  • what the user has authorized, and what still needs their answer

If the project has its own handover template (a "Handover" section in a plan file or CLAUDE.md), use its fields exactly and add the fields below that it lacks. Otherwise use the template below.

Template

Handover — <project> · <task or tracking issue>

Read first: <plan / CLAUDE.md / status files, and how to recover the plan if it is not on disk>
Relevant memories: <memory file names the next agent should open> / none

Current step: <plan step or task title, verbatim>
Done when: <the exact end state of this step — and nothing beyond it>
Branch: <name>   Base: <base>   Pushed: yes/no/behind   PR: #<n> / not opened
Commits on the branch so far:
  - <sha> <message>

Done in this step:
  - <file or unit>: <what>
Left to do in this step (in order):
  1. <next concrete action>

State of the tree:
  - Working tree: clean / uncommitted changes in <files> (what they are)
  - Last checks at <sha>: lint ✔/✘  typecheck ✔/✘  build ✔/✘  unit ✔/✘  integration ✔/✘  (verified this session / recalled)
  - Known red tests and why: none / <test>: <reason>
  - Still running / left behind: none / <background jobs, agents, worktrees>

Decisions and why (not written down elsewhere): none / <decision — reason>
Tried and rejected: none / <approach — why it failed>
Plan drift pushed to the published copy: yes / no / n.a. — <what changed>
Unrelated bugs found: none / #<n> <one line> / "<one line>, issue NOT filed yet"

Authorized without asking: <e.g. commit on this branch, run tests> / nothing beyond reading
Stop and ask before: <push, open PR, file issues, anything irreversible, the next plan step>
Open questions for the user: none / <list>

Start by: <single first command> — expect: <what it should print; if it differs, the tree moved since this handover>

Why each field exists

Fill every line; write "none" rather than deleting one. An absent line reads as "forgot to check", "none" reads as "checked".

  • Relevant memories / Read first — point, don't paste. Anything recoverable from a file costs the next agent one read; copying it here only adds noise and goes stale.
  • Done when — a capable agent that finishes the listed work will keep going into the next step. This line is where it stops.
  • Left to do — ordered and concrete enough to start without asking. "Convert the service" is not a step; "test first for src/services/x.ts (untested), then refactor it" is.
  • verified / recalled — the next agent re-runs recalled claims and trusts verified ones. Mark honestly; a false ✔ costs more than a re-run.
  • Still running — background work is invisible to a new session and may still be writing files or holding a worktree.
  • Decisions and why / Tried and rejected — the most expensive thing to re-derive. A decision without its reason looks reopenable, and a strong model will reopen it. Include the reason even when it seems obvious now.
  • Authorized / Stop and ask — approvals the user gave in this session do not carry over. Without this, the next agent either asks for everything or assumes too much.
  • Start by … expect — the expected output lets the next agent detect that the user rebased, edited or pushed between sessions, instead of acting on a stale picture.

Facts, not narrative: shas, paths, test names, issue numbers. Length follows from the rule "only what cannot be recovered" — if the prompt grows past a screen or two, the extra belongs in the plan, a status file or memory, and the prompt should point there.

Deliver

  1. Copy the prompt text only, verbatim, no fences, no commentary:

    for c in pbcopy clip.exe wl-copy "xclip -selection clipboard" "xsel --clipboard --input"; do
      command -v ${c%% *} >/dev/null 2>&1 && copy=$c && break
    done
    cat <<'EOF' | ${copy:-false}
    <the prompt>
    EOF

    The loop picks the first clipboard tool present (macOS, WSL, Wayland, X11). If none exists, the copy fails; say so and rely on step 2.

  2. Print the same prompt in a fenced block so the user can check it.
  3. Confirm in one line whether it is on the clipboard, and list any memories you saved or updated in step 1.

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.