Handoff
Create or execute a context-complete cross-domain plan. This skill owns portable planning and coordinated execution; essential:handover instead persists the current coding session in continuation files.
Boundaries
- Use for: writing a plan another agent can execute without any of this session's context, and orchestrating a multi-domain plan's execution while retaining decision ownership.
- Do not use for: persisting a coding session for later continuation (
essential:handover), or doing the planned work inline — execution is delegated, bar a step you would finish in a handful of tool calls.
Inputs
- Required: the work to plan, or an existing plan to execute.
- Optional: a deterministic scripted-execution capability for multi-phase execution;
coding:* skills when available — confirm availability before routing to one, otherwise name the equivalent action or files without invoking it.
- Required evidence for a persisted plan: current repository root, active branch, base and HEAD commit SHAs, worktree status, relevant tool versions, exact command lines already run with outcomes, the
capability_id of each actor whose run produced recorded evidence (Essential's truth.md), and absolute paths to every source artifact the next executor must use.
Before creating or materially rewriting a project artifact, read the absolute state.md path injected by Essential. If unavailable, stop artifact writes and report the missing contract. Resolve the active work directory from that contract.
Workflow
- Resolve material uncertainty. Separate user-stated intent, observed evidence, inferences, accepted assumptions, and unresolved questions. Ask only questions whose answers change scope, architecture, acceptance criteria, sequencing, or another material decision; give a recommended answer and reason. Remaining uncertainty must be low-impact and reversible, explicitly deferred with an owner and decision deadline, or marked blocking.
- Write the plan as a zero-context handoff. Follow Making plans, then specialize its required sections as follows:
- Goal — make the improvement, beneficiaries, outcome, and acceptance evidence self-contained so the user can copy the block verbatim to initiate the work.
- Requirements — preserve every acceptance criterion and operating constraint the next agent must satisfy.
- Boundary — name authorized systems, mutations, and validation limits.
- Out of Scope — give each excluded item its reason and disposition so the next agent does not reintroduce it.
- Tasks — derive the shared presentation from the complete registry and last approved snapshot; preserve future owners, delivery settings, and retained history so the next executor can reconcile assignments.
- Direction — include task-specific skills and an ordered implementation route with exact files, reasons, per-task acceptance, and rollback/stop conditions. When deterministic scripted execution is appropriate, embed a complete plain-JavaScript script or an exact durable script path with its SHA-256 checksum and invocation arguments. It must run as-is: no placeholders or hidden context, deterministic inputs, explicit agent types, and validation against scripted-execution.md. Otherwise include an equivalent sequential command plan.
- Context — retain the direction's current-state, related-decision, and recent-work navigation, then add these handoff-specific subsections:
- Baseline — exact repository root, active branch, base SHA, HEAD SHA, dirty-status summary, environment constraints, and every test, coverage, lint, build, or inspection command already run, with timestamps or run order, exit status, and concise result.
- Immutable Inputs — exact absolute and repo-relative paths, filenames, artifact IDs, URLs, issue/PR IDs, data snapshots, and commit SHAs that define the work. Include file checksums when a referenced file lives outside the repository or may change independently.
- Decision Detail — user-stated intent, observed evidence, unresolved questions, owners, deadlines, and pivot evidence. Expand assumptions and known issues in their shared numbered lists, preserving verification and corrective task mappings.
- Execution Environment and Tooling — copy-pasteable setup, installation, generation, test, coverage, lint, format, preview, and verification commands, each with its working directory, required environment, and pass/fail signal. Write so an execution agent never has to rediscover basics. Avoid pronouns like "this", "that", "above", or "the current task" unless the noun is named in the same sentence. Prefer absolute paths plus repo-relative paths for handoff-critical files. When the plan must persist, write it to a lowercase
proposals/<plan-slug>.md child with status open; the main agent reconciles the lazy proposals.md overview. Update the child to accepted only after user approval.
- Execute as orchestrator (when execution is requested). Run a multi-phase plan through deterministic scripted execution — one phase per stage, fanning out to subagents where a phase allows — instead of doing the work inline. Act as the orchestrator and decision maker only: route each phase to the right agent with complete context, synthesize the results, and make the calls. Delegate reading, commands, tests, and assigned production-source or test-file edits to subagents, so this session keeps its context for the decisions. Subagents return proposed root
README.md, docs/**, <state-root>/**, and external-specification deltas; the main agent alone writes those systems. The one exception is a step you would finish in a handful of tool calls, where dispatching costs more than it isolates. To pause a coding session rather than hand a plan off, use essential:handover. Compose each phase's first task handover from delegate.md, placing the approved plan and phase inputs in its extensible Context.
- Run the verification below; when a check fails, fix the cause and re-run that check. Repeat until every check passes or a concrete blocker remains, then report the blocker instead of looping.
Verification
- The plan passes the shared plan-direction verification, and its Goal block stands alone when pasted into a fresh session.
- Context includes a Baseline subsection with exact paths, branch, base/HEAD SHAs, dirty status, commands, outcomes, and relevant output.
- A reader without this session's context could execute the plan — no step depends on unstated knowledge or rediscovery of paths, SHAs, filenames, commands, tools, or source artifacts.
- Direction embeds a complete scripted-execution script, or names the durable script path, checksum, and args; if parallel execution is not used, it embeds the concrete sequential execution commands.
- Every residual unknown is accepted and reversible, explicitly deferred with an owner and deadline, or blocking; the plan names evidence that requires a pivot.
- When executed: every phase was delegated with complete context — bar any step finished inline under the handful-of-tool-calls exception — and each phase's results were checked against the plan's success criteria before the next phase started.
Completion
Report the plan's location and its Goal block, the decisions made while planning, and — when executed — each phase's outcome and any open questions or deviations from the plan. A blocked execution names the phase, what was attempted, and what decision or input is needed to continue. Return explicit final paths generated or materially rewritten as generated_files; follow output-manifest.md for the manifest and writer-owned work-Markdown size obligations.