legion-reviewlisted
Install: claude install-skill runlegion/legion
# Legion Review
Review an open PR against its issue spec and for code quality, with findings that survived
an adversarial check. The product is a structured decision -- approved or changes_requested --
recorded as a HEAD-keyed quality gate, plus file:line findings the implementer can act on
without guessing.
## Inputs
- The PR number (argument, or infer from the current branch via `legion pr list`).
- The repo (from the working directory's watch.toml mapping).
## Procedure
1. **Load the contract.** `legion pr view --repo <repo> --number <n>` for the body and
branch; `legion issue view --repo <repo> --number <n>` for the linked issue's acceptance
criteria. No linked issue is itself a finding (the workflow requires one).
2. **Fan out review dimensions.** Spawn parallel review agents via the Task tool using
subagent_type `legion:legion-review` (plugin agents register namespaced; the bare
`legion-review` form exists only if a repo also carries a local .claude/agents copy --
check the available-agents list if the namespaced form does not resolve), one per
dimension, each given the PR number, branch, issue criteria, and its single focus:
- `spec`: acceptance-criteria-vs-diff, scope creep, claims the diff does not implement
- `correctness`: error handling, silent failures, edge cases, concurrency
- `quality`: repo CLAUDE.md invariants, idioms, test coverage and quality
- `security`: injection, unchecked input, secrets, shell quoting
For a smal