Two-pass code review with auto-fix — reviews PRs or staged changes, auto-fixes obvious issues, batches judgment calls for the user. Use when asked to "review code", "review this PR", "code review", or "check my changes".
npx claudepluginhub francoisbgdw/claude-skillsThis skill is limited to using the following tools:
Two-pass code review inspired by gstack's fix-first review pattern. Every finding gets action — either an immediate fix or a batched question.
Reviews git-tracked code changes for high-impact defects, security issues, regressions, and test gaps with evidence-based findings. Supports auto-fixing.
Reviews GitHub PRs: fetches diff via gh CLI, runs repo-specific checks, launches 3 parallel agents for correctness/conventions/efficiency, validates findings, drafts review.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Two-pass code review inspired by gstack's fix-first review pattern. Every finding gets action — either an immediate fix or a batched question.
git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "not a git repo"git remote show origin 2>/dev/null | grep 'HEAD branch' | awk '{print $NF}' || echo "main"gh pr view --json number,title,state -q '"\(.number): \(.title) [\(.state)]"' 2>/dev/null || echo "no PR on this branch"$ARGUMENTS may specify a PR number, branch, or file list. If not provided, review the diff of the current branch against the base branch.
gh pr diff <number>git diff $(git merge-base HEAD origin/main)..HEADgit diff --name-only $(git merge-base HEAD origin/main)..HEADScan for issues that have objectively correct fixes. Apply them immediately with the Edit tool. Each fix gets a one-line summary.
Auto-fix categories:
await on async callsAfter all auto-fixes, report a summary:
## Auto-fixes applied
- [file:line] Fixed: <one-line description>
- [file:line] Fixed: <one-line description>
Scan for issues that require human judgment. Do NOT fix these — batch them into a single question.
ASK categories:
Present all ASK items together with clear options:
## Review items needing your input
1. **[file:line] Performance**: The `getUsers()` call inside the loop creates N+1 queries.
- A) Refactor to batch query outside loop
- B) Accept — volume is low enough
- C) Skip for now, create a follow-up issue
2. **[file:line] Missing test**: The error branch on line 45 has no test coverage.
- A) I'll add a test now
- B) Skip — not critical path
- C) Create a follow-up issue
(Reply with choices like "1A, 2C" or discuss any item)
After the user responds, apply their chosen fixes and report the final state.
For each changed file, verify:
Apply the circuit breaker from shared safety patterns: