agentleFS
MarkBoveeMarkBovee/agent-skills-kit/skills/ask-handoff/SKILL.md

ask-handoff

Skill1 starsChanged 4 months agoMITView on GitHub

Handoff: Writes a short brief so a fresh agent can continue the work. Use when pausing, switching agents or sessions, or when context is nearly full.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    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:

    Hand off: when the work travels: to another harness, another directory or repository, a colleague, a fresh session you will start later, or …

    line 29
  2. Distinctive:

    Send a subagent: when the next task is tightly scoped and can run without the user.

    line 30
  3. Distinctive:

    If the answer to "should we hand off?" is anything but a handoff, say so and stop instead of writing a brief nobody needs.

    line 33
  4. Distinctive:

    Write the brief with these sections, omitting empty ones:

    line 38
  5. Distinctive:

    If the user passed arguments, treat them as the focus of the next session and tailor the brief to it.

    line 52
  6. Distinctive:

    Keep it under about 60 lines.

    line 57
  7. Distinctive:

    Do not start the next phase or fix open items while writing the brief.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

ASK Handoff

Goal: a fresh agent with no conversation history can continue the work correctly from one short document.

When to hand off, and when not

Write the brief when the user asks for one, when they will pause and resume in a fresh session, or when the context window is nearly full. When the question is whether to hand off at all, decide at a phase boundary (the grilling is done, the build is done) and take the first yes; references/phase-boundaries.md explains each branch. Mid-phase only continue, send a subagent, or fork a side task: clearing or compacting there loses the thread.

  1. Continue in this session when the next phase needs this one as a primary source, or the window still has room for it. A grill flowing into the build is the standard case: the build wants the reasoning verbatim, not a summary.
  2. Clear the context when nothing in this session matters to what comes next. It cannot be undone for the reasoning behind what was built.
  3. Hand off when the work travels: to another harness, another directory or repository, a colleague, a fresh session you will start later, or as a side task forked off mid-phase. A handoff buys portability; with nothing travelling, skip it.
  4. Send a subagent when the next task is tightly scoped and can run without the user. Give it context pointers and leave this session untouched.
  5. Compact otherwise: relevant context, same harness, same directory, the user stays in the loop. Tell it what the next phase needs so the summary keeps that.

If the answer to "should we hand off?" is anything but a handoff, say so and stop instead of writing a brief nobody needs.

Steps

  1. Derive the state from the repository (git status, git diff against the base, branch, plan or spec record, open issues), not from memory of the conversation.
  2. Write the brief with these sections, omitting empty ones:
    • Goal: one or two sentences.
    • State: done, in progress, not started.
    • Decisions: each choice with its reason, one line each.
    • In play: files and areas touched, and the branch or diff reference.
    • Proof so far: commands run and results, with the diff reference they apply to; gates already passed and who ran them.
    • Open: blockers, unanswered questions, risks.
    • Next step: the single next action.
    • Suggested skills: the ASK skills the next agent should read, as ~/.agents/skills/ask-<name>/SKILL.md.
  3. Reference artifacts that already exist (specs, plans, ADRs, issues, commits, diffs) by path or URL. Do not copy their content.
  4. Redact secrets, tokens, and personal data.
  5. Save the brief outside the workspace so it is never committed: create a private directory with mktemp -d (PowerShell: a New-TemporaryFile-based directory) and write handoff.md there. Use a path the user names instead when given.
  6. Report the exact path and one line the user can paste to start the next session ("Read <path> and continue with the next step").

If the user passed arguments, treat them as the focus of the next session and tailor the brief to it.

Rules

  • Facts over narrative: what is true in the repository now. Mark anything unverified as such.
  • Keep it under about 60 lines; link instead of explaining.
  • Do not start the next phase or fix open items while writing the brief.

Boundaries

summary explains the result to the owner. session-review reflects on skill usage and files issues. handoff briefs the next agent.

Use with

  • verification before handing off, so the proof section is real
  • intake in the next session when the plan is still open
  • summary when the reader is the owner rather than another agent

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.