agentleFS
assisjpassisjp/specflow/skills/productivity/session-handoff/SKILL.md

session-handoff

Skill17 starsChanged 4 months agoMITView on GitHub

Compact the current session into an ephemeral handoff document so another session or tool can pick the work up once and continue. Records session state and git state, references durable artifacts by path instead of duplicating them, and suggests which skills to run next. Use when you have to stop mid-work and hand off, or the user asks for a handoff. Not for durable project state — that lives in ADRs, the glossary, the spec, and the tracker.

72 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use subagent-driven-development, testing and 7 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.
  • OpenAISkill

    subagent-driven-development

    Use when executing implementation plans with independent tasks in the current session

    Also in 3 projects that use this

  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 3 projects that use this

  • OpenAISkill

    executing-plans

    Use when you have a written implementation plan to execute in a separate session with review checkpoints

    Also in 3 projects that use this

  • genomewalkerSkill

    learn

    Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.

    Also in 3 projects that use this

  • Google CloudSkill

    triage

    Gather context on a change or bug and plan the implementation.

    Also in 3 projects that use this

  • VercelSkill

    find-skills

    Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

    Also in 3 projects that use this

  • +3 more from openai

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 61 edited versions we read keep these.

  • 2

    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:

    Write an ephemeral handoff so a fresh agent can resume this work.

    line 10
  2. Very specific:

    Write to .scratch/handoffs/<short-slug>.md.

    line 16
  3. Distinctive:

    Redact secrets: No API keys, passwords, tokens, or PII in the handoff.

    line 55

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

Session Handoff

Write an ephemeral handoff so a fresh agent can resume this work. The handoff is consumed once and then dies — it is session state, not a durable record.

Durable truth already has owners: architectural decisions live in ADRs, vocabulary in CONTEXT.md, requirements in the spec, verification commands in the block (AGENTS.md or CLAUDE.md), and tasks in the tracker. The handoff does not compete with any of them. State goes in the handoff; decisions go in an ADR.

Where it writes

Write to .scratch/handoffs/<short-slug>.md. First, guarantee .scratch/ is in .gitignore — if it is not, add it before writing. A handoff swept into a PR by the next spec-execution run is a leak, not a handoff.

What goes in it

Reference durable artifacts by path or URL — never duplicate a spec, ADR, or issue body. But a path only resolves if the receiving session sees the same version of the tree, so record the git state that pins it:

# Handoff — <one-line topic>

## Focus of the next session
<If the user passed an argument, this is it: what the next session should do.>

## Git state
- Branch: <branch>
- HEAD: <short SHA>
- Dirty files: <list, or "clean">
- Unpushed commits: <count, or "none">

## Where things stand
<2-6 lines of session state: what was being done, what is half-done, what
just broke. State, not decisions.>

## Artifacts (by reference, not copied)
- Spec: <path or issue URL>
- ADRs touched: <paths>
- Relevant files: <paths>

## Open threads
<What is unresolved and needs a decision or a next step.>

## Suggested skills
<Which skills the next session should invoke, e.g. `spec-execution <issue>`,
`grill` to resolve an open decision.>

Rules

  • State, not decisions. A decision that will still matter months from now is an ADR, not a handoff line. If a handoff line records a why rather than a where things stand, it is a decision disguised as state — promote it to an ADR now (via domain-modeling), do not carry it forward.
  • Reference, don't duplicate. Paths and URLs, pinned by the git state above. Copying content means it goes stale the moment the source changes.
  • Redact secrets. No API keys, passwords, tokens, or PII in the handoff.
  • Keep it short. A handoff nobody can read in a minute is one the next session skims and mistrusts.

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.