计划分步实施与验证
implement_plan
以逐波(wave-by-wave)方式实施已批准的计划,并设置验证关卡。适用于已给出计划路径时、在 /clear 之后恢复时,或 create_plan 的输出已准备好开始构建时。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- description
- Implement an approved plan wave-by-wave with verification gates. Use when a plan path is given, when resuming after /clear, or when create_plan output is ready to build.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档reference/execution-modes.md2.5 KB
- 参考文档reference/verification-gate.md1.3 KB
03 SKILL.md 正文
Implement Plan
Implement an approved technical plan. Plans live in thoughts/shared/plans/
(where create_plan writes) or v2/docs/plans/ (project-canonical for new
plans). Each plan has waves with specific changes and success criteria.
Steps
- Get the plan path. If none was provided, ask for one.
- Read the plan completely. Note existing checkmarks (
- [x]); the first unchecked wave is where you start. - Read the context. The original ticket, every file the plan mentions, and
any
CONTEXT.mdin directories you will modify. - Pick the execution mode by plan size (see
reference/execution-modes.md): 1 wave / ≤3 tasks → Mode 1; 2-3 waves → Mode 2; 4+ waves → Mode 3. - Create a todo list to track progress.
- Execute the current wave following the protocol in
reference/execution-modes.md(load context → run parallel tasks → adapt to reality → update checkmarks). - Pass the verification gate before marking the wave complete — backend
tests, Pyright, and frontend lint/typecheck (see
reference/verification-gate.md). - Transition. Commit if the wave is independently valuable (CP-06). If
context > 70%, save the continuity ledger (
continuity_ledgerskill) and suggest/clear. Repeat from step 6 for the next unchecked wave.
Done when every wave is checked and the verification gate passes.
Reference
reference/execution-modes.md— the three modes, wave protocol, and Mode-3 transition script.reference/verification-gate.md— the gate commands, AS-specific implementation rules, and error recovery.
04 同仓库更多 Skills
技术文档写作规范
writing-standards
遵循 AS v2 技术写作规范(清晰、简洁、主动语态、Python/Django 惯例)。适用于撰写 README、文档字符串(PEP 257)、提交信息、PR 描述、错误信息或任何技术文档。
成果验证关卡
verification-gate
在宣称成功之前先进行验证。适用于准备表示某功能可用/已完成、实现功能后、修复缺陷后,或推送代码前——先运行验证命令并确认输出。
测试驱动开发
test-driven-development
在 AS v2(pytest + Django/DRF)中先编写失败的测试,再进行实现。适用于实现功能或修复缺陷时,在编写任何生产代码之前使用。
子智能体编排开发
subagent-development
在 AS v2 中编排子智能体——将任务拆解为相互独立的领域,并行处理并进行两阶段审查。适用于委派探索、实现或跨文件验证,以加快工作进度并节省主上下文。
自动化安全扫描
security-scan
为 AS v2 提供自动化安全扫描。在提交前或审查变更中的漏洞时使用。执行依赖审计(pip-audit、npm audit)、密钥检测(grep 模式)和代码模式扫描(SQL 注入、XSS、eval、pickle、硬编码密钥)。与项目 hooks 系统集成。
交接文档恢复工作
resume-handoff
从保存的交接文档恢复工作,在继续之前先根据当前代码库验证其状态。适用于上下文清空后或在新会话中(通过路径、会话名称或 GitHub issue)从保存的交接文档恢复工作。