implementation-verify
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseimplementation-verify
implementation-verify
Verifies implementation against specifications after completes.
/speckit.implement在完成后,验证实现是否符合规范。
/speckit.implementPurpose
用途
This skill automatically verifies that your implementation fulfills the specified requirements. It checks:
- FR requirement fulfillment: How many FR-XXX requirements are addressed by completed tasks
- Task completion rate: Percentage of tasks marked complete in tasks.md
- Contract implementation: API endpoints implemented as specified (if contracts/ exists)
- Test coverage alignment: Implementation aligns with test requirements
该技能会自动验证你的实现是否满足指定需求。它会检查:
- FR需求满足情况:有多少FR-XXX需求已通过已完成的任务得到解决
- 任务完成率:tasks.md中标记为完成的任务百分比
- 合约实现情况:是否按规范实现了API端点(若存在contracts/目录)
- 测试覆盖一致性:实现是否符合测试需求
Output
输出
The skill outputs a Fulfillment Report with:
- Coverage metrics (FR, task, contract percentages)
- List of unimplemented requirements
- Recommended actions to improve coverage
该技能会输出一份满足情况报告,内容包括:
- 覆盖指标(FR、任务、合约的完成百分比)
- 未实现需求列表
- 提升覆盖度的建议措施
Usage
使用方法
This skill runs automatically after . You can also run it manually:
/speckit.implementbash
npx skills run implementation-verify该技能会在完成后自动运行。你也可以手动运行:
/speckit.implementbash
npx skills run implementation-verifyExit Codes
退出码
| Code | Status | Meaning |
|---|---|---|
| 0 | Complete | 100% fulfillment |
| 1 | Partial | >80% fulfillment |
| 2 | Low | <80% fulfillment |
| 3 | Error | Required files missing |
| 代码 | 状态 | 含义 |
|---|---|---|
| 0 | 完成 | 100%满足需求 |
| 1 | 部分完成 | >80%满足度 |
| 2 | 低满足度 | <80%满足度 |
| 3 | 错误 | 缺少必要文件 |
Checks Performed
执行的检查项
Task Completion Analysis
任务完成情况分析
- Parse tasks.md for all task items
- Count completed tasks (marked with [X] or [x])
- Calculate completion percentage per phase
- Identify blocked or incomplete tasks
- 解析tasks.md中的所有任务项
- 统计已完成的任务(标记为[X]或[x]的任务)
- 计算每个阶段的完成百分比
- 识别受阻或未完成的任务
FR Fulfillment Analysis
FR需求满足情况分析
- Extract all FR-XXX references from spec.md
- Cross-reference with completed tasks
- Identify FRs without corresponding completed tasks
- Calculate fulfillment percentage
- 从spec.md中提取所有FR-XXX引用
- 与已完成任务进行交叉引用
- 识别没有对应已完成任务的FR需求
- 计算满足百分比
Contract Implementation (if contracts/ exists)
合约实现情况(若存在contracts/目录)
- Parse contract files for endpoint definitions
- Check if corresponding implementation exists
- Calculate contract coverage percentage
- 解析合约文件中的端点定义
- 检查是否存在对应的实现
- 计算合约覆盖百分比
Metrics Explained
指标说明
| Metric | Formula | Interpretation |
|---|---|---|
| FR Coverage | Implemented FRs / Total FRs | Requirements addressed |
| Task Completion | Completed Tasks / Total Tasks | Work progress |
| Contract Coverage | Implemented Endpoints / Total Endpoints | API completeness |
| 指标 | 计算公式 | 解释 |
|---|---|---|
| FR覆盖率 | 已实现FR数 / 总FR数 | 已解决的需求数量 |
| 任务完成率 | 已完成任务数 / 总任务数 | 工作进度 |
| 合约覆盖率 | 已实现端点数 / 总端点数 | API完整度 |
Recommendations
建议
After receiving low coverage:
- Review unimplemented requirements list
- Check for blocked tasks and resolve blockers
- Ensure task completion is properly marked in tasks.md
- Re-run for remaining work
/speckit.implement - Run again to verify progress
implementation-verify
在收到低覆盖度结果后:
- 查看未实现需求列表
- 检查受阻任务并解决阻碍
- 确保tasks.md中任务完成状态标记正确
- 对剩余工作重新运行
/speckit.implement - 再次运行以验证进度
implementation-verify