一键导入
execute
Execute an approved dispatch plan task by task, producing docs/plans/<feature>-report.md. Run after /assign.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute an approved dispatch plan task by task, producing docs/plans/<feature>-report.md. Run after /assign.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Assign agents and skills to a plan's tasks, producing docs/plans/<feature>-dispatch.md. Run after /plan.
Generate a session changelog from git diff. Triggers on 'changelog', 'what changed', 'session summary', 'diff summary'.
Run the full quality pipeline: lint, typecheck, and tests. Triggers on 'check', 'run checks', 'quality check', 'ci check'.
Pre-deployment audit: verify code quality, secrets, dependencies, and build. Triggers on 'deploy check', 'pre-deploy', 'deployment audit', 'ready to deploy'.
Maintain project documentation coverage: audit all components, update specific docs, or check coverage status. Triggers on 'docs audit', 'update docs', 'docs status', 'documentation coverage'.
Configure OpenTelemetry export from Claude Code to a tracing backend (LangSmith, Langfuse, or Jaeger). Triggers on 'enable tracing', 'setup observability', 'configure otel', 'send traces'.
| name | execute |
| description | Execute an approved dispatch plan task by task, producing docs/plans/<feature>-report.md. Run after /assign. |
| version | 0.1.0 |
Execute an approved dispatch plan for Batch Creative Studio.
Read project charter (mandatory first step)
Before any task execution, read the project charter and current state. Do this every run — never rely on memory from a prior session.
Charter files:
CLAUDE.md — architecture rules, approach, agent rosterdocs/agentic-system.md — agent domains, ownership, verification commandsLong-term state (read if the file exists):
docs/state/decisions.md, docs/state/open-questions.md, docs/state/glossary.mdIf CLAUDE.md is missing, stop and suggest running /setup-agents.
Find dispatch files
List files in docs/plans/ matching *-dispatch.md.
/assign first. Stop.Verify approval (two-level gate)
The approval gate is checked on both the dispatch and the plan. Both must be Approved.
a. Read the dispatch file. Check that Status: is Approved. If not, stop and suggest running /assign.
b. Derive the plan path from the dispatch's Plan: field. Read the plan file. Check that the **Status:** line is Approved. If the plan still says Draft (or any non-Approved value), stop and report a gate violation — this means the dispatch was edited manually without going through /assign. Suggest re-running /assign.
Both checks must pass before proceeding. Do not patch either file from here.
Resume mechanism
Scan all tasks in the dispatch file. Find the first task where Status is not Done and not Skipped.
Done or Skipped: skip to step 5 (quality check).This enables resuming across sessions if execution was interrupted.
Execute tasks
Process groups in order. Within each group, process tasks in table order.
Before each group, re-read both the plan file and the dispatch file. Long-running executions span sessions and groups — the plan's ## Risks and ## Out of scope, and the dispatch's ## Notes, must stay fresh in context. Do not rely on what was read at step 0 or for an earlier group.
For each task:
a. Update status — Set the task's Status to In Progress in the dispatch file. Save the file.
b. Log start — Print: Starting task <#>: <task description>
c. Run pre-skills — If the task has pre-skills assigned, follow their procedures inline. Read any required files, check prerequisites.
d. Load agent directives — Read the assigned agent's definition file (.claude/agents/<agent-name>.md). Follow its directives, respect its owns and forbidden boundaries.
e. Perform the work — Execute the task as described in the plan. Stay within the agent's domain.
f. Run verification — Execute the agent's verification commands:
frontend: pnpm exec biome check ., pnpm exec tsc --noEmitbackend: pnpm exec biome check ., pnpm exec tsc --noEmit, pnpm exec vitest runproviders: pnpm exec biome check ., pnpm exec tsc --noEmit, pnpm exec vitest runtesting: pnpm exec vitest run, pnpm exec vitest run --coverage, pnpm exec biome check .docs: git diff --stat docs/components/security-backend: npx semgrep --config p/owasp-top-ten .g. Run post-skills — If the task has post-skills assigned, follow their procedures inline.
h. Fresh-context review (mandatory for implementer tasks) — If the task's assigned agent is an implementer (frontend, backend, providers, testing — not review-only agents like security-backend or docs), invoke the reviewer agent with the task number and the dispatch path. The reviewer reads CLAUDE.md, the plan, the dispatch, and the diff with a fresh context, then writes its findings to docs/reviews/<slug>-task<N>-review.md.
Read the review verdict before continuing:
In Progress again, fix the listed findings, then re-run from step e (Perform the work).Failed, and ask the developer how to proceed (Retry / Skip / Abort) as on a verification failure.Skip this step for review-only or research-only tasks where there is no diff to review.
i. Update status — Set the task's Status to Done in the dispatch file. Save the file.
j. Record files changed — Note all files created, modified, or deleted during this task.
On failure:
Failed in the dispatch file.Skipped, continue to next task.Quality check
After all tasks are complete, run the quality pipeline:
pnpm exec biome check .pnpm exec tsc --noEmitpnpm exec vitest runRecord pass/fail results for each step.
Write report
Derive the slug from the dispatch filename (e.g., my-feature-dispatch.md becomes my-feature).
Write docs/plans/<slug>-report.md using this format:
# Report: <Feature Name>
**Plan:** `<slug>-plan.md`
**Dispatch:** `<slug>-dispatch.md`
**Date:** <YYYY-MM-DD>
**Status:** Complete | Partial | Failed
## Results
| # | Task | Agent | Status | Cycle duration | Timebox met? | Files changed | Notes |
|---|------|-------|--------|----------------|--------------|---------------|-------|
| 1 | ... | ... | Done | <e.g. 2 days> | yes | `file1.ts`, `file2.ts` | ... |
| 2 | ... | ... | Skipped | — | — | — | reason |
## Quality Check
- Lint: pass/fail
- Types: pass/fail/N/A
- Tests: N/N passing
## Summary
<2-3 sentences describing what was accomplished and any issues encountered>
## Follow-up
- <tasks that surfaced during execution but were out of scope>
- <tech debt or improvements identified>
Because the approach is Iterative + Timeboxing, each result row records the cycle duration and whether the task's timebox was met. The feature must be left in a usable (even if incomplete) state — no cycle ends with broken or non-functional code.
Set the report Status based on task outcomes:
DoneDone, some are SkippedFailed (execution was aborted)Confirm
Print the path to the saved report file and summarize:
Approved. A dispatch with an unapproved plan is a gate violation and must not run.owns, never touch forbidden.