audit
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAudit Specification Quality
审核规范质量
Perform a comprehensive quality audit of specifications with formal scoring.
对规范进行全面的质量审核并给出正式评分。
Workflow
工作流程
-
Load Specifications
- If path provided, audit single specification
- If flag, audit all specifications in
--all.specs/
-
Execute Audit
- Spawn agent
spec-reviewer audit - Evaluate against quality rubric
- Score each category
- Spawn
-
Generate Report
- Overall grade (A-F scale)
- Category scores
- Issue details by severity
- Remediation guidance
-
加载规范
- 若提供路径,则审核单个规范
- 若使用标志,则审核
--all目录下的所有规范.specs/
-
执行审核
- 启动agent
spec-reviewer audit - 根据质量评估标准进行评估
- 为每个类别打分
- 启动
-
生成报告
- 总体等级(A-F评分制)
- 类别得分
- 按严重程度划分的问题详情
- 整改指导建议
Arguments
参数
- - Path to specification file
$ARGUMENTS - - Audit all specifications
--all - - Output format: markdown (default), json
--format
- - 规范文件的路径
$ARGUMENTS - - 审核所有规范
--all - - 输出格式:markdown(默认)、json
--format
Examples
示例
bash
undefinedbash
undefinedAudit single specification
审核单个规范
/spec-driven-development:audit .specs/user-auth/spec.md
/spec-driven-development:audit .specs/user-auth/spec.md
Audit all specifications
审核所有规范
/spec-driven-development:audit --all
/spec-driven-development:audit --all
JSON output for tooling
为工具输出JSON格式结果
/spec-driven-development:audit .specs/user-auth/spec.md --format json
undefined/spec-driven-development:audit .specs/user-auth/spec.md --format json
undefinedScoring Rubric
评分标准
| Category | Weight | Criteria |
|---|---|---|
| Structure | 20% | Required sections, frontmatter, organization |
| Requirements | 25% | EARS format, completeness, clarity |
| Acceptance Criteria | 25% | Given/When/Then, coverage, testability |
| Traceability | 15% | IDs, cross-references, dependencies |
| Quality | 15% | INVEST scores, no ambiguity, specificity |
| 类别 | 权重 | 评估标准 |
|---|---|---|
| 结构 | 20% | 必需章节、前置内容、组织架构 |
| 需求 | 25% | EARS格式、完整性、清晰度 |
| 验收标准 | 25% | Given/When/Then格式、覆盖范围、可测试性 |
| 可追溯性 | 15% | ID、交叉引用、依赖关系 |
| 质量 | 15% | INVEST评分、无歧义、明确性 |
Grade Thresholds
等级阈值
| Grade | Score | Status |
|---|---|---|
| A+ | 95-100 | Exceptional |
| A | 90-94 | Excellent |
| B | 80-89 | Good |
| C | 70-79 | Acceptable |
| D | 60-69 | Needs Work |
| F | <60 | Failing |
| 等级 | 分数 | 状态 |
|---|---|---|
| A+ | 95-100 | 优秀 |
| A | 90-94 | 极佳 |
| B | 80-89 | 良好 |
| C | 70-79 | 合格 |
| D | 60-69 | 需要改进 |
| F | <60 | 不合格 |
Audit Report
审核报告
markdown
undefinedmarkdown
undefinedSpecification Audit Report
规范审核报告
Specification: user-auth
Audited: 2024-01-15T10:30:00Z
Grade: B (84/100)
规范名称: user-auth
审核时间: 2024-01-15T10:30:00Z
等级: B (84/100)
Category Scores
类别得分
| Category | Score | Max | % |
|---|---|---|---|
| Structure | 18 | 20 | 90% |
| Requirements | 21 | 25 | 84% |
| Acceptance Criteria | 20 | 25 | 80% |
| Traceability | 13 | 15 | 87% |
| Quality | 12 | 15 | 80% |
| TOTAL | 84 | 100 | 84% |
| 类别 | 得分 | 满分 | 占比 |
|---|---|---|---|
| 结构 | 18 | 20 | 90% |
| 需求 | 21 | 25 | 84% |
| 验收标准 | 20 | 25 | 80% |
| 可追溯性 | 13 | 15 | 87% |
| 质量 | 12 | 15 | 80% |
| 总计 | 84 | 100 | 84% |
Issues Found
发现的问题
Critical (0)
严重问题 (0)
None
无
Major (2)
主要问题 (2)
- FR-3: Missing acceptance criteria for error case
- NFR-1: Performance threshold not testable
- FR-3: 缺少错误场景的验收标准
- NFR-1: 性能阈值不可测试
Minor (3)
次要问题 (3)
- FR-1.AC-2: Could be more specific
- FR-2: Consider splitting into smaller requirements
- Dependencies: Missing link to FR-1
- FR-1.AC-2: 可更具体化
- FR-2: 考虑拆分为更小的需求
- 依赖关系: 缺少与FR-1的链接
Recommendations
建议
- Add acceptance criteria for FR-3 error handling
- Specify measurable threshold for NFR-1
- Consider refining FR-2 for better INVEST score
- 为FR-3的错误处理添加验收标准
- 为NFR-1指定可衡量的阈值
- 考虑优化FR-2以提升INVEST评分
Comparison (if previous audit exists)
对比(若存在历史审核记录)
| Metric | Previous | Current | Change |
|---|---|---|---|
| Grade | C (75) | B (84) | +9 |
| Issues | 8 | 5 | -3 |
undefined| 指标 | 历史 | 当前 | 变化 |
|---|---|---|---|
| 等级 | C (75) | B (84) | +9 |
| 问题数量 | 8 | 5 | -3 |
undefinedRelated Commands
相关命令
- - Quick validation check
/spec-driven-development:validate - - AI-assisted improvements
/spec-driven-development:refine - - View specification status
/spec-driven-development:status
- - 快速验证检查
/spec-driven-development:validate - - AI辅助改进
/spec-driven-development:refine - - 查看规范状态
/spec-driven-development:status