spec-miner

Extract specifications from codebases and output them in EARS format.

Updated May 31, 2026
One-click install
npx skills add https://github.com/fanguyun/SkillManager --skill spec-miner-fanguyun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spec-miner
Source: https://github.com/fanguyun/SkillManager/tree/main/spec-miner
Command: npx skills add https://github.com/fanguyun/SkillManager --skill spec-miner-fanguyun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Read, Grep, Glob, Bash, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill assists in understanding and documenting legacy or undocumented codebases, helping users to reverse-engineer systems and generate API documentation.

Core Features & Use Cases

  • Reverse Engineering: Map code dependencies and identify undocumented business logic.
  • API Documentation: Generate documentation from source code.
  • Legacy Analysis: Analyze old codebases with no documentation.
  • Use Case: When onboarding to a new codebase or planning enhancements to existing features, this Skill can be used to understand the system's architecture and behavior.

Quick Start

Use the spec-miner skill to reverse-engineer the codebase located at 'path/to/codebase'.

Frequently Asked Questions about spec-miner

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

FAQPage Schema
How do I extract API documentation from an undocumented codebase?

To extract API documentation from an undocumented codebase, use code exploration tools like Grep and Glob to identify dependencies and trace business logic. This process reverse-engineers legacy systems and outputs specifications in EARS format.

What is the best way to reverse-engineer legacy systems and trace business logic?

The best way to reverse-engineer legacy systems is by analyzing source code to map dependencies and identify undocumented behavior. This approach traces business logic directly from the implementation, generating structured specifications.

Can I generate EARS format specifications directly from source code analysis?

Yes, you can generate EARS format specifications directly from source code analysis. By leveraging Bash and search tools to explore the codebase, the system maps dependencies and translates business logic into EARS requirements.

Does spec-miner work for onboarding to a new codebase with no existing documentation?

Yes, spec-miner works effectively for onboarding to a new codebase with no existing documentation. It analyzes legacy codebases to map architecture, identify dependencies, and document API surfaces, helping you understand system behavior.

What tools are needed to analyze codebase dependencies and map architecture?

Analyzing codebase dependencies and mapping architecture requires tools like Read, Grep, Glob, and Bash. These tools explore source code to identify dependencies, trace logic, and generate API documentation for undocumented systems.

When do I need to generate specifications from code for reverse engineering?

You need to generate specifications from code for reverse engineering when you are working with legacy or undocumented systems. It is essential for mapping code dependencies, documenting API surfaces, and understanding system architecture during onboarding.