architecture-review
Installation
SKILL.md
architecture-review
Review a PR (or the current branch) the way a senior engineer would: focused on architecture, not nits. Read the commits like a story, run the code, scan for concrete architectural signals, then write a terse hierarchical review file.
Input
architecture-review <pr-number-or-url>— review a GitHub PR viagh.architecture-review— review the current branch against its detected base.--base <ref>— override base detection.
Stages
Execute strictly in order. Do not skip stages.
1. Resolve target + base
- PR mode:
gh pr view <n> --json baseRefName,headRefName,number,title,url. UsebaseRefNameas base. - Branch mode: detect base by finding the local branch with the most-recent merge-base that is an ancestor of
HEAD. Trymain,master, then other local branches. If ambiguous → ask the user.--base <ref>overrides. - If diff vs base is empty → exit with one line. Nothing to review.