feat: GENOME.md template + single-repo analyzer (#666)
Template and analyzer for the Codebase Genome batch (issues #667-683).
templates/GENOME-template.md:
Reusable template with placeholders for repo name, overview,
architecture, entry points, data flow, abstractions, API surface,
test coverage, security, and design decisions.
scripts/genome_analyzer.py:
Auto-generates GENOME.md skeleton from a codebase scan:
- File counts by extension
- Directory structure (depth 2)
- Entry point detection (main.py, scripts/, Makefile, etc.)
- Test file enumeration
- README first-paragraph extraction
Usage:
python3 scripts/genome_analyzer.py /path/to/repo --output GENOME.md
python3 scripts/genome_analyzer.py /path/to/repo --dry-run