원클릭으로
wz-executor
Orchestrator entry point — gate prerequisites, set interaction mode, delegate to the execute workflow.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Orchestrator entry point — gate prerequisites, set interaction mode, delegate to the execute workflow.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use before implementation work to turn operator briefings into an approved design with explicit trade-offs.
Run the clarification pipeline — research, clarify scope, brainstorm design, generate task specs and execution plan. Pauses for user approval between phases.
How to use Claude Code CLI programmatically for reviews, automation, and non-interactive operations within Wazir pipelines.
How to use Codex CLI programmatically for reviews, execution, and sandbox operations within Wazir pipelines.
Measure pipeline compliance for a completed run — checks phase execution, artifact production, gate evidence, hook enforcement, and publishes per-step and aggregate compliance scores.
Use when behavior is wrong or verification fails. Follow an observe-hypothesize-test-fix loop instead of guesswork.
| name | wz:executor |
| description | Orchestrator entry point — gate prerequisites, set interaction mode, delegate to the execute workflow. |
You tend to skip pipeline steps when context gets long. Fight that habit right from the start. Check .wazir/runs/latest/phases/ right now and follow what it says. What does your checklist tell you to do first?
The execute phase MUST start in a fresh session. The clarify phase produces a handover artifact; the execute session consumes it. Do NOT reopen a clarify session to continue into execution — that reintroduces context rot accumulated during research, clarification, specification, design, and planning. If this skill is invoked in a session that ran clarify phases, STOP and instruct the user to start a new session with the handover artifact.
When multi-model mode is enabled, the orchestrator uses Opus for dispatch decisions. Subagent model selection is handled by the Composer.
Before proceeding, verify these artifacts exist. Check each file. If ANY file is missing, STOP immediately and report:
Cannot start Executor phase: missing prerequisite artifacts.
Missing:
- [list missing files]
Run
/wazir:clarifierto produce the missing artifacts.
Required artifacts:
.wazir/runs/latest/clarified/clarification.md.wazir/runs/latest/clarified/spec-hardened.md.wazir/runs/latest/clarified/design.md.wazir/runs/latest/clarified/execution-plan.mdThis is a hard gate. Do NOT proceed without all artifacts. Do NOT rationalize that the input is "clear enough" to skip phases. The existence of detailed input does NOT replace the pipeline's clarification, specification, design, and planning phases.
Standalone mode exception: If .wazir/runs/latest/ does not exist at all, operate in standalone mode (skip this check).
.wazir/runs/latest/clarified/execution-plan.md.depth from run-config.yaml. Read .wazir/state/config.json for multi_tool settings.Run these checks before implementing:
wazir validate manifest — confirm manifest schema is validwazir validate hooks — confirm hook contracts are intactwazir validate branches — confirm current branch follows git-flow naming (feat/, hotfix/, release/*, etc.)If any fails, surface the failure and do NOT proceed until resolved.
Read interaction_mode from run-config at the start of execution:
auto: Dispatch all subtasks without user checkpoints. On escalation (FAILED after Level 2, BLOCKED), write reason to .wazir/runs/<id>/escalations/ and STOP (do not proceed without user).guided: Show per-subtask completion summaries (subtask ID, status, concerns). Ask user on escalation.interactive: Before dispatching each subtask, show the subtask spec summary and ask: "About to dispatch [subtask] — sound right?" Show subagent outputs between steps.Follow workflows/execute.md for orchestration. The workflow describes the subtask loop, status routing, worktree management, and failure handling. The skill's job is prerequisites + mode awareness + delegation.
Pause and escalate to user when:
When escalating, present: subtask ID, status, what was attempted, evidence.
Throughout the executor phase, produce reasoning at two layers:
Conversation (Layer 1): Before each subtask dispatch, state which subtask and why (dependency order). After each subtask completes, state the status and routing decision.
Look at your recent actions. Did each one follow from a checklist item, or are you improvising? Improvisation means drift. Go back to .wazir/runs/latest/phases/ and realign. Where did you go off-script?
File (Layer 2): Write .wazir/runs/<id>/reasoning/phase-executor-reasoning.md with structured entries per orchestration decision:
When all subtasks are complete (or abandoned with user approval):
Run all three validators before producing the handover. If ANY fails, fix before proceeding:
wazir validate branches — branch name must match git-flow patternwazir validate commits — all commits since base must follow conventional commit format (auto-detects base per git-flow)wazir validate changelog --require-entries --base $(git merge-base HEAD develop || git merge-base HEAD main) — CHANGELOG.md must have NEW [Unreleased] entries since branch pointThis is a hard gate. Do NOT produce the handover or declare phase complete with validation failures.
After changelog validation passes, invoke wz:humanize on the CHANGELOG.md [Unreleased] entries (domain: code). Fix any high/medium findings. CHANGELOG entries are permanent public-facing prose.
Write the handover to .wazir/runs/<run-id>/execute-to-complete-handover.md:
# Execute-to-Complete Handover
## Run
- **Run ID:** <run-id>
- **Branch:** <branch-name>
- **Interaction mode:** <auto | guided | interactive>
- **Depth:** <quick | standard | deep>
## Execution Summary
- **Subtasks:** [completed]/[total]
- **Residuals:** [count] (CRITICAL: [count], non-critical: [count])
- **Concerns accumulated:** [count]
- **Subtasks abandoned:** [count] (if any, with reasons)
## Artifacts
- Clarified artifacts: `.wazir/runs/latest/clarified/`
- Verification proof per subtask: `.wazir/runs/latest/artifacts/`
- Residuals: `.wazir/runs/latest/residuals/` (if any)
- Concerns: accumulated in subtask status files
## Resume Instruction
Start a fresh session (new conversation). Run `/reviewer --mode final`.
The reviewer's prerequisite gate will find all artifacts.
Do NOT reopen this session — context rot from execution degrades review quality.
This is a hard stop. Do NOT continue to the completion phase in this session. The completion phase (final review) MUST start in a fresh session to prevent context rot accumulated during subtask dispatching, status routing, and fix loops from degrading review quality. This applies to ALL interaction modes.
Output to the user:
Executor phase complete. Handover saved to
.wazir/runs/<run-id>/execute-to-complete-handover.md.
- Subtasks: [completed]/[total]
- Residuals: [count] (CRITICAL: [count], non-critical: [count])
- Concerns accumulated: [count]
Session boundary: The completion phase (final review) must start in a fresh session.
Then ask via AskUserQuestion:
/reviewer --mode final" — compacts conversation history, then starts review in this (now-compacted) session. Acceptable compromise./reviewer --mode final.Wait for selection. If option 3, warn: "Continuing without a session boundary risks context rot. Execution context may bias review — the reviewer may miss drift it participated in. Proceeding anyway."
Almost done? Then you should be able to list every phase checklist item and show exactly where you completed it with real evidence. If you can't do that, you're not actually done. Can you list them all with proof?