gza-code-review-interactivelisted
Install: claude install-skill mhawthorne/gza
# Interactive Code Review
Review committed changes on the current feature branch and output a structured review.
Requires being on a non-main branch with commits ahead of main. If not, stop and tell the user:
"Switch to a feature branch with commits to review. This skill reviews committed changes on feature branches (git diff main...HEAD)."
## Arguments
- `--pr` — Post the review as a PR comment (requires an existing PR on the branch)
- `--apply-followups` — After the review, apply all non-blocking follow-ups inline without prompting. Has no effect if the verdict is `CHANGES_REQUESTED` (blockers exist) or if the review reports no follow-ups. Without this flag, the skill prompts the user interactively before applying.
- No arguments — Just output the review locally, no PR interaction. If follow-ups exist, prompt the user once at the end (see Step 6).
## Process
### Step 1: Verify branch state
1. Check current branch: `git branch --show-current`
- If on `main` or `master`, stop and tell the user to switch to a feature branch
2. Check for uncommitted changes: `git status --porcelain`
- If there are uncommitted changes, warn the user but proceed with reviewing committed changes
3. Check if branch has commits ahead of main: `git log main..HEAD --oneline`
- If no commits ahead, stop and tell the user there's nothing to review
### Step 2: Find PR (only if --pr flag is set)
1. Look up existing PR: `gh pr view --json number,url,title 2>/dev/null`
2. If no PR exists,