What problem does it solve?
Understanding a subsystem or feature branch by reading raw implementation code is slow and error-prone, and architecture notes go stale quickly. This Skill produces a top-down markdown walkthrough doc with verified clickable file:line links, a mechanically extracted public API, invariants, and a debugging map, so reviewers can track architecture changes through doc diffs instead of reading code.
Core Features & Use Cases
- Verified deep links: Every file:line anchor is grep-verified against the working tree before writing, so links act as a staleness alarm when code moves.
- Mechanical API extraction: An awk-based extraction script pulls exported signatures and interfaces into a canonical Public API section instead of hand-copying.
- Structured doc format: Produces a fixed structure — one-paragraph summary, ASCII layer stack, public API, cascade narrative, invariants, and a symptom-to-file debugging map.
- Refresh mode: Re-verifies anchors and diffs the API extraction against an existing doc to update only what changed.
- Use Case: After finishing a feature branch, ask for an archdoc of the branch; the Skill maps the diff, explores the call chain top-down, verifies every anchor, and writes lambda/scripts/archdocs/<feature>.md for review.
Quick Start
Generate an archdoc for the current feature branch and save it under lambda/scripts/archdocs with verified file:line links.