reversa-archaeologist

Analyzes legacy code module by module to extract algorithms, data structures, and data dictionaries.

Updated Jun 12, 2026
One-click install
npx skills add https://github.com/lacsousa/mediclaw-system --skill reversa-archaeologist-lacsousa
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: reversa-archaeologist
Source: https://github.com/lacsousa/mediclaw-system/tree/main/.agents/skills/reversa-archaeologist
Command: npx skills add https://github.com/lacsousa/mediclaw-system --skill reversa-archaeologist-lacsousa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Reverse-engineering a legacy codebase requires deep, module-by-module analysis that is tedious and error-prone when done manually. This Skill automates the excavation phase of a reverse engineering workflow, extracting control flows, algorithms, data structures, and business rules from legacy code into structured documentation. ## Core Features & Use Cases - Module-by-module code analysis: Extracts functions, control flow, non-trivial algorithms, validation logic, and error handling from each module defined in the analysis plan. - Data dictionary generation: Documents entities, fields, types, required values, and relationships, with output depth controlled by a configurable doc_level (essencial, completo, detalhado). - Mermaid flowcharts and structured JSON: Produces per-module flowcharts and a modules.json file following a defined schema, with confidence levels (confirmed, inferred, unknown) for every finding. - Checkpointed sessions: Saves progress per module in state.json and offers preventive pauses after intensive analysis so work can resume in a fresh session. - Use Case: After running the reversa-scout on an undocumented legacy system, invoke this Skill to excavate each module and produce code-analysis.md, data-dictionary.md, and flowcharts that downstream agents use to write specifications. ## Quick Start Run the reversa-archaeologist after the scout phase to analyze each planned module of my legacy project and generate the code analysis, data dictionary, and flowcharts.

Frequently Asked Questions about reversa-archaeologist

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

FAQPage Schema
How do I reverse engineer a legacy codebase module by module?▼

Run the scout phase first to map the project, then invoke this Skill to analyze each module in the plan. It extracts functions, control flow, algorithms, and data structures into code-analysis.md and a structured modules.json file.

What artifacts does a reverse engineering code analysis produce?▼

This Skill produces a consolidated code-analysis.md, a data-dictionary.md with fields and types, Mermaid flowcharts per module, and modules.json following a defined schema. Output depth depends on the doc_level setting: essencial, completo, or detalhado.

Can I control how detailed the legacy code documentation is?▼

Yes. The doc_level field in .reversa/state.json controls output depth. The essencial level embeds a summary table in code-analysis.md, completo adds the data dictionary and module flowcharts, and detalhado adds per-function flowcharts.

How does the analysis handle uncertain or missing information in legacy code?▼

Every finding is tagged with a confidence level: confirmed when extracted directly from code, inferred when based on patterns, or unknown when not determinable. These map to green, yellow, and red markers in the generated documentation.

What happens if the analysis session gets too long?▼

After analyzing three or more modules, or after a particularly dense module, the Skill saves a checkpoint to state.json and offers to pause. You can clear the session and resume later without losing completed module analysis.