name: openspec-apply-change description: Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks. license: MIT compatibility: Requires openspec CLI. metadata: author: openspec version: "1.0" generatedBy: "1.2.0"
📚 Skill Assets (Three-Layer Model)
1. Knowledge Library (library/)
- implementation-guardrails.md: 实施守则(最小变更原则、错误处理策略)。
2. Scripts (scripts/)
- task-verifier.py: 自动化任务验证器,能自动提取并运行
tasks.md中的验证指令。
📝 Execution Steps (Enhanced)
Step 1: Context Loading & Selection
- Select the change to implement (or suggest available ones).
- Read
library/implementation-guardrails.mdto establish the safety boundary.
Step 2: Micro-Planning & Graph Context
- BEFORE implementing, call
generate-micro-plan. - Constraint: Use
architectural-mappingvia query scripts to resolve real file paths.
Step 3: Subagent TDD Implementation (Loop)
- Loop through micro-tasks via
subagent-tdd-loop. - Process: Perform [Red] -> [Green] -> [Refactor/Check] cycle per 2-5 min task.
- Verification: Run
./.agent/checks/run_checks.ps1for every commit. - Mark task complete
- [x]in tasks artifact after each TDD success.
Step 4: Status Report
- Summarize tasks completed and overall progress.
- Suggest archiving if all tasks are done.