spec-execute
Use when executing an implementation plan step by step with enforced compilation verification and status sync - triggers on /spec:execute, 执行计划, 实施, 开始改代码
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when executing an implementation plan step by step with enforced compilation verification and status sync - triggers on /spec:execute, 执行计划, 实施, 开始改代码
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when converting a spec into an actionable implementation plan with file manifests, phased checkbox steps, and code snippets - triggers on /spec:architect, 写 plan, 实施计划, 架构计划
Use when creating a feature specification from requirements - triggers on /spec:define, 写 spec, 定义规范, 功能说明, or when needing deep code research before defining what to build
Use when auditing and cleaning legacy code before new feature development, with mandatory user confirmation before changes - triggers on /spec:refactor, 重构, 清理代码, 代码审计
Use when verifying completed features against their spec through visual audit, boundary testing, and regression checks - triggers on /spec:verify, 验证, 检查, 验收
| name | spec:execute |
| description | Use when executing an implementation plan step by step with enforced compilation verification and status sync - triggers on /spec:execute, 执行计划, 实施, 开始改代码 |
按照 plan.md 中的复选框顺序逐步执行代码修改,强制编译验证,完成后同步状态。
前置: 必须先有 specs/[feature_name]/plan.md(由 /spec:architect 生成)
| # | 规则 | 说明 |
|---|---|---|
| 1 | 逐步执行 | 按 plan.md 中复选框的顺序逐个执行,不能跳步 |
| 2 | 编译必过 | 所有代码修改完成后,必须执行 npm run build 且编译通过 |
| 3 | 状态同步 | 每完成一个步骤,立即将 plan.md 中对应项标记为 - [x] |
| 4 | 失败即停 | 编译失败或执行出错,立即修复并重试,不能跳过继续。最多重试 3 次,超过则输出错误摘要请求用户介入 |
| 5 | 禁止偏离 | 严禁执行 plan.md 中没有列出的改动。发现遗漏应报告用户,不能自行补充 |
specs/[feature_name]/plan.md/spec:architect- [ ]npm run buildnpm run build- [x]- [ ] 都已变为 - [x]在回复末尾必须输出以下汇报表格:
| 阶段 | 步骤 | 状态 | 备注 |
|------|------|------|------|
| A | 步骤描述... | ✅/❌ | 如有偏差说明原因 |
| B | npm run build | ✅/❌ | 编译日志摘要 |
| C | UPDATE_LOG.md | ✅/❌ | — |
汇报后提醒用户:
/spec:verify 进行视觉与逻辑验证