scaffold/
├─ CLAUDE.md.tmpl • project identity + key commands
├─ Conventions • Things That Will Bite You
├─ hooks/ • 14 Python scripts, one concern each
guard_style.py • doc_check.py • memory_extract.py
└─ discovery/stack_markers.json • 8 stacks auto-detected
/scaffold init · Bootstrap CLAUDE.md, docs/, hooks/, settings.json
/scaffold doctor · 26-validator health check. Flags drift + broken files
/scaffold upgrade · Pull latest templates without touching project files
/scaffold repair · Auto-fix broken scaffold state (doctor + fix failures)
/scaffold discover · Re-scan project: update overview + code fingerprint
/scaffold modules · List all modules with their status for this project
/scaffold tour · Walk through what each enabled module does here
Hooks are copied per-project. Self-contained and portable.