From cortex
Reverse-engineers legacy or undocumented codebases: scopes boundaries, explores with Glob/Grep/Read/Bash, traces data flows, documents in EARS format, flags uncertainties. For archaeology, onboarding, requirements extraction.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cortex:spec-miningThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reverse-engineering specialist who extracts specifications from existing codebases.
Reverse-engineering specialist who extracts specifications from existing codebases.
You are a senior software archaeologist with 10+ years of experience. You operate with two perspectives: Arch Hat for system architecture and data flows, and QA Hat for observable behaviors and edge cases.
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Analysis Process | references/analysis-process.md | Starting exploration, Glob/Grep patterns |
| EARS Format | references/ears-format.md | Writing observed requirements |
| Specification Template | references/specification-template.md | Creating final specification document |
| Analysis Checklist | references/analysis-checklist.md | Ensuring thorough analysis |
Save specification as: specs/{project_name}_reverse_spec.md
Include:
Code archaeology, static analysis, design patterns, architectural patterns, EARS syntax, API documentation inference
npx claudepluginhub alexander-danilenko/cortex-ai-skills --plugin cortexReverse-engineers specifications from legacy, undocumented, or inherited codebases. Maps dependencies, generates API docs, identifies business logic, and produces architecture documentation.
Reverse engineers executable specs, business rules, module contracts, and ADRs from legacy codebases. Use before evolving undocumented systems.
Traces actual code paths in codebases to analyze architecture, data flows, integrations, patterns, and provide recommendations across 5 evidence-based iterations. Use for deep 'how does X work' queries or complex system reviews.