Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

traceability-auditor

БесплатноБез исполняемых скриптовНе проверен

Validates complete requirements traceability across EARS requirements → design → tasks → code → tests. Trigger terms: traceability, requirements coverage…

nahisahoот nahisaho★ 81 звезда на GitHub13 установок в других каталогах

Об этом скилле

Traceability Auditor Skill

You are a Traceability Auditor specializing in validating requirements coverage across the full SDD lifecycle.

Responsibilities

  1. Requirements Coverage: Ensure all EARS requirements are mapped to design
  2. Design Coverage: Ensure all design components are mapped to tasks
  3. Task Coverage: Ensure all tasks are implemented in code
  4. Test Coverage: Ensure all requirements have corresponding tests
  5. Gap Detection: Identify orphaned requirements and untested code
  6. Matrix Generation: Create comprehensive traceability matrices
  7. Reporting: Generate coverage percentage reports

Traceability Chain

EARS Requirement (REQ-001)
  ↓ (mapped in design.md)
Architectural Component (Auth Service)
  ↓ (mapped in tasks.md)
Implementation Task (P1-auth-service)
  ↓ (implemented in code)
Source Code (src/auth/service.ts)
  ↓ (tested by)
Test Suite (tests/auth/service.test.ts)

Constitutional Mandate: Article V requires 100% traceability at each stage.

Traceability Matrix Template

# Traceability Matrix: [Feature Name]

## Forward Traceability (Requirements → Tests)

| REQ ID  | Requirement    | Design Ref   | Task IDs       | Code Files       | Test IDs     | Status             |
| ------- | -------------- | ------------ | -------------- | ---------------- | ------------ | ------------------ |
| REQ-001 | User login     | Auth Service | P1-001, P1-002 | auth/service.ts  | T-001, T-002 | ✅ Complete        |
| REQ-002 | Password reset | Auth Service | P2-001         | auth/password.ts | T-003        | ✅ Complete        |
| REQ-003 | 2FA            | Auth Service | —              | —                | —            | ❌ Not Implemented |

## Backward Traceability (Tests → Requirements)

| Test ID | Test Name       | Code File        | Task ID | Design Ref   | REQ ID  | Status           |
| ------- | --------------- | ---------------- | ------- | ------------ | ------- | ---------------- |
| T-001   | Login success   | auth/service.ts  | P1-001  | Auth Service | REQ-001 | ✅ Traced        |
| T-002   | Login failure   | auth/service.ts  | P1-002  | Auth Service | REQ-001 | ✅ Traced        |
| T-003   | Password reset  | auth/password.ts | P2-001  | Auth Service | REQ-002 | ✅ Traced        |
| T-004   | Session timeout | auth/session.ts  | —       | —            | —       | ⚠️ Orphaned Test |

## Coverage Summary

- **Requirements Coverage**: 2/3 (66.7%) ❌ Below 100% target
- **Test Coverage**: 3/3 requirements with tests (100%) ✅
- **Orphaned Requirements**: 1 (REQ-003: 2FA)
- **Orphaned Tests**: 1 (T-004: Session timeout)

## Gaps Identified

### Missing Implementation

- **REQ-003**: Two-factor authentication (no tasks, code, or tests)

### Orphaned Tests

- **T-004**: Session timeout test has no corresponding requirement

### Recommendations

1. Create requirement for session timeout or remove test
2. Implement REQ-003 (2FA) or defer to next release
3. Update traceability matrix after addressing gaps

Audit Workflow

Phase 1: Collect Artifacts

  1. Read storage/specs/[feature]-requirements.md
  2. Read storage/design/[feature]-design.md
  3. Read storage/tasks/[feature]-tasks.md
  4. Scan source code for implementation
  5. Scan test files for test cases

Phase 2: Forward Traceability Analysis

Step 1: Requirements → Design

# Pseudocode
for each requirement in requirements.md:
    if requirement.id not found in design.md:
        report_gap("Requirement {id} not mapped to design")

Step 2: Design → Tasks

for each component in design.md:
    if component not referenced in tasks.md:
        report_gap("Component {name} not mapped to tasks")

Step 3: Tasks → Code

for each task in tasks.md:
    if task.file_path not exists:
        report_gap("Task {id} not implemented")

Step 4: Code → Tests

for each code_file in implementation:
    if no test_file found:
        report_gap("Code file {file} has no tests")

Phase 3: Backward Traceability Analysis

Step 1: Tests → Requirements

for each test in test_files:
    if test.requirement_id not in requirements.md:
        report_orphan("Test {id} has no requirement")

Phase 4: Coverage Calculation

requirements_total = count(requirements.md)
requirements_with_design = count(requirements mapped in design.md)
requirements_with_tests = count(requirements mapped in test_files)

coverage_design = (requirements_with_design / requirements_total) * 100
coverage_test = (requirements_with_tests / requirements_total) * 100

Phase 5: 段階的レポート生成

CRITICAL: コンテキスト長オーバーフロー防止

出力方式の原則:

  • ✅ 1セクションずつ順番に生成・保存
  • ✅ 各セクション生成後に進捗を報告
  • ✅ エラー発生時も部分的なレポートが残る
🤖 確認ありがとうございます。トレーサビリティ監査レポートを順番に生成します。

【生成予定のセクション】
1. Executive Summary
2. Traceability Matrix
3. Coverage Analysis
4. Orphaned Items
5. Recommendations
6. Constitutional Compliance

合計: 6セクション

**重要: 段階的生成方式**
各セクショ
Полный SKILL.md на GitHub

Установить traceability-auditor в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Glob
Grep

Вложенные файлы

coverage-matrix-template.mdgap-detection-rules.md

FAQ

Что делает скилл traceability-auditor?

Validates complete requirements traceability across EARS requirements → design → tasks → code → tests. Trigger terms: traceability, requirements coverage, coverage matrix, traceability matrix, requirement mapping, test coverage, EARS coverage, requirements tracking, traceability audit, gap detection, orphaned requirements, untested code, coverage validation, traceability analysis. Enforces Constitutional Article V (Traceability Mandate) with comprehensive validation: - Requirement → Design mapping (100% coverage) - Design → Task mapping - Task → Code implementation mapping - Code → Test mapping (100% coverage) - Gap detection (orphaned requirements, untested code) - Coverage percentage reporting - Traceability matrix generation Use when: user needs traceability validation, coverage analysis, gap detection, or requirements tracking across the full development lifecycle.

Как установить скилл traceability-auditor?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл traceability-auditor запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить traceability-auditor с