一键导入
workflow-implement
Execute all planned tasks — creates per-task git worktrees, spawns implementer and reviewer agents in dependency order, aggregates results.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute all planned tasks — creates per-task git worktrees, spawns implementer and reviewer agents in dependency order, aggregates results.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Abort a workflow — cleans up worktrees and branches, marks the workspace as aborted.
Finalize the workflow — squash commits into one clean commit, remove worktrees, and close the workspace.
Break an approved design into atomic implementation tasks — creates dependency-ordered task specs ready for parallel agent execution.
Review completed implementation — runs final verification across all changes and presents results for user sign-off.
Convert discussion output into a validated design — reads captured requirements and presents architecture for iterative approval.
Kick off a new workflow by discussing requirements — asks clarifying questions, explores trade-offs, and captures decisions in a structured format.
| name | workflow-implement |
| description | Execute all planned tasks — creates per-task git worktrees, spawns implementer and reviewer agents in dependency order, aggregates results. |
Orchestrate the execution of all planned tasks. You are the orchestrator — you NEVER write code, stage files, or commit. You dispatch agents and read their reports.
For each task: create worktree → spawn implementer → spawn reviewer → spawn committer → update STATUS.yaml. That's it. No code, no git add, no git commit, no fixing.
The user invokes this as /workflow-implement {slug}.
$ARGUMENTS is empty, scan .workflow/*/ directories and list available workspaces.workflow/*/ for a folder matching the slug $ARGUMENTSSTATUS.yaml:
plan-complete → fresh start, proceed to step 4implementation → resume mode (see Resumability below)phase: implementationsubagent_type: "task-implementer" / "task-reviewer" / "task-committer" — always use these registered agent typesgit -C {absolute_path} for all git commands — never cdbun --cwd {absolute_path} for all bun commandsBefore constructing agent prompts, read {PROJECT_ROOT}/.claude/skills/workflow-implement/TEMPLATES.md for the exact templates. Fill in all {PLACEHOLDER} values before dispatching.
Track per-task state for resumability:
phase: implementation
branch: work/{type}/{slug}/base
base_worktree: /absolute/path/.workflow/{type}/{slug}/worktrees/base
updated: 2026-02-09T12:00:00Z
current_batch: 1
tasks:
1: { status: completed, commit: abc1234 }
2: { status: implementing, worktree: /abs/path/..., retries: 0 }
3: { status: pending }
Status transitions: pending → implementing → implemented → reviewing → approved|needs_fixes → committing → completed
Update STATUS.yaml at every transition — this enables resume.
Read plan/PLAN.md frontmatter for tasks (array of {id, title, depends_on, blocks, batch, skills}) and batches (execution order).
git branch work/{type}/{slug}/base HEAD
mkdir -p {PROJECT_ROOT}/.workflow/{type}/{slug}/worktrees
git worktree add {PROJECT_ROOT}/.workflow/{type}/{slug}/worktrees/base work/{type}/{slug}/base
cp {PROJECT_ROOT}/.env.local {PROJECT_ROOT}/.workflow/{type}/{slug}/worktrees/base/.env.local
Store absolute paths: BASE_WORKTREE, WORKSPACE, PROJECT_ROOT.
Initialize STATUS.yaml with all tasks as pending and retries: 0.
mkdir -p {WORKSPACE}/impl/task
For each batch (update current_batch in STATUS.yaml):
a. Create per-task worktrees for all ready tasks in this batch:
git -C {BASE_WORKTREE} branch work/{type}/{slug}/task-{N}
git worktree add {WORKSPACE}/worktrees/task-{N} work/{type}/{slug}/task-{N}
cp {PROJECT_ROOT}/.env.local {WORKSPACE}/worktrees/task-{N}/.env.local
b. Spawn implementers — read each task spec, build prompt from TEMPLATES.md, set status to implementing. Spawn parallel tasks in a single message.
c. Read reports — check status: COMPLETED in frontmatter. Update STATUS.yaml to implemented, then reviewing.
d. Spawn reviewers — build prompt from TEMPLATES.md. Spawn parallel reviewers for independent tasks.
e. Handle review verdict:
APPROVED → set status to approved, proceed to commitNEEDS_FIXES → increment retries in STATUS.yaml:
f. Spawn committer — set status to committing. Build prompt from TEMPLATES.md.
g. Post-merge verification — after each committer completes, run on the BASE worktree:
bun --cwd {BASE_WORKTREE} check
If this fails, the merge introduced cross-task type errors. Stop the batch and report to the user with the error output. Do not continue until resolved.
h. Update STATUS.yaml — set task to completed with commit: {hash}, remove worktree key.
bun --cwd {BASE_WORKTREE} check
bun --cwd {BASE_WORKTREE} lint --fix
Create impl/IMPLEMENTATION.md with YAML frontmatter:
slug, total_tasks, completed, failed, all_approvedbranch, base_worktreeverification: { typescript, lint }tasks: array of { id, title, status, commit, review }Markdown body: Files Changed, Issues Found and Fixed, Outstanding Issues.
Show summary. Ask: "Implementation complete. Ready to review with /workflow-review {slug}?"
Update STATUS.yaml: phase: implementation-complete
When STATUS.yaml has phase: implementation:
base_worktree, branch, current_batch, tasksgit -C {BASE_WORKTREE} statuscompleted → skipcommitting → check report for commit field; if present + worktree gone → completed; otherwise re-spawn committerapproved → spawn committerneeds_fixes → check retries count; re-spawn implementer if < 3, else ask userreviewing → re-spawn reviewerimplemented → spawn reviewerimplementing → check if report exists (yes → implemented; no → check worktree exists, recreate if needed, re-spawn implementer)pending → proceed when batch is readycurrent_batch-C for git, --cwd for bun