agentleFS
sidorovanthonsidorovanthon/handoff-prompt/SKILL.md

handoff-prompt

Skill0 starsChanged 7 months agoMITView on GitHub

Use when the user wants to hand off the current session to a fresh one — triggers include "/handoff-prompt", "make a handoff", "save progress for next session", "compact session for continuation", "give me a handoff prompt". Produces a copy-pasteable block that lets a new session resume work without losing state.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. crissmoldovan/agent-skills★ 2same name
    2. adrian-patterson/skills★ 1same name
    3. t-uda/skills★ 0same name
    4. Xuepoo/handoff-prompt★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 3

    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:

    Never drop: Current task, Where we stopped, Next steps.

    line 18
  2. Distinctive:

    Write the handoff in second person, as instructions to a fresh agent.

    line 37
  3. Distinctive:

    Use this structure inside the fenced block, omitting empty sections:

    line 42

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

Produce a compact, copy-pasteable prompt that a fresh Claude Code session can use to continue the current work. Do not ask clarifying questions. Output once and stop.

Token budget

The emitted handoff block MUST be ≤ 300 tokens. If you exceed budget, drop sections in this order until you fit:

  1. Key decisions & gotchas
  2. Compress Progress so far to the 3 most load-bearing items
  3. Context references — keep only the single most relevant path

Never drop: Current task, Where we stopped, Next steps.

How to gather the content

Introspect this session — do NOT ask the user. Derive each section from what you can see:

  • Current task — from the user's active goal in recent messages.
  • Progress so far — from your own tool calls that changed state (Edit, Write, Bash commands that mutated anything, file creations). Cite file paths and, where useful, line numbers.
  • Where we stopped — your last substantive action plus the reason you paused (end of step, blocker, awaiting user input, tool failure).
  • Next steps — from any plan/spec/TODO in play, or the obvious continuation of the last action.
  • Key decisions & gotchas — non-obvious choices or traps surfaced during the session. Include only if real; skip otherwise.
  • Context references — check the current working directory for CLAUDE.md, AGENTS.md, and any active plan or spec file (e.g., under docs/superpowers/plans/ or docs/superpowers/specs/). Include their absolute paths. Never inline their contents.
  • Open questions — only if the session has unresolved questions needing user input.

Output rules

  • Emit exactly one fenced markdown code block containing the handoff. One short lead-in line is allowed (e.g., "Paste this into your next session:"). Nothing after the block.
  • Omit any section that has no real content — drop the header too, don't leave it empty.
  • Terse bullets. Concrete nouns (file paths, commands, line numbers). No filler prose, no restatement of obvious context.
  • Write the handoff in second person, as instructions to a fresh agent.
  • Reference project context files by absolute path only. Never paste their contents.

Template

Use this structure inside the fenced block, omitting empty sections:

You are continuing a previous Claude Code session. Read the sections below, then continue the work.

## Current task
<1–3 sentences>

## Progress so far
- <file:line or action — terse>

## Where we stopped
<last action + why stopped>

## Next steps
1. <concrete action>

## Key decisions & gotchas
- <non-obvious decision or trap>

## Context references
- CLAUDE.md: <abs path>
- AGENTS.md: <abs path>
- Plan/spec: <abs path>

## Open questions
- <question for the user>

Checklist before emitting

  • One fenced code block, nothing trailing it
  • ≤ 300 tokens inside the block
  • No empty section headers
  • CLAUDE.md / AGENTS.md referenced by path only (if present)
  • Current task, Where we stopped, Next steps all present

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.