From spec-dev
Executes implementation plans task-by-task in an isolated worktree with TDD, per-task commits, spec self-checks, then orchestrates adversarial code review and matrix-driven acceptance. Not for improvised changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/spec-dev:executing-plansThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Language Protocol / 语言协议**: Respond in the user's conversation language — an explicit user instruction (including the platform `language` setting) takes precedence, then the language of the user's recent messages; default to English when neither indicates a language. All deliverables written to the repo (specs, plans, reports, notes) follow the conversation language at creation; incremental...
Language Protocol / 语言协议: Respond in the user's conversation language — an explicit user instruction (including the platform
languagesetting) takes precedence, then the language of the user's recent messages; default to English when neither indicates a language. All deliverables written to the repo (specs, plans, reports, notes) follow the conversation language at creation; incremental edits keep the artifact's existing language. Fixed-wording prompts in this skill are semantic templates — express their meaning in the conversation language, don't quote them verbatim. 语言协议:以对话语言输出——用户显式指定(含平台language设置)优先,其次跟随用户近期消息语言;均无法判定时默认英语。落盘产物以创建时对话语言为准,增量修改保持产物既有语言。本 skill 中的固定话术是语义模板,用对话语言表达其意,不逐字照搬。
载入计划 → 隔离工作区 → 主线程逐任务执行 → 收尾多维审查 → 合并与总结。
核心范式:主线程干活、子代理不写码——实现代码由主线程编写(保证上下文连续与契约一致),子代理只承担审查、探索与复跑验证等分析性任务,不产出实现代码。
开始时声明:「我正在使用 executing-plans skill 执行实施计划。」
必须为以下每一项创建任务(Claude Code 用 TaskCreate,Codex 用 update_plan):
.spec-dev/YYYY-MM-DD-<feature>/plan/<feature>-plan.md)与同特性目录的 spec/<feature>-design.md;产物仍在历史位置 docs/YYYY-MM-DD-<feature>/ 时,默认先自动迁移到 .spec-dev/ 再执行(有 scripts/spec-dev/migrate-to-spec-dev.mjs 则运行之,否则 git mv 等效迁移并重写文件内路径引用),迁移单独提交T{n}: 任务名 命名),进入阶段 2执行计划的任务 0(建立隔离工作区)——完整纪律遵循 using-git-worktrees skill(已隔离检测、原生工具优先、git 降级、基线测试验证),分支名对齐计划(如 plan/2026-07-03-export-report)。计划缺任务 0(旧版计划)时,直接调用 using-git-worktrees 补齐同等效果。
降级:非 git 仓库、受保护分支未授权、沙箱无写权限 → 原地实施并向用户注明"未隔离"及原因。
任务 0 已在阶段 2 完成,计划的验收任务(如有)留待阶段 4、最终任务(合并与清理)留待阶段 6——两者都不参与本阶段连续执行;对其余每个任务(任务 1 起),按序:
标记 in_progress,严格按计划步骤执行——计划已是 bite-sized 步骤,照做;TDD 循环遵循 test-driven-development skill(红→绿→重构,每步运行验证)
commit:任务完成即提交(message 对齐编号:feat(T3): xxx);非 git 仓库跳过并注明
spec 自检(主线程,不派子代理):对照本任务在计划中的验收标准重读本任务 diff,只查两件收尾审查不覆盖的事:
发现即就地修正并补提交(或 amend)。禁止在此猎 bug、查风格、查规范——那是阶段 4 的活,重复只造噪音与虚假安全感
勾选计划复选框、标记任务 completed,进入下一任务
连续执行:任务之间不停下来向用户汇报或请示——用户已经确认过计划。仅三种情况停下:无法自行解除的 BLOCKED、真正阻断前进的歧义、全部任务完成。
偏差处理(三档):
全部任务完成后,编排独立代码审查。完整编排(维度定义、伪代码、契约校验、Codex 降级)见 review-orchestration.md,要点:
git diff <base>...HEAD)code-reviewer 子代理node ${CLAUDE_PLUGIN_ROOT}/scripts/validate-output.mjs review-findings <file>,失败退回补全一次,再失败主线程接管该维度acceptance/);旧版计划无矩阵时,变更涉及 UI 即按其验收点触发。验收结论并入审查报告交付对账初判(主线程):依据 completeness critic 的覆盖缺口、任务完成记录与验收结果,逐条 Requirement 生成初判;实施中经用户确认补入的计划外行为记 ADDED-IN-FLIGHT(spec 已随偏差处理修订,此处只记账)。
例外驱动的停顿门(审查与对账共用一道门):
用户确认后在 worktree 内修复(修复本身同样走 TDD:先写复现测试),修复后受影响维度复审一次;裁决结果即对账定稿。
acceptance/acceptance-report.md 的「Requirement Reconciliation」节——全绿一行带过,有偏差才展开差量表;acceptance-qa 未触发的特性按模板新建仅含头部与该节的轻量报告(一次交付一份时点记录)。DEFERRED / DROPPED 同时在 spec 原位标注(形制见 spec 模板行为规范节),DELIVERED 不标.spec-dev/roadmaps/ 下某 active roadmap 引用本特性目录):把对应子项目行状态置 delivered 并提交;全部子项目已 delivered/dropped 时把该 roadmap frontmatter 的 status 翻 done。目录不存在或查无引用 → 跳过,零动作X DELIVERED / Y DEFERRED / Z DROPPED / N ADDED-IN-FLIGHT)<project> 还有 N 个子项目待做,下一个是 <子项目>,现在开始它的需求设计吗?」——用户同意后走 requirement-analysis(其 spec 已存在时直接 writing-plans);不同意则保持 roadmap 现状,随时可续npx claudepluginhub flamemida/spec-devExecutes approved implementation tasks from a plan.json file created by spec-plan. Tracks progress via beads or harness todos, enforces TDD, and reports between batches. Invoke when ready to start coding from an approved plan.
Executes a written implementation plan with review checkpoints. Loads, critically reviews, executes tasks step by step, and reports completion. Includes validation and escalation for blockers.
Executes written implementation plans in small batches with review checkpoints for structured progress tracking. Activate when a plan or spec is ready to implement.