tsa-pr-reviewlisted
Install: claude install-skill aimasteracc/tree-sitter-analyzer
# tsa-pr-review — AST-grounded PR review with merge-gate verdict
> Replaces "LLM reads the diff and guesses" with a deterministic pipeline that
> grounds the review in (a) the AST diff, (b) the persisted call graph, and
> (c) architectural-constraints.yml. Output is a structured verdict an agent
> can act on — including the **exact** pytest command to run before merge.
## When to use
- Local diff review: unstaged, staged, or branch-vs-main
- GitHub PR review by URL (uses `gh` under the hood)
- CI / agent pre-merge gate
- Any time a generic "read the diff" review would be too shallow
**Don't use** when:
- The diff is a one-line typo in a comment or doc
- The change is in a file with no AST coverage (e.g. binary, image, .lock)
- You only need to *describe* the diff, not *judge* it → use plain `git diff`
## Why this beats a generic LLM diff-read
| Concern | LLM-only diff read | tsa-pr-review |
|----------------------------------|----------------------|------------------------------------------|
| Classify signature vs body change| Heuristic | `codegraph_pr_review` AST diff |
| Exact tests to run | Invented / hallucinated | `analyze_change_impact.verification_command` |
| Caller blast radius | Grep guess | `codegraph_callers` from persisted graph |
| Callee regression surface | Read N files | `codegraph_callees` from persisted graph |
| Architecture