/universal-dev-standards:reverse [spec|data|runtime|bdd|tdd] <input>from universal-dev-standards
Reverse engineer undocumented systems across Logic, Data, and Runtime dimensions. Recovers specs, data models, and runtime topology from existing codebases.
Ships in universal-dev-standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
System archeology framework: reverse engineer existing systems across three dimensions — Logic, Data, and Runtime.
系統考古框架:從三個維度反向工程既有系統——邏輯、資料、執行環境。
┌─────────────────────────────────────────────────────────┐
│ System Archeology Framework │
├──────────┬──────────────┬────────────────────────────────┤
│ Logic │ Data │ Runtime │
│ (spec) │ (data) │ (runtime) │
├──────────┼──────────────┼────────────────────────────────┤
│ APIs │ DB Schemas │ Logs & Error Patterns │
│ Modules │ ORMs/Models │ Config & Environment │
│ Flows │ Migrations │ Metrics & Performance │
│ Tests │ Seed Data │ Infra & Deployment │
└──────────┴──────────────┴────────────────────────────────┘
| Subcommand | Dimension | Input | Output | 說明 |
|---|---|---|---|---|
| (none) | All | Project root | Full Archeology Report | 三維度全面分析 |
spec | Logic | Code files/dirs | SPEC-XXX.md | 從程式碼提取規格 |
data | Data | DB schemas, ORMs, migrations | Data Model Spec | 分析資料模型與結構 |
runtime | Runtime | Logs, configs, metrics | Runtime Baseline | 分析執行環境基準 |
bdd | — | SPEC-XXX.md | .feature | 將 AC 轉為 Gherkin |
tdd | — | .feature | Coverage Report | 分析測試覆蓋率 |
When /reverse is invoked without a subcommand, execute all three dimensions sequentially:
Output: Integrated System Archeology Report combining all three dimensions.
[Confirmed], [Inferred], or [Unknown]file:line source reference[Confirmed] (FK constraints) or [Inferred] (code patterns)Evidence sources: schema.prisma, *.migration.*, models/, entities/, knexfile.*, sequelize, typeorm, SQL files, docker-compose.yml (DB services)
Evidence sources: .env.example, docker-compose.yml, Dockerfile, *.config.*, CI/CD files, k8s/, log files (patterns only)
Security: NEVER output actual secret values. Only list variable names and describe their purpose.
| Rule | Requirement | 要求 |
|---|---|---|
| Certainty Tags | Use [Confirmed], [Inferred], [Unknown] for all findings | 所有發現須標注確定性 |
| Source Attribution | Cite file:line for every reversed item | 每項反向結果須引用來源 |
| No Fabrication | Never invent APIs or behaviors not found in code | 不得捏造程式碼中不存在的 API 或行為 |
| No Secrets | Never output secret values from configs or env files | 不得輸出設定檔或環境變數的密鑰值 |
/reverse - Full 3-dimension analysis | 三維度全面分析
/reverse spec src/auth/ - Logic: extract spec | 邏輯:提取規格
/reverse data - Data: analyze schemas & models | 資料:分析結構
/reverse runtime - Runtime: analyze configs & infra | 執行環境:分析配置
/reverse bdd specs/SPEC-AUTH.md - Convert spec ACs to Gherkin
/reverse tdd features/auth.feature - Analyze test coverage
After /reverse (full or spec) completes, the AI assistant should suggest:
系統考古完成。建議下一步 / System archeology complete. Suggested next steps:
- 執行
/sdd審查並核准此規格 ⭐ Recommended / 推薦 — Review and approve the generated spec- 執行
/derive從規格推導測試 — Derive tests from spec (requires approval first)- 審查規格中的
[Inferred]和[Unknown]標記 — Review uncertainty tags manually
完整的 AI 行為定義請參閱對應的命令文件:
/reverseFor complete AI agent behavior definition, see the corresponding command file:
/reverse
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
asiaostrich-universal-dev-standards@cascade-code-general-misc-3 is listed by joshuarweaver/cascade-code-general-misc-3 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin asiaostrich-universal-dev-standards57 skills in this plugin
/ac-coverage[UDS] Analyze AC-to-test traceability and generate requirement-level coverage reports.
Use when: auditing which acceptance criteria have tests, building a traceability matrix from a SPEC file, finding uncovered AC before release.
Not for: code-level line/branch/function coverage — use /coverage; writing the missing tests — use /tdd or /spec-derive.
Keywords: AC coverage, traceability, acceptance criteria, SPEC, traceability matrix, 驗收條件, 需求追蹤, 覆蓋率矩陣.
/adr[UDS] Create, manage, and track Architecture Decision Records (ADR).
Use when: architecture decisions, technology choices, design trade-offs, pattern selection.
Not for: decisions that do not change architecture — record them in the spec or commit; ideas not yet formed enough to decide — use /brainstorm.
Keywords: ADR, architecture decision, decision record, trade-off.
/ai-collaboration-standardsOther plugins' skills for the same job