generate-handoff-document
Original:🇺🇸 English
Translated
Generate a resumable handoff document from an in-progress conversation, review, debugging session, or investigation. Dispatches co-located subagents to extract original instructions and Q&A context, capture evidence-backed insights, optionally validate claims from tracking files, and assemble a cold-start-ready handoff file plus structured working artifacts. Use when the user says "create a handoff doc", "save this for later", "document what we found", "update the resumption file", or wants a fresh agent to resume later without relying on chat history.
3installs
Sourceb-mendoza/agent-skills
Added on
NPX Install
npx skill4agent add b-mendoza/agent-skills generate-handoff-documentTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Generating Handoff Documents
Create a resumable handoff package for an in-progress analytical session. This
orchestrator does three things: think (identify missing inputs and failed
gates), decide (choose the next specialist or targeted rerun), and
dispatch (send extraction, validation, and assembly work to co-located
subagents). The working data lives on disk as structured artifacts; the
orchestrator keeps only verdicts, paths, counts, and unresolved questions in
context.
Inputs
| Input | Required | Example |
|---|---|---|
| Yes | |
| No | |
| No | |
| No | |
If the user omits optional values, infer them from the session when that is
safe. Read when deriving sibling artifact
paths or checking the structured artifact schemas.
./references/data-contracts.mdWorkflow Overview
- writes the instruction/Q&A artifact.
context-extractor - writes the insights artifact.
insight-documenter - optionally writes the claims artifact when tracking files exist.
claim-validator - reads those artifacts and writes the final handoff document.
document-assembler - The orchestrator validates the final document and reruns only the failing stage(s).
Subagent Registry
Read a subagent definition only when you are about to dispatch it.
| Subagent | Path | Purpose |
|---|---|---|
| | Capture the original mandate, instruction amendments, and chronological Q&A history |
| | Extract evidence-backed findings, risks, and recommendations from the session |
| | Verify factual claims from external tracking files against primary sources when available |
| | Assemble the final handoff document from the structured artifacts |
How This Skill Works
- Read when you need the sibling artifact naming rules, JSON schemas, or final-section requirements.
./references/data-contracts.md - Pass only explicit handoffs between stages: source path, target artifact path, subject, and optional tracking files.
- Keep only verdicts, file paths, counts, and actionable warnings from each subagent. The detailed payload stays in the artifact files.
- Treat claims from tracking files as provisional even after validation. The final handoff must preserve that caution for the next agent.
- Use targeted fix cycles. If source extraction is incomplete, rerun the
relevant upstream subagent and the downstream stages that consume it. If the
problem is only document coherence or formatting, rerun only.
document-assembler - Stop and surface the blocker if dispatch is unavailable or if three fix cycles fail to produce a coherent handoff.
Output Contract
All files written by this skill are resumability artifacts. They preserve
workflow state for later continuation; they are not product-code changes.
| Artifact | Produced by | Purpose |
|---|---|---|
| | Final cold-start handoff document |
| | Original instructions, amendments, and Q&A log |
| | Findings with evidence, category, priority, and verification state |
| | Optional claim-validation checklist and summary |
On success, contains five sections:
TARGET_FILEOriginal Instructions & ScopeQ&A LogObservations & InsightsUnverified Claims & Validation ChecklistOpen Questions & Recommended Next Steps
If no tracking files were provided, Section 4 must explicitly say so and tell
the next agent to verify any factual claims independently.
Phase Guide
| Situation | Reference file | Purpose |
|---|---|---|
| Contract or artifact-path questions | | Derive sibling artifact names and confirm the schemas/required sections |
Execution Steps
- Confirm and derive the sibling artifact paths described in
TARGET_FILE../references/data-contracts.md - Dispatch with
context-extractorandCONTEXT_SOURCE.CONTEXT_FILE - Dispatch with
insight-documenterandCONTEXT_SOURCE.INSIGHTS_FILE - If exist, dispatch
TRACKING_FILESwithclaim-validator,TRACKING_FILES, andINSIGHTS_FILE. Otherwise record the claims step as skipped.CLAIMS_FILE - Dispatch with
document-assembler,TARGET_FILE,SUBJECT,CONTEXT_FILE, and optionalINSIGHTS_FILE.CLAIMS_FILE - Validate the written handoff against this checklist:
- every required section exists
- each insight has rationale plus evidence
- the claims section includes either the validation directive or the explicit "no tracking files" note
- open questions are listed or explicitly marked resolved
- a fresh agent could continue without consulting prior chat history
- If a check fails, rerun only the failing stage(s); cap the fix loop at three passes.
- Return the final handoff path plus a concise summary of counts, warnings, and open questions.
Example
<example> Input: - `TARGET_FILE=docs/auth-review-handoff.md` - `SUBJECT=Authentication review` - `TRACKING_FILES=docs/auth-review-notes.md`Derived working artifacts:
docs/auth-review-handoff.context.jsondocs/auth-review-handoff.insights.jsondocs/auth-review-handoff.claims.json
- Dispatch
context-extractor - Subagent returns:
CONTEXT: PASSFile: docs/auth-review-handoff.context.jsonQ&A exchanges: 4 - Dispatch
insight-documenter - Subagent returns:
INSIGHTS: PASSFile: docs/auth-review-handoff.insights.jsonInsights: 6 - Dispatch
claim-validator - Subagent returns:
CLAIMS: WARNFile: docs/auth-review-handoff.claims.jsonClaims checked: 9Unverified: 2 - Dispatch
document-assembler - Subagent returns:
HANDOFF: PASSFile: docs/auth-review-handoff.mdOpen questions: 2 - Report:
"Handoff document written to . The session is resumable from disk; two open questions remain."
docs/auth-review-handoff.md
The orchestrator keeps only those summaries and file paths.
</example>