agentleFS
DobroslavRadosavljevicDobroslavRadosavljevic/cabrakan/.agents/skills/handoff/SKILL.md

handoff

Skill1 starsChanged 3 months agoMITView on GitHub

Produce or consume agent-to-agent handoff context so another session can resume work without re-deriving decisions, state, and next steps. Use when the user invokes $handoff, says "handoff", "hand off", "session handoff", "write a handoff", "resume from handoff", "context for the next agent", or asks to package current work for another AI agent or later session.

191 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 52 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 63 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 110 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 107 projects that use this

  • LesaniSkill

    writing-fragments

    Grilling session that mines the user for fragments — heterogeneous nuggets of writing (claims, vignettes, sharp sentences, half-thoughts) — and appends them to a single document as raw material for a future article. Use when the user wants to develop ideas before imposing structure, or mentions "fragments", "ideate", or "raw material" for writing.

    Also in 67 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 17 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 17

    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:

    Create or consume a durable handoff so a different agent (or a later session) can continue the same work with goals, decisions, repo state, …

    line 10
  2. Distinctive:

    Consume: treat an existing handoff as the source of truth and resume from it.

    line 17
  3. Distinctive:

    If ambiguous, ask once whether to write a handoff or resume from one.

    line 19
  4. Distinctive:

    Prefer concrete paths, commands, decisions, and ordered next steps over narrative recap.

    line 24
  5. Distinctive:

    Never include secrets, tokens, passwords, private keys, or full secret values.

    line 26
  6. Distinctive:

    Do not invent completed work.

    line 27
  7. Distinctive:

    If optional todo lists, plan mode, or approval workflows exist, use them only as helpers.

    line 29
  8. Distinctive:

    Read the full handoff before making changes.

    line 70
  9. Distinctive:

    Verify the handoff against live state before trusting it:

    line 72
  10. Distinctive:

    If the workspace disagrees with the handoff, stop and report the mismatch before proceeding.

    line 76
  11. Distinctive:

    Follow "What not to do" and the ordered next steps unless the user overrides them.

    line 77
  12. Distinctive:

    Read the listed files first, then expand only as needed.

    line 78
  13. Distinctive:

    When the handoff work is finished or the session must stop again, produce an updated handoff rather than relying on chat memory.

    line 79
  14. Distinctive:

    Default destination: chat, as a single markdown document.

    line 83
  15. Very specific:

    If the user names a path, write there.

    line 84
  16. Distinctive:

    Do not create a handoff file unprompted inside an unrelated project.

    line 85
  17. Distinctive:

    Keep product-specific UI metadata out of the handoff body.

    line 86
  18. Distinctive:

    When producing a handoff, also offer this short starter for the next agent:

    line 90

“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

Handoff

Overview

Create or consume a durable handoff so a different agent (or a later session) can continue the same work with goals, decisions, repo state, risks, and next steps intact.

Modes

Determine which mode applies:

  • Produce: package the current conversation and workspace state into a handoff.
  • Consume: treat an existing handoff as the source of truth and resume from it.

If ambiguous, ask once whether to write a handoff or resume from one.

Core Rules

  • Optimize for the next agent, not for the outgoing agent's diary.
  • Prefer concrete paths, commands, decisions, and ordered next steps over narrative recap.
  • Separate facts, assumptions, and open questions.
  • Never include secrets, tokens, passwords, private keys, or full secret values. Name env vars only.
  • Do not invent completed work. Verify claims against the workspace when possible.
  • Stay harness-neutral. Prefer chat output by default; write a file only when the user asks or names a path.
  • If optional todo lists, plan mode, or approval workflows exist, use them only as helpers; the handoff document remains the portable artifact.

Produce Workflow

  1. Confirm the mission the next agent should continue.
  2. Inspect enough live state to ground the handoff:
    • Current branch, dirty files, recent commits, and relevant open processes when available.
    • Key files touched or about to be touched.
    • Decisions already confirmed by the user.
  3. Fill the template in references/template.md. Omit empty sections rather than padding them.
  4. Prioritize these sections if anything must be shortened:
    • Goal and status
    • Immediate next steps
    • Must-know context
    • What not to do
  5. Output the handoff in chat unless the user requested a file path.
  6. End with a one-line resume instruction the user can paste into the next session, such as: Resume from this handoff and continue with step 1.

Produce Quality Bar

A good handoff lets another agent start useful work after reading it once.

Include:

  • Status: ready, needs-review, or blocked with the blocker named.
  • What is done vs unfinished.
  • Uncommitted or partial work stated honestly.
  • Ordered, verifiable next steps.
  • A short "files to read first" list (usually 3-7 paths), each with why.
  • Assumptions, gotchas, and rejected alternatives that would otherwise be rediscovered.
  • Exact commands or checks already known to matter.

Avoid:

  • Dumping the full chat transcript.
  • Vague steps like "continue implementing" or "finish the feature".
  • Listing every related file in the repo.
  • Hiding uncertainty; mark unknowns explicitly.

Consume Workflow

  1. Read the full handoff before making changes.
  2. Restate the goal, status, and first next step to the user in one short confirmation when useful.
  3. Verify the handoff against live state before trusting it:
    • Branch, dirty tree, and claimed file changes.
    • Whether cited commits, paths, and commands still exist.
    • Whether blockers are still real.
  4. If the workspace disagrees with the handoff, stop and report the mismatch before proceeding.
  5. Follow "What not to do" and the ordered next steps unless the user overrides them.
  6. Read the listed files first, then expand only as needed.
  7. When the handoff work is finished or the session must stop again, produce an updated handoff rather than relying on chat memory.

Output Defaults

  • Default destination: chat, as a single markdown document.
  • If the user names a path, write there. Common choices: HANDOFF.md, docs/handoff.md, or a dated path they specify.
  • Do not create a handoff file unprompted inside an unrelated project.
  • Keep product-specific UI metadata out of the handoff body.

Minimal Resume Prompt

When producing a handoff, also offer this short starter for the next agent:

Use $handoff in consume mode.
Handoff is below / at <path>.
Verify it against the repo, then continue from Immediate Next Steps without re-litigating settled decisions unless they conflict with the workspace or user direction.

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.