handoff
Skill72 starsChanged 7 months agoMITView on GitHub
Generate the lightweight handoff summary (what was built, what's missing, acceptance criteria) and, when needed, save a formal handoff artifact to .tasks/handoffs/. The receiver verifies the summary before starting work. Extract from $ARGUMENTS: If from-agent, to-agent, or artifact are missing, print usage and stop: Check that <from-agent>.md and <to-agent>.md exist in .claude/agents/. If either is missing, warn but continue: - If task_id was provided, check if .tasks/checkpoints/<task_id>.md exists. If yes, set context_snapshot to that path. - If task_id was NOT…
195 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- AlexisBalayre/claude-code-configtheir own version, first seen Oct 5, 2026
- fmind/dottheir own version, first seen Oct 5, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- obie/auto-handofftheir own version, first seen Oct 4, 2026
Used with
Projects with it also use which-skill, wait-what 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.
risadamsSkillwhich-skill
Router over this pack's skills and flows. Ask it "which skill fits X" when you don't remember what's available.
Also in 5 projects that use this
AWSSkillwait-what
Stop. That last message did not land: re-pitch it.
Also in 51 projects that use this
AWSSkillto-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
Also in 41 projects that use this
loulanyueSkillsetup-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 15 projects that use this
RoentekSkillwriting-beats
Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.
Also in 20 projects that use this
RoentekSkillwriting-fragments
Writing, explore — mine raw fragments, no structure yet.
Also in 20 projects that use this
- +5 more from aws
- +1 more from Roentek
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- mattpocock/skills★ 335ksame name
- ykdojo/claude-code-tips★ 10ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- davidondrej/skills★ 4.1ksame name
- compozy/compozy★ 2.8ksame name
- feiskyer/claude-code-settings★ 1.7ksame name
- openclaw/agent-skills★ 1.1ksame name
- suboss87/FDEOps★ 950same name
- anombyte93/prd-taskmaster★ 604same name
- stevesolun/ctx★ 588same name
185 more not listed
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.
In this repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-healthSkill
- agent-styleSkill
- angular-best-practicesSkill
- annotateSkill
- api-designSkill
- architecture-decision-recordsSkill
- aws-serverlessSkill
- backend-architectSkill
- backend-patternsSkill
- brainstormSkill
- bug-reportSkill
- changelogSkill
- claude-apiSkill
- cloud-architectSkill
- cloud-run-puppeteerSkill
- code-review-checklistSkill
- code-reviewSkill
- code-simplificationSkill
- codex-sddSkill
- commitSkill
- context-engineeringSkill
- database-architectSkill
- db-reviewSkill
- deep-interviewSkill
- design-reviewSkill
- design-systemSkill
- devops-deploySkill
- diagnoseSkill
- django-patternsSkill
- docker-patternsSkill
- dotnet-backend-patternsSkill
- dreamSkill
- drizzle-orm-expertSkill
- estimateSkill
- event-sourcing-architectSkill
- fastapi-proSkill
- fork-joinSkill
- freezeSkill
- frontend-designSkill
- frontend-patternsSkill
- frontend-ui-dark-tsSkill
- gate-checkSkill
- gemini-api-integrationSkill
- gitlab-ci-patternsSkill
- guardSkill
- hotfixSkill
- hybrid-cloud-architectSkill
- kubernetes-architectSkill
- laravel-patternsSkill
- launch-checklistSkill
- learnerSkill
- llm-app-patternsSkill
- localizeSkill
- map-systemsSkill
- map-workflowSkill
- markdown-injection-scannerSkill
- microservices-patternsSkill
- milestone-reviewSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. 0 are common, 9 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 167 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
If from-agent, to-agent, or artifact are missing, print usage and stop:
- Very specific: line 56
Check that <from-agent>.md and <to-agent>.md exist in .claude/agents/.
- Distinctive: line 57
If either is missing, warn but continue:
- Very specific: line 65
If task_id was provided, check if .tasks/checkpoints/<task_id>.md exists.
- Very specific: line 66
If yes, set context_snapshot to that path.
- Very specific: line 67
If task_id was NOT provided, scan .tasks/checkpoints/ for the most recently modified .md file (excluding .gitkeep) and use it as a …
- Very specific: line 69
If no checkpoint exists, set context_snapshot to null.
- Very specific: line 73
If --criteria flags were provided, use them directly.
- Distinctive: line 75
If no criteria were provided, prompt:
- Distinctive: line 85
Must describe a concrete, testable outcome
- Very specific: line 89
Run git branch --show-current to get the current branch for the session field.
- Distinctive: line 109
When the formal artifact is needed, use this JSON:
- Very specific: line 128
If formal persistence is required, write to .tasks/handoffs/<from-agent>-to-<to-agent>-<task_id>.json.
- Very specific: line 130
If task_id is null, use timestamp: .tasks/handoffs/<from-agent>-to-<to-agent>-<ts-compact>.json.
- Distinctive: line 133
If formal persistence is not required, do not create a file.
- Very specific: line 138
If risk_tier is Medium or High, append to production/traces/decision_ledger.jsonl:
- Distinctive: line 180
When an agent receives a handoff, it must:
- Distinctive: line 182
Read the 3-field summary (and the formal file if one exists)
- Very specific: line 183
Verify each acceptance_criterion against the artifact
- Distinctive: line 184
If all criteria pass → begin work
- Distinctive: line 185
If any criterion fails → do NOT start work.
“Common” is measured: kept by at least 6 in 10 of the 167 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.
Files
Handoff
Generate the lightweight handoff summary (what was built, what's missing,
acceptance criteria) and, when needed, save a formal handoff artifact to
.tasks/handoffs/. The receiver verifies the summary before starting work.
Steps
1. Parse arguments
Extract from $ARGUMENTS:
| Positional | Required | Description |
<from-agent> | yes | Sending agent name (e.g. backend-developer) |
<to-agent> | yes | Receiving agent name (e.g. qa-engineer) |
<artifact> | yes | Primary file or path being handed off |
[task_id] | no | Task ID to link checkpoint — auto-detected from active checkpoint if omitted |
| Flag | Default | Description |
--risk | Medium | Risk tier: Low, Medium, High |
--status | complete | Artifact status: complete, partial, draft |
--criteria | prompt | Acceptance criteria strings (can be multi-value) |
--formal | off | Force writing a durable handoff file even when risk is not High |
If from-agent, to-agent, or artifact are missing, print usage and stop:
Usage: /handoff <from-agent> <to-agent> <artifact> [task_id] \
[--risk Low|Medium|High] \
[--status complete|partial|draft] \
[--criteria "criterion 1" "criterion 2"] \
[--formal]
Example:
/handoff backend-developer qa-engineer src/api/auth.ts 042 \
--risk Medium --criteria "POST /auth returns 201" "Invalid creds → 401"
Schema reference: .claude/docs/handoff-schema.md2. Validate agents
Check that <from-agent>.md and <to-agent>.md exist in .claude/agents/.
If either is missing, warn but continue:
⚠️ Agent "<name>" not found in .claude/agents/ — check spelling.3. Resolve task_id and context_snapshot
- If
task_idwas provided, check if.tasks/checkpoints/<task_id>.mdexists. If yes, setcontext_snapshotto that path. - If
task_idwas NOT provided, scan.tasks/checkpoints/for the most recently modified.mdfile (excluding.gitkeep) and use it as a suggestion. - If no checkpoint exists, set
context_snapshottonull.
4. Collect acceptance criteria
If --criteria flags were provided, use them directly.
If no criteria were provided, prompt:
📋 Enter acceptance criteria for this handoff (one per line, blank line to finish):
>Require at least 1 criterion. Reject vague criteria and ask for a rewrite:
- Contains "works correctly", "looks good", "should be fine", "seems OK" → reject
- Must describe a concrete, testable outcome
5. Get session info
Run git branch --show-current to get the current branch for the session field.
Get current ISO timestamp for ts.
6. Generate handoff summary
Build the 3-field summary per .claude/docs/handoff-schema.md:
## Handoff Summary
- What was built: <artifact> is available with its current behavior/status
- What's missing: remaining gaps, partial work, or "Nothing blocking in current scope"
- Acceptance criteria:
- <crit1>
- <crit2>Also prepare the formal JSON payload only when:
risk_tierisHighand the handoff crosses domains, or- the caller passes
--formal
When the formal artifact is needed, use this JSON:
{
"from": "<from-agent>",
"to": "<to-agent>",
"task_id": "<task_id or null>",
"artifact": "<artifact>",
"artifact_status": "<status>",
"acceptance_criteria": ["<crit1>", "<crit2>"],
"context_snapshot": "<path or null>",
"risk_tier": "<risk>",
"ts": "<ISO>",
"session": "<branch>"
}7. Save formal contract when required
If formal persistence is required, write to
.tasks/handoffs/<from-agent>-to-<to-agent>-<task_id>.json.
If task_id is null, use timestamp:
.tasks/handoffs/<from-agent>-to-<to-agent>-<ts-compact>.json.
If formal persistence is not required, do not create a file. The markdown handoff summary is the default artifact.
8. Ledger entry (Medium / High risk only)
If risk_tier is Medium or High, append to production/traces/decision_ledger.jsonl:
{"ts":"<ISO>","session":"<branch>","agent_id":"<from-agent>","task_id":"<task_id>","request":"Handoff to <to-agent>","reasoning":"Artifact <artifact> is <status> — transferring ownership","choice":"Handoff summary prepared","outcome":"pass","risk_tier":"<risk>","duration_s":0}9. Display and confirm
Print the summary first, then note whether a durable file was written:
🤝 Handoff Summary Generated
━━━━━━━━━━━━━━━━━━━━━━━━━━
From : @<from-agent>
To : @<to-agent>
Task : <task_id>
File : <artifact> [<status>]
Risk : <risk_tier>
What was built:
<one-line built summary>
What's missing:
<one-line gap summary>
Acceptance Criteria:
- <criterion 1>
- <criterion 2>
Context Snapshot: <path or "none">
[if formal]: Saved to .tasks/handoffs/<filename>.json
[if Medium/High]: Ledger entry written.
📨 Ready to hand off. @<to-agent> should verify the summary above
before starting work on <artifact>.Receiver Protocol
When an agent receives a handoff, it must:
- Read the 3-field summary (and the formal file if one exists)
- Verify each
acceptance_criterionagainst the artifact - If all criteria pass → begin work
- If any criterion fails → do NOT start work; reply to sender with:
❌ Handoff rejected — criterion failed:
"<failing criterion>"
Artifact: <artifact>
Action needed: <specific fix required>Quick Examples
# Basic handoff — backend to QA
/handoff backend-developer qa-engineer src/api/auth.ts 042
# With explicit criteria and risk
/handoff frontend-developer lead-programmer src/components/LoginForm.tsx 055 \
--risk Low --status partial \
--criteria "Form renders without errors" "Submit disabled when fields empty"
# Draft handoff for review before final delivery
/handoff data-engineer backend-developer src/db/migrations/004_add_users.sql 031 \
--status draft --risk High --formal \
--criteria "Migration runs without error on empty DB" "Down migration restores schema"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
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.

