원클릭으로
pr-audit
// Multi-agent PR review — component, integration, and routing analysis merged into a structured audit doc with severity and PR buckets.
// Multi-agent PR review — component, integration, and routing analysis merged into a structured audit doc with severity and PR buckets.
Draft and post a status update for a Linear initiative you own. Pulls the last status update plus recent issue activity across the initiative's projects, drafts a brief informative update, and posts it after confirmation.
Generate a GitHub PR title and summary from all branch changes, including Linear issue and Figma links when available. When targeting staging, generates a release changelog instead.
Generate one spec per issue — repo file (canonical) + Linear document (mirror). Agent-executable implementation plans with file paths, validation commands, and acceptance criteria.
Create Linear issues from a PR audit doc — one issue per PR bucket with acceptance criteria and linked audit findings.
| name | pr-audit |
| description | Multi-agent PR review — component, integration, and routing analysis merged into a structured audit doc with severity and PR buckets. |
| disable-model-invocation | false |
| user-invocable | true |
| argument-hint | [base-branch (default: dev)] |
You run a multi-pass review of the current branch, pull in external PR feedback, and produce a structured audit document with findings grouped into PR-sized fix buckets.
This skill stops at the audit doc. It does not create issues or specs — use /gaps-to-issues and /spec-from-audit for those steps.
$ARGUMENTS — Optional base branch name (default: dev).
Use $ARGUMENTS if provided, otherwise default to dev.
Verify the base branch exists:
git rev-parse --verify <base-branch>
If it does not exist, ask the user which branch to diff against.
Gather the full diff and context:
git log <base-branch>..HEAD --oneline --no-decorate
git diff <base-branch>...HEAD --stat
git diff <base-branch>...HEAD
git diff <base-branch>...HEAD --name-only
git status -s
Read the full diff carefully. You will reference it throughout the review passes.
Run all three review passes in parallel using the Agent tool. Each agent receives the diff context and reviews through a specific lens.
For every new or changed screen/component file, check:
TODO/FIXME)For the full set of changed files, check:
useStateFor all navigation-related changes, check:
navigate() / push() / replace() target has a corresponding route definitionlocation.state but have no guard for direct-entry (missing state)Check if a PR exists for this branch:
gh pr view --json number,url 2>/dev/null
If a PR exists, fetch external review comments:
gh api repos/{owner}/{repo}/pulls/{number}/comments --paginate
gh api repos/{owner}/{repo}/pulls/{number}/reviews --paginate
gh api repos/{owner}/{repo}/issues/{number}/comments --paginate
Extract actionable items from CodeRabbit, Codex, and human reviewers. Ignore resolved conversations and pure acknowledgment comments.
If no PR exists, skip this step.
Combine findings from all three passes and PR feedback. Deduplicate — if Pass A and a CodeRabbit comment flag the same issue, keep one entry and note both sources.
Assign severity:
| Severity | Criteria |
|---|---|
| Critical | Build-breaking, crashes, data loss, security holes, blocked user flows |
| High | Incorrect behavior visible to users, contract violations, missing error handling on critical paths |
| Medium | Missing states, prop mismatches, design token violations, placeholder logic |
| Low | Style, minor code quality, non-blocking TODOs |
Group findings into fix buckets. Each bucket:
Determine the branch slug from the current branch name (strip feat/, fix/, etc., replace / with -).
Create the audit document at:
docs/reviews/YYYY-MM-DD-<branch-slug>-audit.md
Create docs/reviews/ if it does not exist.
Structure:
# PR Audit — <branch-name>
> Date: YYYY-MM-DD
> Branch: `<branch-name>`
> Base: `<base-branch>`
> PR: #NNN (if exists)
> Reviewers: Claude Code (component, integration, routing passes), [external reviewers]
> Status: Audit complete — ready for review
## Summary
[2-3 sentences describing what the branch does and the overall health assessment.]
## Findings
### Critical
- [ ] [finding] — `path/to/file.ts:NN`
- **Source:** [Pass A | Pass B | Pass C | CodeRabbit | reviewer]
- **Fix:** [concrete action]
### High
- [ ] ...
### Medium
- [ ] ...
### Low
- [ ] ...
## PR Buckets
### Bucket 1: [name]
- **Estimated LOC:** ~NNN
- **Findings:** #1, #3, #7
- **Files:** [list]
- **Dependencies:** [none | Bucket N must land first]
- **Acceptance criteria:**
- [ ] [criterion]
### Bucket 2: [name]
...
## What Works Well
[List things the branch does correctly — not just problems.]
Show the user:
Tell the user:
"Audit complete. Review the findings and buckets above. When ready, use
/gaps-to-issuesto create Linear issues from these buckets, then/spec-from-auditto generate specs."
Stop here. Do not create issues or specs.
git commit or git push. Stage the audit doc but stop there.