OpenParable
Skip to content
← Back to skills

Reverse

Testing & Quality
reverse

Reverse is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

[UDS] Reverse engineer code to Specs, BDD, or TDD coverage

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/analysis/reverse-engineer-asiaostrich-universal-dev-standa-2/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/reverse, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Reverse Engineering Assistant | 反向工程助手

Reverse engineer existing code into specifications, BDD scenarios, or TDD coverage reports.

將現有程式碼反向工程為規格文件、BDD 場景或 TDD 覆蓋率報告。

Subcommands | 子命令

SubcommandInputOutputDescription說明
specCode files/dirsSPEC-XXX.mdExtract spec from code從程式碼提取規格
bddSPEC-XXX.md.featureConvert ACs to Gherkin將 AC 轉為 Gherkin
tdd.featureCoverage ReportAnalyze test coverage分析測試覆蓋率

Workflow | 工作流程

spec: Code to Specification

  1. Scan - Read source files and identify public APIs, data flows, and business logic
  2. Classify - Tag each finding as [Confirmed], [Inferred], or [Unknown]
  3. Structure - Organize into SDD spec format with Acceptance Criteria
  4. Attribute - Cite every reversed item with file:line source reference

bdd: Specification to Gherkin

  1. Parse - Read SPEC-XXX.md and extract Acceptance Criteria
  2. Convert - Map each AC to a Gherkin Scenario (1:1 mapping)
  3. Tag - Add @SPEC-XXX and @AC-N tags for traceability
  4. Write - Output .feature file with # [Source: path:AC-N] comments

tdd: Feature to Coverage Report

  1. Parse - Read .feature file scenarios
  2. Search - Find corresponding test files using Grep/Glob
  3. Map - Match scenarios to existing unit tests
  4. Report - Output coverage matrix (covered / missing / partial)

Anti-Hallucination Rules | 防幻覺規則

RuleRequirement要求
Certainty TagsUse [Confirmed], [Inferred], [Unknown] for all findings所有發現須標注確定性
Source AttributionCite file:line for every reversed item每項反向結果須引用來源
No FabricationNever invent APIs or behaviors not found in code不得捏造程式碼中不存在的 API 或行為

Usage | 使用方式

  • /reverse spec src/auth/ - Extract specification from auth module
  • /reverse bdd specs/SPEC-AUTH.md - Convert spec ACs to Gherkin scenarios
  • /reverse tdd features/auth.feature - Analyze test coverage for feature file

Reference | 參考