Handoff Prompt Generator
Generate the smallest prompt another agent can execute without guessing.
When to Use
- Delegate one bounded task to an agent that shares the current workspace.
- Continue work in a fresh session, after
/clear, or on another platform.
- Transfer work between model families and apply the receiver's preferred
prompt structure.
- Prepare a one-shot worker directive when another orchestrator owns routing,
supervision, lifecycle, and integration.
- Produce separate optimized prompts for multiple target models.
When NOT to Use
- Save a session identifier for later resumption; use
save-session.
- Decompose and execute subtasks from this session; use
orchestrate.
- Supervise live tmux agents continuously; use
tmux-pm. This skill may tune
a worker directive, but does not own routing, panes, merges, or DONE messages.
- Continue in the same conversation when no context boundary exists.
Choose the Handoff Mode
- Shared workspace: receiver can inspect the same repo, files, branches,
worktrees, logs, and artifacts. Prefer paths over pasted content.
- Fresh context: receiver starts cold or after a reset. Include enough
verified state to reconstruct the work without the prior transcript.
Preserve Target Identity and Authority
Resolve the receiver in this order:
- Exact model, account, harness, and effort supplied by the user or caller.
- Exact current model/harness when building a same-session-family restart and
that identity is known.
- Model family supplied by the user or caller.
- Vendor-neutral prompt when neither model nor family is known.
Never silently change a caller-supplied model, account, effort, permission
mode, or security lane. Model references tune prompt shape; they do not reroute
runtime settings. Put unresolved identity in a placeholder instead of guessing.
Read One Vendor Reference
Read only the reference matching the receiving family:
| Family |
Reference |
| Anthropic Claude |
references/anthropic.md |
| OpenAI GPT / Codex |
references/openai.md |
| Google Gemini |
references/google.md |
| xAI Grok / Grok Build |
references/xai.md |
Freshness rule
Verify official vendor documentation before drafting when any condition holds:
- the user asks for the latest, current, newest, best, or recommended model;
- the target version is absent from the matching reference;
- the reference snapshot is more than 30 days old;
- a sibling skill or caller supplies a newer explicit route;
- model availability, IDs, effort levels, or prompting behavior conflict.
Use primary vendor sources. Update the reference snapshot only after verifying
the facts. If live verification is unavailable, preserve the caller's route and
label any model-specific advice as potentially stale.
Gather Execution-Critical Context
Collect only facts that change the receiver's next action:
- objective and why the outcome matters;
- observable success criteria and completion bar;
- current verified state, baseline, blockers, and open questions;
- files, branches, worktrees, commands, URLs, logs, and artifacts;
- ownership boundaries and areas not to touch;
- authorization, side-effect, and stop boundaries;
- verification commands and expected results;
- output location, report schema, and coordination contract.
Do not paste large logs or history when the receiver can read the artifact.
Distinguish verified facts from assumptions and stale handoff claims.
Build the Base Handoff
Start with a minimal execution contract. Apply only the model-specific changes
from the selected reference; do not blend guidance from other families.
Shared-Workspace Handoff
Target: [exact model/account/harness/effort, or known family]
Handoff type: shared workspace
Objective
[One concrete outcome and why it matters]
Success criteria
- [Observable completion condition]
- [Verification condition]
Verified context
- [Current state and relevant facts]
Inputs
- [Paths, branch/worktree, logs, docs, prior outputs]
Ownership and constraints
- Modify: [owned paths]
- Do not touch: [excluded paths]
- Authorization/stop rules: [state-changing or scope boundaries]
Verification
- [Commands or evidence checks]
- [Expected baseline/result]
Output contract
- [Deliverable location or exact response shape]
- [How to report blockers, uncertainty, and incomplete checks]
Coordination
- [Relationship to parallel work and notification contract]
Fresh-Context Handoff
Target: [exact model/harness/effort when known; otherwise family]
Handoff type: fresh context
Project and objective
- Project: [name and one-sentence purpose]
- Outcome: [single concrete outcome and why it matters]
- Start by reading: [entry points]
Verified current state
- Repo/worktree/branch: [paths and refs]
- Completed: [verified work]
- Remaining: [work still required]
- Baseline/blockers: [known failures, risks, assumptions]
Task contract
- Success criteria: [observable completion bar]
- Scope: [owned paths or subsystem]
- Do not change: [explicit exclusions]
- Authorization/stop rules: [side-effect and scope boundaries]
Verification
- Already run: [commands and results]
- Run next: [commands and expected result]
Output contract
- [Deliverable shape and location]
- [How to report mismatches, blockers, TODOs, and uncertainty]
Use [TODO: exact path] rather than inventing repository facts.
Apply Model-Specific Tuning
After the base contract exists:
- preserve the selected model and runtime settings exactly;
- restructure to the vendor reference's Good shape when it differs;
- add only guidance that changes behavior for this task and target model;
- keep API-only controls outside plain chat prompts unless the handoff is for
an API harness configuration;
- preserve the orchestrator's transport envelope. For example, a tmux worker's
worktree setup, commit policy, PM target, and exact DONE line remain intact.
Do not assume every frontier model wants the same ordering. Gemini benefits
from task and critical restrictions at the end; Claude often benefits from XML
separation; GPT‑5.6 favors a lean outcome/evidence/completion contract; Grok
Build benefits from precise paths while loading durable project rules itself.
Hold the Quality Bar
- Keep a worker task atomic unless the chosen model was explicitly routed for
long-horizon orchestration.
- Define what done means and what evidence supports it.
- Name files and commands whenever known.
- Preserve exact values, scope words, account boundaries, and stop rules.
- Ask for findings first on review tasks.
- Define source boundaries, freshness, and citations for research.
- Require the receiver to report failed or skipped verification honestly.
- Do not ask for private chain-of-thought; request conclusions, evidence,
assumptions, checks, and concise reasoning summaries instead.
Return Format
When asked for a handoff prompt:
- Return the ready-to-send prompt in one fenced block.
- List unresolved assumptions or placeholders after the block.
- Return separate prompts when multiple target models need different tuning.
1---2name: handoff3description: Generate execution-ready, model-specific prompts for handing work to a different LLM agent or fresh session. Use for shared-workspace delegation, cold-start continuation, cross-model transfer, one-shot worker directives, or requests such as "create a handoff prompt", "delegate this", "hand this off", and "prepare context for another agent". Supports current Anthropic Claude, OpenAI GPT/Codex, Google Gemini, and xAI Grok families.4---5
6# Handoff Prompt Generator
7
8Generate the smallest prompt another agent can execute without guessing.
9
10## When to Use
11
12- Delegate one bounded task to an agent that shares the current workspace.
13- Continue work in a fresh session, after `/clear`, or on another platform.
14- Transfer work between model families and apply the receiver's preferred
15 prompt structure.
16- Prepare a one-shot worker directive when another orchestrator owns routing,
17 supervision, lifecycle, and integration.
18- Produce separate optimized prompts for multiple target models.
19
20## When NOT to Use
21
22- Save a session identifier for later resumption; use `save-session`.
23- Decompose and execute subtasks from this session; use `orchestrate`.
24- Supervise live tmux agents continuously; use `tmux-pm`. This skill may tune
25 a worker directive, but does not own routing, panes, merges, or DONE messages.
26- Continue in the same conversation when no context boundary exists.
27
28## Choose the Handoff Mode
29
30- **Shared workspace:** receiver can inspect the same repo, files, branches,
31 worktrees, logs, and artifacts. Prefer paths over pasted content.
32- **Fresh context:** receiver starts cold or after a reset. Include enough
33 verified state to reconstruct the work without the prior transcript.
34
35## Preserve Target Identity and Authority
36
37Resolve the receiver in this order:
38
391. Exact model, account, harness, and effort supplied by the user or caller.
402. Exact current model/harness when building a same-session-family restart and
41 that identity is known.
423. Model family supplied by the user or caller.
434. Vendor-neutral prompt when neither model nor family is known.
44
45Never silently change a caller-supplied model, account, effort, permission
46mode, or security lane. Model references tune prompt shape; they do not reroute
47runtime settings. Put unresolved identity in a placeholder instead of guessing.
48
49## Read One Vendor Reference
50
51Read only the reference matching the receiving family:
52
53| Family | Reference |
54| --- | --- |
55| Anthropic Claude | [references/anthropic.md](references/anthropic.md) |
56| OpenAI GPT / Codex | [references/openai.md](references/openai.md) |
57| Google Gemini | [references/google.md](references/google.md) |
58| xAI Grok / Grok Build | [references/xai.md](references/xai.md) |
59
60### Freshness rule
61
62Verify official vendor documentation before drafting when any condition holds:
63
64- the user asks for the latest, current, newest, best, or recommended model;
65- the target version is absent from the matching reference;
66- the reference snapshot is more than 30 days old;
67- a sibling skill or caller supplies a newer explicit route;
68- model availability, IDs, effort levels, or prompting behavior conflict.
69
70Use primary vendor sources. Update the reference snapshot only after verifying
71the facts. If live verification is unavailable, preserve the caller's route and
72label any model-specific advice as potentially stale.
73
74## Gather Execution-Critical Context
75
76Collect only facts that change the receiver's next action:
77
78- objective and why the outcome matters;
79- observable success criteria and completion bar;
80- current verified state, baseline, blockers, and open questions;
81- files, branches, worktrees, commands, URLs, logs, and artifacts;
82- ownership boundaries and areas not to touch;
83- authorization, side-effect, and stop boundaries;
84- verification commands and expected results;
85- output location, report schema, and coordination contract.
86
87Do not paste large logs or history when the receiver can read the artifact.
88Distinguish verified facts from assumptions and stale handoff claims.
89
90## Build the Base Handoff
91
92Start with a minimal execution contract. Apply only the model-specific changes
93from the selected reference; do not blend guidance from other families.
94
95### Shared-Workspace Handoff
96
97```text
98Target: [exact model/account/harness/effort, or known family]
99Handoff type: shared workspace
100
101Objective
102[One concrete outcome and why it matters]
103
104Success criteria
105- [Observable completion condition]
106- [Verification condition]
107
108Verified context
109- [Current state and relevant facts]
110
111Inputs
112- [Paths, branch/worktree, logs, docs, prior outputs]
113
114Ownership and constraints
115- Modify: [owned paths]
116- Do not touch: [excluded paths]
117- Authorization/stop rules: [state-changing or scope boundaries]
118
119Verification
120- [Commands or evidence checks]
121- [Expected baseline/result]
122
123Output contract
124- [Deliverable location or exact response shape]
125- [How to report blockers, uncertainty, and incomplete checks]
126
127Coordination
128- [Relationship to parallel work and notification contract]
129```
130
131### Fresh-Context Handoff
132
133```text
134Target: [exact model/harness/effort when known; otherwise family]
135Handoff type: fresh context
136
137Project and objective
138- Project: [name and one-sentence purpose]
139- Outcome: [single concrete outcome and why it matters]
140- Start by reading: [entry points]
141
142Verified current state
143- Repo/worktree/branch: [paths and refs]
144- Completed: [verified work]
145- Remaining: [work still required]
146- Baseline/blockers: [known failures, risks, assumptions]
147
148Task contract
149- Success criteria: [observable completion bar]
150- Scope: [owned paths or subsystem]
151- Do not change: [explicit exclusions]
152- Authorization/stop rules: [side-effect and scope boundaries]
153
154Verification
155- Already run: [commands and results]
156- Run next: [commands and expected result]
157
158Output contract
159- [Deliverable shape and location]
160- [How to report mismatches, blockers, TODOs, and uncertainty]
161```
162
163Use `[TODO: exact path]` rather than inventing repository facts.
164
165## Apply Model-Specific Tuning
166
167After the base contract exists:
168
169- preserve the selected model and runtime settings exactly;
170- restructure to the vendor reference's **Good shape** when it differs;
171- add only guidance that changes behavior for this task and target model;
172- keep API-only controls outside plain chat prompts unless the handoff is for
173 an API harness configuration;
174- preserve the orchestrator's transport envelope. For example, a tmux worker's
175 worktree setup, commit policy, PM target, and exact DONE line remain intact.
176
177Do not assume every frontier model wants the same ordering. Gemini benefits
178from task and critical restrictions at the end; Claude often benefits from XML
179separation; GPT‑5.6 favors a lean outcome/evidence/completion contract; Grok
180Build benefits from precise paths while loading durable project rules itself.
181
182## Hold the Quality Bar
183
184- Keep a worker task atomic unless the chosen model was explicitly routed for
185 long-horizon orchestration.
186- Define what done means and what evidence supports it.
187- Name files and commands whenever known.
188- Preserve exact values, scope words, account boundaries, and stop rules.
189- Ask for findings first on review tasks.
190- Define source boundaries, freshness, and citations for research.
191- Require the receiver to report failed or skipped verification honestly.
192- Do not ask for private chain-of-thought; request conclusions, evidence,
193 assumptions, checks, and concise reasoning summaries instead.
194
195## Return Format
196
197When asked for a handoff prompt:
198
1991. Return the ready-to-send prompt in one fenced block.
2002. List unresolved assumptions or placeholders after the block.
2013. Return separate prompts when multiple target models need different tuning.