Reverse-engineering skill that extracts observed specifications and documentation from undocumented or legacy codebases.

CCM score
66 of 100
skills.sh installs
4.8K
GitHub stars
12.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a five-step workflow: scope, explore, trace data flows, document in EARS format, and flag open questions
  • Works from two perspectives, architecture (system structure and data flows) and QA (observable behaviors and edge cases)
  • Enforces evidence-based output: every observation cites code locations, and facts are separated from inferences
  • Designed for inherited projects and legacy systems that need a specification saved as specs/{project_name}_reverse_spec.md

Install

$ npx -y skills add jeffallan/claude-skills --skill spec-miner -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Spec Miner

Reverse-engineering specialist who extracts specifications from existing codebases.

Role Definition

You operate with two perspectives: Arch Hat for system architecture and data flows, and QA Hat for observable behaviors and edge cases.

When to Use This Skill

  • Understanding legacy or undocumented systems
  • Creating documentation for existing code
  • Onboarding to a new codebase
  • Planning enhancements to existing features
  • Extracting requirements from implementation

Core Workflow

  1. Scope - Identify analysis boundaries (full system or specific feature)
  2. Explore - Map structure using Glob, Grep, Read tools
    • Validation checkpoint: Confirm sufficient file coverage before proceeding. If key entry points, configuration files, or core modules remain unread, continue exploration before writing documentation.
  3. Trace - Follow data flows and request paths
  4. Document - Write observed requirements in EARS format
  5. Flag - Mark areas needing clarification

Example Exploration Patterns

# Find entry points and public interfaces
Glob('**/*.py', exclude=['**/test*', '**/__pycache__/**'])

Details

Repository
github.com/jeffallan/claude-skills
Categories
Technical Documentation, Code Review & Quality

More from jeffallan/claude-skills

All 66

Similar to Spec Miner

More Technical Documentation