execute
Asks workers on the current harness to research read-only, then this chat does the work. Default roster is the current model on every slot. Apply when the user invokes execute or /execute, or wants wo
SKILL.mdskills/execute/SKILL.md
GitHubExecute (with --opinion read-only mode)
Leading words: current first, same-family ok, slug shield, auto-pick stays distinct, labeled takes, this chat does the work.
Parallel workers inspect the codebase read-only and return independent
takes. In execute mode (default), this chat merges the takes with
attribution, writes the code, and verifies on the real artifact. In
opinion mode (--opinion, --read-only, or when the user asks for
takes/opinions without editing), this chat renders the labeled takes and
stops with zero file writes.
User input & flags
$ARGUMENTS
--opinion/--read-only(or user says "just give takes / don't write"): setsmode: opinion. Nobody edits project files.--agents N/--n N: inopinionmode, clamp 2–5 (default 3). Inexecutemode, pick 3 by default or 2 if small/local/mechanical (unless the user explicitly named 2–5 models).- Strip flags from the task text passed to workers.
Operating contract
- Do not auto-start this skill; the user must opt into it.
- Current-for-all is the default. Same family may occupy multiple slots when chosen by the user.
- Auto-pick is the only path that requires distinct model families.
- Never invent a model identifier; use only the live list this harness exposes.
- Slug shield: Never write a raw spawn model identifier in a question prompt, option label, chat roster, worker prompt, or take label. Map family → live-list identifier only inside the spawn tool's
modelargument (inheritor omitmodelfor Current). - Workers are strictly read-only. Discard any worker take that modifies files.
- In
executemode, only this parent chat writes files after rendering takes. Inopinionmode, nobody writes files. - If this host cannot spawn child agents at all, stop and report it. If auto-pick finds fewer than two families, offer Current-for-all or
deep-deliberation.
Runtime state (internal only)
Track mode (execute | opinion), host, agents (2–5), roster, and takes (0/N) silently in the session todo list. Never emit an internal state code block in user-facing chat.
Pipeline
Copy these steps into the todo list verbatim. Skip with skip: <reason>.
- Parse mode (
executevsopinion) andagentscount. Detect the host and read references/hosts.md to build the live spawnable model list. - Resolve roster: models the user named, Current for all, auto-pick, or slot-by-slot assignment. Announce the roster with display names before spawning.
- Spawn one read-only worker per roster slot in parallel with the same prompt from references/worker-prompt.md.
- Render labeled takes (
[Current],[OpenAI], …). Ifmode: opinion, stop here with zero file writes. - (
mode: executeonly;skip: opinion-modeotherwise) Merge takes with[display name]attribution, implement in this chat, and prove behavior on the real artifact.
Roster selection (Native Question UI)
- If the user already named 2–5 available models, use them (same family allowed). One named model (or
current) fills every slot. - If the user asked for auto-pick, select
agentsdistinct families per references/hosts.md, announce display names, and spawn immediately. - Otherwise, invoke the host's native structured question tool (see references/hosts.md —
AskUserQuestion,AskQuestion,question,request_user_input,vscode_askQuestions, orask_user; never print rawprompt:/options:YAML). Ask one single-select question with 4 options:Current model for all workers (Recommended)(id: current)Auto-pick distinct families(id: auto)I'll assign each worker(id: assign)Say this in plain English(id: simplify)
Say this in plain Englishis a meta option: explain Current-for-all vs Auto-pick with display-name examples (never spawn IDs), then re-invoke the question tool. Do not spawn yet.- If they choose
I'll assign each worker, ask one single-select question per slot (up to 4 options per widget; first optionCurrent model (Recommended), remaining options using display names andfam-*IDs from references/hosts.md). - Fall back to a numbered plain-text list only when zero question tools are declared in this session.
Write (mode: execute only)
- Resolve consensus and divergence with
[display name]attribution. - Keep strong minority observations; state why weak claims were rejected.
- Implement directly in this parent chat — never send writes to workers.
- Prove on the real path (or closest executable check;
skip:if unreachable).
Reply contract
Playbook: execute (or Playbook: execute --opinion)
roster: Current, OpenAI, Grok
Followed by the labeled takes, and (in execute mode) what shipped and how it was verified.
Delegate failure
- Retry one transient spawn failure once.
- Never fabricate a missing take.
- Fewer than two successful takes → stop and ask via the native question tool whether to retry or abort.