Small Model Handoff
Turn a finished plan into a narrow execution contract for a model that is less reliable than the planner at task execution, recovery, context handling, or scope control. Reduce its judgment surface; keep unresolved decisions with the planner.
Invocation Policy
Use this skill when the user explicitly invokes it to build the bounded prompt, or when gigio-execute-plan or orchestrate-subagents name-calls it while dispatching work to a weaker executor. Model names, cost preferences, executor recommendations, and discussion or edits to this skill do not invoke it. Do not auto-apply it to a handoff. Do not use it for a peer or high-capability executor that can safely inherit open judgment. Use session-handoff for successor-ready session transfers.
Quick Path
- Resolve every Handoff Gate field from the approved plan, named artifacts, and session grants before requesting more input from the planner.
- If a consequential field remains missing or contradictory, return the specific unresolved list and finish the settled parts of the prompt. Do not dispatch an incomplete packet or invent authority to fill a field.
- Select
change, run, inspect, or an explicitly ordered mixed mode.
- Write one prompt from
assets/execution-prompt.template.md; remove sections that do not apply instead of leaving empty placeholders.
- Resolve every choice the executor cannot handle reliably.
- Tell the executor to continue when preflight matches; the execution loop below belongs in the generated prompt and does not authorize this authoring invocation to run the task.
- Return the copy-ready prompt plus only the assumptions the planner must resolve before use.
Read references/prompt-patterns.md for mode-specific scope patterns, stop reports, and examples.
Handoff Gate
A valid packet answers these without new product, architecture, or recovery judgment:
| Field |
Required content |
| Outcome |
One observable result, artifact, or evidence packet |
| Mode |
change, run, inspect, or an ordered combination |
| Basis |
Approved decision, procedure, reproduction, or named prerequisite |
| Scope |
Exact files, symbols, commands, inputs, sources, and locations |
| Authority |
Permitted writes, side effects, retries, credentials, and external actions |
| Procedure |
Ordered actions and the choices already resolved by the planner |
| Preservation |
Contracts, state, data, formatting, or environment to keep unchanged |
| Executor profile |
Relevant limits in execution, recovery, context, or scope control |
| Evidence |
Expected outputs, exit states, artifacts, diffs, or cited observations |
| Stop conditions |
Mismatches that must return to the planner |
A field may be satisfied by pointing at a durable plan document — the plan file path plus the task ID — instead of restating what it already says. Never paraphrase content that lives in the plan file; the executor reads it at the named path.
“Investigate and handle it” is not a packet. If the executor must discover the procedure, choose the fix, or decide how to recover, planning is unfinished.
Task Modes
| Mode |
Scope contract |
Completion evidence |
change |
Allowed files and symbols, exact edits, permitted generated files |
Diff, changed-file audit, supplied checks |
run |
Exact commands, working directory, inputs, environment assumptions, retries |
Command, exit status, relevant output, artifacts |
inspect |
Named sources and questions, read-only boundary, evidence format |
Cited observations and explicit unknowns |
mixed |
Ordered modes with a separate authority boundary for each phase |
Evidence from every phase and cumulative side effects |
For run, a failed test or check is a result, not permission to diagnose or edit. For inspect, no mutation is allowed unless a later phase grants it explicitly.
Prompt Rules
Lead With the Optimization Target
For changes, open with:
Do not optimize for completing the request as broadly as possible.
Optimize for the smallest correct and verifiable change.
For non-mutating work, replace the second line with:
Optimize for the smallest authorized execution that produces the required evidence.
Then state one outcome. Do not repeat it later.
Make Scope and Authority Mechanical
- For
change, provide exclusive file and symbol allowlists.
- For
run, provide exact commands, working directory, allowed retries, and whether generated artifacts may remain.
- For
inspect, name allowed sources, questions, and the read-only boundary.
- For
mixed, state where each phase begins and whether its authority changes.
Write operational limits, not model stereotypes. Prohibit only relevant failure modes: unplanned edits, extra commands, dependency or configuration changes, test weakening, destructive actions, secret access, or external writes.
Treat the Plan as Fixed Input
Require a preflight consistency check against named evidence and prerequisites. If it matches, continue. Do not ask the executor to redesign, investigate adjacent issues, choose alternatives, or improvise recovery. Unexpected results belong in the report unless a supplied branch or bounded retry covers them.
Use One Short Execution Loop
- Preflight: confirm prerequisites, scope, authority, and current state.
- Execute: perform only the supplied actions.
- Collect evidence: capture the required outputs, artifacts, diffs, or findings.
- Report: show results, side effects, assumptions, deviations, and unknowns.
If a required tool or check is unavailable, report it. Do not install packages, change configuration, access new credentials, or invent infrastructure unless the packet explicitly authorizes that action.
Stop on Authority or Plan Mismatches
Stop before the affected action when:
- a prerequisite or approved basis contradicts current reality;
- completion requires a file, command, source, credential, or side effect outside the stated scope;
- a destructive or external action lacks explicit authority;
- an unexpected mutation or overlapping user change cannot be preserved;
- the supplied procedure has no defined branch for a result requiring judgment.
Name the mismatch, evidence, work already performed, and smallest missing decision or authority expansion.
Output Contract
Return one copy-ready execution prompt containing the outcome, mode, approved basis and procedure, scope, authority, preservation rules, preflight, evidence, stop conditions, and final report fields. Do not execute the task, rank models, add alternative plans, or create a synthetic evaluation.
Reference Files
| File |
Read when |
Content |
references/prompt-patterns.md |
Building or reviewing a bounded handoff |
Packet, mode scopes, stop report, examples, and failure patterns |
assets/execution-prompt.template.md |
Producing the final prompt |
Copy-ready multi-mode execution template |
Gotchas
- Do not call the executor “stupid” or “weak”; state task-relevant limits.
- Do not infer lower capability from model size, speed, or price alone.
- Do not turn a failing test run into an unauthorized bug-fix task.
- Do not treat command completion as success when exit status, evidence, or expected artifacts are missing.
1---2name: small-model-handoff3description: Use only when the user invokes small-model-handoff by name, or when a pack skill (gigio-execute-plan, orchestrate-subagents) name-calls it while dispatching to a weaker executor, to turn an already researched and approved plan into a bounded prompt for an executor less capable than the planner. Covers scoped changes, test, build, and check runs, reproductions, and read-only evidence collection. Requires exact scope, actions, authority, capability assumptions, evidence, and stop rules. NOT for automatic invocation, model/cost/executor recommendations, peer or high-capability executors, discovery, planning, open-ended work, or general session handoffs.4---56# Small Model Handoff78Turn a finished plan into a narrow execution contract for a model that is less reliable than the planner at task execution, recovery, context handling, or scope control. Reduce its judgment surface; keep unresolved decisions with the planner.910## Invocation Policy1112Use this skill when the user explicitly invokes it to build the bounded prompt, or when `gigio-execute-plan` or `orchestrate-subagents` name-calls it while dispatching work to a weaker executor. Model names, cost preferences, executor recommendations, and discussion or edits to this skill do not invoke it. Do not auto-apply it to a handoff. Do not use it for a peer or high-capability executor that can safely inherit open judgment. Use `session-handoff` for successor-ready session transfers.1314## Quick Path15161. Resolve every Handoff Gate field from the approved plan, named artifacts, and session grants before requesting more input from the planner.172. If a consequential field remains missing or contradictory, return the specific unresolved list and finish the settled parts of the prompt. Do not dispatch an incomplete packet or invent authority to fill a field.183. Select `change`, `run`, `inspect`, or an explicitly ordered `mixed` mode.194. Write one prompt from `assets/execution-prompt.template.md`; remove sections that do not apply instead of leaving empty placeholders.205. Resolve every choice the executor cannot handle reliably.216. Tell the executor to continue when preflight matches; the execution loop below belongs in the generated prompt and does not authorize this authoring invocation to run the task.227. Return the copy-ready prompt plus only the assumptions the planner must resolve before use.2324Read `references/prompt-patterns.md` for mode-specific scope patterns, stop reports, and examples.2526## Handoff Gate2728A valid packet answers these without new product, architecture, or recovery judgment:2930| Field | Required content |31| --- | --- |32| Outcome | One observable result, artifact, or evidence packet |33| Mode | `change`, `run`, `inspect`, or an ordered combination |34| Basis | Approved decision, procedure, reproduction, or named prerequisite |35| Scope | Exact files, symbols, commands, inputs, sources, and locations |36| Authority | Permitted writes, side effects, retries, credentials, and external actions |37| Procedure | Ordered actions and the choices already resolved by the planner |38| Preservation | Contracts, state, data, formatting, or environment to keep unchanged |39| Executor profile | Relevant limits in execution, recovery, context, or scope control |40| Evidence | Expected outputs, exit states, artifacts, diffs, or cited observations |41| Stop conditions | Mismatches that must return to the planner |4243A field may be satisfied by pointing at a durable plan document — the plan file path plus the task ID — instead of restating what it already says. Never paraphrase content that lives in the plan file; the executor reads it at the named path.4445“Investigate and handle it” is not a packet. If the executor must discover the procedure, choose the fix, or decide how to recover, planning is unfinished.4647## Task Modes4849| Mode | Scope contract | Completion evidence |50| --- | --- | --- |51| `change` | Allowed files and symbols, exact edits, permitted generated files | Diff, changed-file audit, supplied checks |52| `run` | Exact commands, working directory, inputs, environment assumptions, retries | Command, exit status, relevant output, artifacts |53| `inspect` | Named sources and questions, read-only boundary, evidence format | Cited observations and explicit unknowns |54| `mixed` | Ordered modes with a separate authority boundary for each phase | Evidence from every phase and cumulative side effects |5556For `run`, a failed test or check is a result, not permission to diagnose or edit. For `inspect`, no mutation is allowed unless a later phase grants it explicitly.5758## Prompt Rules5960### Lead With the Optimization Target6162For changes, open with:6364```text65Do not optimize for completing the request as broadly as possible.66Optimize for the smallest correct and verifiable change.67```6869For non-mutating work, replace the second line with:7071```text72Optimize for the smallest authorized execution that produces the required evidence.73```7475Then state one outcome. Do not repeat it later.7677### Make Scope and Authority Mechanical7879- For `change`, provide exclusive file and symbol allowlists.80- For `run`, provide exact commands, working directory, allowed retries, and whether generated artifacts may remain.81- For `inspect`, name allowed sources, questions, and the read-only boundary.82- For `mixed`, state where each phase begins and whether its authority changes.8384Write operational limits, not model stereotypes. Prohibit only relevant failure modes: unplanned edits, extra commands, dependency or configuration changes, test weakening, destructive actions, secret access, or external writes.8586### Treat the Plan as Fixed Input8788Require a preflight consistency check against named evidence and prerequisites. If it matches, continue. Do not ask the executor to redesign, investigate adjacent issues, choose alternatives, or improvise recovery. Unexpected results belong in the report unless a supplied branch or bounded retry covers them.8990### Use One Short Execution Loop91921. Preflight: confirm prerequisites, scope, authority, and current state.932. Execute: perform only the supplied actions.943. Collect evidence: capture the required outputs, artifacts, diffs, or findings.954. Report: show results, side effects, assumptions, deviations, and unknowns.9697If a required tool or check is unavailable, report it. Do not install packages, change configuration, access new credentials, or invent infrastructure unless the packet explicitly authorizes that action.9899### Stop on Authority or Plan Mismatches100101Stop before the affected action when:102103- a prerequisite or approved basis contradicts current reality;104- completion requires a file, command, source, credential, or side effect outside the stated scope;105- a destructive or external action lacks explicit authority;106- an unexpected mutation or overlapping user change cannot be preserved;107- the supplied procedure has no defined branch for a result requiring judgment.108109Name the mismatch, evidence, work already performed, and smallest missing decision or authority expansion.110111## Output Contract112113Return one copy-ready execution prompt containing the outcome, mode, approved basis and procedure, scope, authority, preservation rules, preflight, evidence, stop conditions, and final report fields. Do not execute the task, rank models, add alternative plans, or create a synthetic evaluation.114115## Reference Files116117| File | Read when | Content |118| --- | --- | --- |119| `references/prompt-patterns.md` | Building or reviewing a bounded handoff | Packet, mode scopes, stop report, examples, and failure patterns |120| `assets/execution-prompt.template.md` | Producing the final prompt | Copy-ready multi-mode execution template |121122## Gotchas123124- Do not call the executor “stupid” or “weak”; state task-relevant limits.125- Do not infer lower capability from model size, speed, or price alone.126- Do not turn a failing test run into an unauthorized bug-fix task.127- Do not treat command completion as success when exit status, evidence, or expected artifacts are missing.