agentleFS
sonu07-starsonu07-star/agent-handoff-skill/skills/agent-handoff/SKILL.md

agent-handoff

Skill0 starsChanged 5 months agoMITView on GitHub

Create, validate, and resume structured handoff documents that let another AI agent continue work without hidden conversation context. Use when pausing or transferring unfinished work, approaching a context limit, switching agents or sessions, reporting a blocker, recovering after interruption, resuming from HANDOFF.md, or auditing a handoff for evidence, actionable next steps, secret leakage, and unsupported completion claims.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a compact, evidence-based continuation packet.

    line 8
  2. Distinctive:

    Treat repository state, files, command output, and external records as evidence.

    line 12
  3. Distinctive:

    Never copy secrets, credentials, session tokens, private keys, or unnecessary personal data into a handoff.

    line 16
  4. Distinctive:

    Do not label work complete without verification evidence.

    line 17
  5. Very specific:

    Use None — <reason> or Unknown — <how to resolve> instead of leaving a required field blank.

    line 18
  6. Very specific:

    Prefer HANDOFF.md in the active project root unless the user or repository specifies another location.

    line 46
  7. Distinctive:

    Write for a cold reader:

    line 59
  8. Distinctive:

    Use paths, URLs, issue numbers, branch names, and commands instead of phrases such as "the file" or "the test."

    line 61
  9. Distinctive:

    Read references/handoff-format.md when a field is unclear, when adapting the format, or when reviewing status and evidence semantics.

    line 68
  10. Distinctive:

    Run the validator first, then inspect semantic accuracy against live state:

    line 86
  11. Distinctive:

    No secret or sensitive data is present.

    line 99
  12. Distinctive:

    Read the entire handoff and any directly referenced artifact required for the first action.

    line 105
  13. Distinctive:

    Verify the workspace, branch, revision, working-tree state, and relevant external state.

    line 106
  14. Distinctive:

    Stop and surface a conflict when continuing could overwrite work, exceed authorization, or act on stale external state.

    line 108
  15. Distinctive:

    Update the handoff after material progress if another transfer is likely.

    line 110
  16. Distinctive:

    Do not repeat completed work merely because the original conversation is unavailable.

    line 112
  17. Distinctive:

    Use exactly one status:

    line 116
  18. Very specific:

    Prefer ready-for-review over complete when a human decision remains.

    line 123

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

Agent Handoff

Create a compact, evidence-based continuation packet. Make the handoff useful to an agent that can access the artifacts but cannot see the current conversation.

Preserve the contract

  • Treat repository state, files, command output, and external records as evidence. Do not treat memory as evidence.
  • Separate verified facts from inferences and unknowns.
  • Record the smallest exact next action that can restart progress.
  • Preserve user intent, scope, constraints, and outstanding commitments.
  • Never copy secrets, credentials, session tokens, private keys, or unnecessary personal data into a handoff.
  • Do not label work complete without verification evidence.
  • Use None — <reason> or Unknown — <how to resolve> instead of leaving a required field blank.

Choose an operation

  1. Create or update: Capture work so another agent or session can continue it.
  2. Validate: Audit an existing handoff for missing, vague, unsafe, or unsupported claims.
  3. Resume: Reconstruct the task from a handoff and compare it with live state before acting.

Create or update a handoff

1. Reconstruct live state

Inspect the artifacts directly. Collect only information relevant to continuation:

  • Original goal and measurable success criteria
  • Authorized scope and explicit constraints
  • Workspace, repository, branch, revision, and relevant external identifiers
  • Modified, staged, untracked, committed, or published artifacts
  • Work completed and work still outstanding
  • Decisions, rationale, rejected approaches, and reversal conditions
  • Verification commands and their exact summarized results
  • Blockers, risks, failed attempts, and unresolved unknowns
  • The first action the next agent should take

For a Git workspace, inspect at least the current branch, revision, working-tree status, and relevant diff. Do not run commands that mutate state merely to prepare a handoff.

2. Create the document

Prefer HANDOFF.md in the active project root unless the user or repository specifies another location. Seed the required structure with:

python scripts/create_handoff.py \
  --output HANDOFF.md \
  --goal "Ship the requested change with passing checks" \
  --next-action "Inspect the failing authentication test"

Resolve script paths relative to this skill directory, not the user's current directory. The generator records Git context when available and refuses to overwrite a file unless --force is supplied.

3. Replace every placeholder

Write for a cold reader:

  • Use paths, URLs, issue numbers, branch names, and commands instead of phrases such as "the file" or "the test."
  • Summarize results; do not paste large logs or diffs. Point to durable artifacts when detail matters.
  • Mark each file or artifact with its state and why it matters.
  • Record failed attempts only when they prevent repeated work or reveal a constraint.
  • Make the first next action atomic and executable. Put later actions in dependency order.
  • Include a retrieval method for external state without embedding credentials.

Read references/handoff-format.md when a field is unclear, when adapting the format, or when reviewing status and evidence semantics.

4. Validate before transfer

Run:

python scripts/validate_handoff.py HANDOFF.md --strict

Fix every error. Fix warnings or explain why the exception is accurate in the handoff. Re-run validation after edits.

5. Transfer explicitly

Tell the recipient where the handoff is and state its status. Do not claim that another agent has received or resumed it unless that transfer was verified.

Validate an existing handoff

Run the validator first, then inspect semantic accuracy against live state:

python scripts/validate_handoff.py path/to/HANDOFF.md --strict

Check that:

  • The recorded branch, revision, file states, and external identifiers still exist.
  • Verification results name a command or durable artifact and distinguish pass, fail, and not run.
  • A complete handoff has checked success criteria and successful evidence.
  • Unknowns include a concrete resolution method.
  • The next action remains valid after any state drift.
  • No secret or sensitive data is present.

Report discrepancies; do not silently rewrite the source of truth unless the user asked for an update.

Resume from a handoff

  1. Read the entire handoff and any directly referenced artifact required for the first action.
  2. Verify the workspace, branch, revision, working-tree state, and relevant external state.
  3. Compare live state with the snapshot. Classify differences as expected progress, harmless drift, or a conflict.
  4. Stop and surface a conflict when continuing could overwrite work, exceed authorization, or act on stale external state.
  5. Otherwise execute the first valid next action and continue toward the recorded success criteria.
  6. Update the handoff after material progress if another transfer is likely. Preserve prior decisions that still constrain the work.

Do not repeat completed work merely because the original conversation is unavailable. Do not assume the handoff grants authority for publishing, deletion, deployment, messaging, purchases, or other consequential actions.

Status vocabulary

Use exactly one status:

  • in-progress: Work can continue and an actionable next step exists.
  • blocked: Progress requires named user input, permission, dependency, or external state.
  • ready-for-review: Implementation is done and evidence is recorded; review or approval remains.
  • complete: Every success criterion is met and supported by verification evidence.

Prefer ready-for-review over complete when a human decision remains.

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.