agentleFS
simoncorrysimoncorry/foundry/.agents/skills/handoff/SKILL.md

handoff

Skill39 starsChanged 37 days agoMITView on GitHub

When the human types `/handoff` (or "next session", "what''s next", "handoff note"), produce a copy-paste markdown block for the next session.

192 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

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

  • 0

    Common

    Most of the 173 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the pull request is ready and the work is meant to ship, merge it using the repository's merge policy.

    line 18
  2. Distinctive:

    If the pull request is superseded, abandoned, or should not ship, close it without merging.

    line 19
  3. Distinctive:

    When in doubt, flag as needs-the-human.

    line 75
  4. Very specific:

    If nothing's left over and nothing qualifies, output exactly: Nothing to hand off this time.

    line 81
  5. Distinctive:

    After resolving in-scope pull requests, handoff modifies no product or documentation files.

    line 89

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

When the human types /handoff (or "next session", "what's next", "handoff note"), produce a copy-paste markdown block for the next session. Top half is human-scannable; bottom half is pure agent instructions for next session's start-up. This is the closing half of the pair that makes sessions continuous: handoff writes the note, start-up reads it.

Precondition: the background-work barrier

Handoff may not emit while any background task spawned this conversation is unresolved: await finite work, act on landed-but-unhandled results, retire session daemons, or (narrowly, never for a verification task) abandon with the reason written down. Right after wrap-up this is a quick re-check that nothing new was spawned; standalone, the full barrier applies first. See AGENTS.md § The background-work barrier.

Pull request authority

Invoking handoff is explicit permission to resolve pull requests created by the work being handed off. Do this before writing the handoff note:

  1. Inspect the exact head commit, base branch, required reviews, and checks.
  2. If the pull request is ready and the work is meant to ship, merge it using the repository's merge policy. Never bypass a failed check or required review.
  3. If the pull request is superseded, abandoned, or should not ship, close it without merging.
  4. Prove the final GitHub state, clean up the resolved branch, synchronize the base branch, and verify any resulting base-branch check.

This authority is narrow. It covers pull requests created by this session or explicitly named in the work being handed off. It does not cover unrelated pull requests, product or provider changes, spending, deployment, or any other external effect. If an in-scope pull request cannot be resolved safely, leave it open and state the exact blocker in the handoff.

Voice

The output IS chat to the human: follow AGENTS.md § Voice, including in every fill-in. Pipe the draft through node scripts/voice-gate.js before sending.

Locked template

Output is ONE fenced markdown code block. Inside it:

## Handoff

{One paragraph for the human: what the session that just ended focused on, what's left over, and the recommended focus for next time. About 3-5 sentences of plain English. No file paths in the prose, no unexplained acronyms, no marker tags.}

- {Key context bullet 1}
- {Key context bullet 2}
- {Up to 4-5 bullets max}

---

**For the agent:**

Start with `/start-up`. Draw up a plan focused on **{recommended focus, one phrase}** using construct-the-plan. If open questions remain after the draft, run `/frame-it` and get the human's answers. Then STOP and wait: the human queues the challenge rounds, `/build-it`, `/test-it`, the implementation challenges, and `/wrap-up`; never start them unprompted.

**Specific items to pick up (agent-doable without the human):**
- {Item 1 with file path or scope}
- {Item 2}

**Needs the human's input, do NOT pick up unsupervised:**
- {Item, or "None"}

**Out of scope:**
- {Item, or "None"}

The horizontal rule separates the human-scannable top from the agent instructions. The whole block is wrapped in a markdown code fence so it pastes cleanly.

Sources to pull from

  • This session's chat: deferred decisions and in-flight items.
  • The handoff note from last session, if one is still relevant.
  • docs/plans/ filtered to plans marked IN_PROGRESS.
  • Whatever standing to-do or issues surface your project keeps.

Missing or unreadable sources: skip, continue, and add a one-line Skipped sources: [list] footnote.

Sorting items into sections

  • Deferred markers from the conversation go to needs-the-human.
  • Plans marked PROPOSED go to needs-the-human (they await review); plans marked IN_PROGRESS are agent-doable.
  • Lint warnings, drift findings, doc updates: agent-doable.
  • Design questions, product tuning, anything taste-shaped: needs-the-human.
  • When in doubt, flag as needs-the-human.

Cap the agent-doable list at the top 5 by relevance and say where the rest live.

Empty case

If nothing's left over and nothing qualifies, output exactly: Nothing to hand off this time. Self-contained session.

Has an opinion

The recommended focus picks ONE thing and justifies it in a sentence. Don't offer a menu.

Repository boundary

After resolving in-scope pull requests, handoff modifies no product or documentation files. It produces the block and stops. The Git and GitHub state changes described above are the only writes this command authorizes.

Rationale (recorded so future edits don't drift it)

The two-half shape exists because the note serves two readers with opposite needs: the human skims the top in ten seconds to remember where things stand, and the next session's agent executes the bottom verbatim. Mixing the two produces a note neither reader trusts. The pull request step belongs before the note because handing off a ready or obsolete pull request just makes the next session repeat the end of this one. The explicit STOP instruction in the agent half is load-bearing: without it, next session's agent tends to run the whole chain uninvited, and the human loses the checkpoints the process exists for.

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.