agentleFS
mad01mad01/thismoon/skills/handoff/SKILL.md

handoff

Skill2 starsChanged 10 days agoBSD-3-ClauseView on GitHub

Write a handoff document and persist key learnings to memory so the next agent (or future session) can continue this work without re-discovering context.

191 other projects use a version of this, 77 of them edited.

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

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

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 7

    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:

    Create a handoff so work survives a context reset.

    line 7
  2. Distinctive:

    Read the full conversation: what was the goal, what happened, what's left.

    line 15
  3. Distinctive:

    If a prior handoff document was fed into this session, carry its still-relevant context forward.

    line 16
  4. Distinctive:

    Before writing the handoff document, save what future sessions should know, even ones that never read the handoff file.

    line 20
  5. Distinctive:

    Write the handoff file with these sections:

    line 31
  6. Distinctive:

    If the user passed arguments, treat them as a description of what the next session will focus on.

    line 60
  7. Distinctive:

    Tell the user what was saved: After writing, report the handoff file path (so they can pass it to the next session) and one line per entry …

    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

Create a handoff so work survives a context reset. The user will open a brand new Claude Code session and feed it the handoff document; that document is the only bridge. Anything not in the handoff or in durable memory is lost.

Save the handoff to a durable, agent-agnostic directory, not the workspace: ~/.handoff/handoff-<project>-<YYYYMMDD-HHMM>.md (create the directory with mkdir -p if needed). ~/.handoff/ is shared across every coding agent, so a handoff written by one agent can be picked up by another (Claude Code, Codex, opencode, pi). Don't use $TMPDIR or /tmp: macOS prunes them, so a handoff left there is gone by the time the next session needs it. Never write it into the repo, and never write it under a single agent's private state directory (e.g. ~/.claude/).

Steps

1. Gather context

  • Read the full conversation: what was the goal, what happened, what's left.
  • If a prior handoff document was fed into this session, carry its still-relevant context forward. Don't lose the chain.

2. Persist learnings to memory

Before writing the handoff document, save what future sessions should know, even ones that never read the handoff file. Each fact goes to the one store that owns it. When the agent's global config defines memory routing, follow it; otherwise route like this:

  • A preference, a correction, or a fact every agent needs (how the user wants work done, a tool or machine fact): the shared agent-memory store at ~/.config/agent-memory/. Write one fact per file and add a line to its MEMORY.md index.
  • A fact about one repo (a build gotcha, an ordering rule, a declined design): that repo's docs or CLAUDE.md, where the next agent in the repo reads it anyway.
  • Progress on the task (where it stands, what comes next): the worklog item for the ticket or topic, through the worklog skill.
  • A project or harness gotcha the repo does not record (how the code behaves at run time, a quirk of the coding agent itself): the agent's own auto-memory, and only that.

Never save a recap of shipped or resolved work, in any store: the tracker, the worklog and git history already hold it. Skip the step when nothing non-obvious was learned. Before adding an entry, read the target store's index and update an existing entry instead of writing a near-copy. State only the next session needs goes in the handoff document.

3. Write the handoff document

Write the handoff file with these sections:

# Handoff

## Goal
What we're trying to accomplish: the top-level objective.

## Current Progress
What's been done so far. Reference artifacts (PRs, commits, files, issues) by path or URL; don't duplicate their content. Link issues by their tracker key, whichever tracker the project keys on.

## What Worked
Approaches and strategies that succeeded, so the next agent repeats them.

## What Didn't Work
Approaches that failed and why, so the next agent doesn't retry them.

## Key Decisions
Decisions made during this session and their rationale.

## Suggested Skills
Skills the next agent should invoke to continue effectively (e.g. /golang-pro, /work-on, /ios-dev).

## Next Steps
Concrete action items for the next session, ordered by priority.

4. Tailor to arguments

If the user passed arguments, treat them as a description of what the next session will focus on. Emphasize the sections most relevant to that focus and add specific guidance for it.

Rules

  • Redact sensitive data. Strip API keys, passwords, tokens, and PII before writing.
  • Reference, don't repeat. Link to PRDs, plans, ADRs, issues, commits, and diffs by path or URL. The handoff should be a map, not a copy.
  • Stores are for durable facts, the handoff is for session state. A user preference goes in shared memory and a decision's rationale in the repo's docs. A list of "files left to edit" goes in the handoff doc.
  • Tell the user what was saved. After writing, report the handoff file path (so they can pass it to the next session) and one line per entry written or updated, naming its store.

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.