reverse-engineer

Generate SDD specifications, BDD feature files, and TDD coverage reports from source code.

70|13|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/AsiaOstrich/universal-dev-standards --skill reverse-engineer-asiaostrich
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reverse-engineer
Source: https://github.com/AsiaOstrich/universal-dev-standards/tree/main/locales/zh-TW/skills/reverse-engineer
Command: npx skills add https://github.com/AsiaOstrich/universal-dev-standards --skill reverse-engineer-asiaostrich

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you understand and document existing codebases by automatically generating specification documents, Behavior-Driven Development (BDD) scenarios, and Test-Driven Development (TDD) coverage reports from your codebase.

Core Features & Use Cases

  • Code to Spec: Reverse engineer code into structured SDD specification documents.
  • Spec to BDD: Convert extracted acceptance criteria into Gherkin feature files.
  • BDD to TDD: Analyze existing unit tests against BDD scenarios to identify coverage gaps.
  • Use Case: You've inherited a legacy system with no documentation. Use this Skill to analyze the code, generate initial specifications, create BDD scenarios for key features, and then identify which parts of the system lack adequate unit tests.

Quick Start

Use the reverse-engineer skill to extract specifications from the '/src/auth' directory.

Frequently Asked Questions about reverse-engineer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate documentation for an existing legacy codebase?

To generate documentation for a legacy codebase, this Skill analyzes existing source code and test suites to produce structured SDD specification documents automatically. It extracts business logic, data models, and API endpoints directly from the code.

How do I convert code into BDD feature files?

You can convert code into BDD feature files by using this Skill to reverse engineer extracted acceptance criteria into Gherkin scenarios. It translates existing business logic into structured Behavior-Driven Development specifications.

How do I identify missing test coverage in existing unit tests?

To identify missing test coverage, this Skill analyzes your existing unit tests against generated BDD scenarios. It identifies documentation gaps and suggests new test cases based on the BDD scenarios to improve TDD coverage.

Can I reverse engineer API endpoints and data models from source code?

Yes, you can reverse engineer API endpoints, data models, and business logic from source code. This Skill analyzes the codebase and existing test suites to extract these structural components into specification documents.

What is the best way to turn code into specs and tests?

The best way to turn code into specs and tests is to analyze existing source code to generate SDD specification documents, BDD feature files, and TDD coverage reports together. This approach maps current behavior and highlights missing tests.