/universal-dev-standards:reverse-tdd [feature file or test directory | Feature 檔案或測試目錄]from universal-dev-standards
Analyzes gaps between BDD feature scenarios and TDD unit test coverage, producing a markdown report with coverage summary, gap table, and severity rating.
Ships in universal-dev-standards. Installing the plugin adds it to Claude Code.
Analyze gaps between BDD scenarios and TDD test coverage.
分析 BDD 場景與 TDD 測試覆蓋之間的差距。
.feature + tests/ ──► Map Scenarios ──► Find Gaps ──► Report
.feature files for scenarios# BDD-TDD Coverage Gap Analysis
## Coverage Summary
- Total BDD Scenarios: 12
- Covered by TDD: 9 (75%)
- Gaps Found: 3
## Gaps
| Scenario | Feature File | Missing TDD |
|----------|-------------|-------------|
| Password reset | auth.feature:15 | No unit test for token validation |
| Command | Purpose | 用途 |
|---|---|---|
/reverse-tdd features/ | Analyze all feature files | 分析所有 feature 檔案 |
/reverse-tdd features/auth.feature | Analyze specific feature | 分析特定 feature |
Follows AI Command Behavior Standards
| Input | AI Action |
|---|---|
/reverse-tdd | 詢問要分析的 feature 檔案或測試目錄 |
/reverse-tdd <path> | 直接分析指定路徑 |
.feature 檔案中的所有場景Decision: 差距嚴重度
🛑 STOP: 展示差距報告後等待使用者決定下一步
| Stop Point | 等待內容 |
|---|---|
| 差距報告展示後 | 使用者決定是否要 AI 協助補測試 |
| Error Condition | AI Action |
|---|---|
無 .feature 檔案 | 引導到 /derive-bdd 或 /reverse-bdd 先生成 |
| 測試目錄為空 | 報告 0% 覆蓋率,建議從 /derive-tdd 生成骨架 |
| 場景與測試命名不一致無法自動對應 | 列出無法對應的項目,詢問使用者手動確認 |
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub asiaostrich/universal-dev-standards --plugin universal-dev-standards51 commands in this plugin
/ac-coverageAC Coverage | AC 覆蓋率[UDS] Generate AC-to-test traceability matrix and coverage report/api-designAPI Design Assistant | API 設計助手[UDS] Guide API design following REST, GraphQL and gRPC best practices/atddATDD Assistant | ATDD 助手[UDS] Guide through Acceptance Test-Driven Development workflow/auditAudit Assistant | 審計助手[UDS] UDS health check and feedback system, diagnose installation integrity and detect development patterns/bddBDD Assistant | BDD 助手[UDS] Guide through Behavior-Driven Development workflow/brainstorm[UDS] Structured AI-assisted brainstorming before spec creationOther plugins' commands for the same job