implementation-verify

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

implementation-verify

implementation-verify

Verifies implementation against specifications after
/speckit.implement
completes.
/speckit.implement
完成后,验证实现是否符合规范。

Purpose

用途

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
/speckit.implement
. You can also run it manually:
bash
npx skills run implementation-verify
该技能会在
/speckit.implement
完成后自动运行。你也可以手动运行:
bash
npx skills run implementation-verify

Exit Codes

退出码

CodeStatusMeaning
0Complete100% fulfillment
1Partial>80% fulfillment
2Low<80% fulfillment
3ErrorRequired files missing
代码状态含义
0完成100%满足需求
1部分完成>80%满足度
2低满足度<80%满足度
3错误缺少必要文件

Checks Performed

执行的检查项

Task Completion Analysis

任务完成情况分析

  1. Parse tasks.md for all task items
  2. Count completed tasks (marked with [X] or [x])
  3. Calculate completion percentage per phase
  4. Identify blocked or incomplete tasks
  1. 解析tasks.md中的所有任务项
  2. 统计已完成的任务(标记为[X]或[x]的任务)
  3. 计算每个阶段的完成百分比
  4. 识别受阻或未完成的任务

FR Fulfillment Analysis

FR需求满足情况分析

  1. Extract all FR-XXX references from spec.md
  2. Cross-reference with completed tasks
  3. Identify FRs without corresponding completed tasks
  4. Calculate fulfillment percentage
  1. 从spec.md中提取所有FR-XXX引用
  2. 与已完成任务进行交叉引用
  3. 识别没有对应已完成任务的FR需求
  4. 计算满足百分比

Contract Implementation (if contracts/ exists)

合约实现情况(若存在contracts/目录)

  1. Parse contract files for endpoint definitions
  2. Check if corresponding implementation exists
  3. Calculate contract coverage percentage
  1. 解析合约文件中的端点定义
  2. 检查是否存在对应的实现
  3. 计算合约覆盖百分比

Metrics Explained

指标说明

MetricFormulaInterpretation
FR CoverageImplemented FRs / Total FRsRequirements addressed
Task CompletionCompleted Tasks / Total TasksWork progress
Contract CoverageImplemented Endpoints / Total EndpointsAPI completeness
指标计算公式解释
FR覆盖率已实现FR数 / 总FR数已解决的需求数量
任务完成率已完成任务数 / 总任务数工作进度
合约覆盖率已实现端点数 / 总端点数API完整度

Recommendations

建议

After receiving low coverage:
  1. Review unimplemented requirements list
  2. Check for blocked tasks and resolve blockers
  3. Ensure task completion is properly marked in tasks.md
  4. Re-run
    /speckit.implement
    for remaining work
  5. Run
    implementation-verify
    again to verify progress
在收到低覆盖度结果后:
  1. 查看未实现需求列表
  2. 检查受阻任务并解决阻碍
  3. 确保tasks.md中任务完成状态标记正确
  4. 对剩余工作重新运行
    /speckit.implement
  5. 再次运行
    implementation-verify
    以验证进度