spec-miner

Installation
Summary

Reverse-engineer undocumented codebases to extract specifications, architecture, and observable behavior patterns.

  • Uses two analytical perspectives: Arch Hat for system architecture and data flows, QA Hat for observable behaviors and edge cases
  • Employs systematic exploration with Glob, Grep, and Read tools to map code structure, entry points, configuration, and API routes before documentation
  • Documents extracted requirements in EARS format (Ubiquitous, Event-driven, State-driven, Optional) with code location evidence for each observation
  • Outputs structured specification documents covering technology stack, module structure, non-functional patterns, inferred acceptance criteria, and flagged uncertainties
SKILL.md

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)
Related skills

More from jeffallan/claude-skills

Installs
1.8K
GitHub Stars
9.0K
First Seen
Jan 20, 2026