From commands-bundle
Code review — local uncommitted changes or GitHub PR (pass PR number/URL for PR mode)
npx claudepluginhub danielleit241/my-skills --plugin commands-bundlepr-number | pr-url | blank for local review# /code-review **Input**: $ARGUMENTS ## Mode Selection If `$ARGUMENTS` contains a PR number, PR URL, or `--pr` → **PR Review Mode**. Otherwise → **Local Review Mode**. --- ## Local Review Mode ### Phase 1 — GATHER If no changed files, stop: "Nothing to review." Read `CLAUDE.md` (if present) for project conventions. Read each changed file **in full**. ### Phase 2 — REVIEW Spawn the `code-reviewer` agent with: - Full file contents of each changed file - CLAUDE.md contents (if present) - Recent context: `git log --oneline -5` ### Phase 3 — VALIDATE Detect the project stack and r...
/code-reviewReviews local uncommitted changes or GitHub PRs (pass PR number/URL) for security vulnerabilities, code quality issues, and best practices. Generates severity-based report with file locations, descriptions, and fixes.
/code-reviewPerforms automated multi-agent code review on current GitHub pull request: audits CLAUDE.md, bugs, git history, prior PRs, code comments; scores issue confidence.
/code-reviewReviews uncommitted changes for security vulnerabilities, code quality issues, and best practices using git diff. Generates report with severity levels, locations, descriptions, fixes; blocks commits on critical/high issues.
/code-reviewPerforms comprehensive code quality review of repository structure, code, security, performance, architecture, testing, and documentation. Produces prioritized issues and actionable recommendations with examples.
/code-reviewPerforms comprehensive code quality review of repository structure, code, security, performance, architecture, testing, and documentation. Produces prioritized issues and actionable recommendations with examples.
/code-reviewPerforms holistic pre-push code review against design docs, analyzing diff and broader codebase for alignment, consistency, risks, and issues. Produces categorized findings with recommendations.
Input: $ARGUMENTS
If $ARGUMENTS contains a PR number, PR URL, or --pr → PR Review Mode.
Otherwise → Local Review Mode.
git diff --name-only HEAD
If no changed files, stop: "Nothing to review."
Read CLAUDE.md (if present) for project conventions.
Read each changed file in full.
Spawn the code-reviewer agent with:
git log --oneline -5Detect the project stack and run the appropriate build + test commands:
# .NET
dotnet build --no-restore -q && dotnet test
# Node / TypeScript
npm run build && npm test
# Python
python -m pytest
# Or use task runner if present (Makefile, Taskfile, package.json scripts)
Report pass/fail for build and tests separately.
Present the agent's findings plus build/test results:
---
## Review Summary
| Severity | Count |
|----------|-------|
| CRITICAL | 0 |
| HIGH | 1 |
| MEDIUM | 2 |
| LOW | 0 |
Build: PASS / FAIL
Tests: PASS / FAIL
Verdict: APPROVE | WARNING | BLOCK
Decision rules:
| Input | Action |
|---|---|
Number (42) | Use as PR number |
URL (github.com/.../pull/42) | Extract PR number |
gh pr view <NUMBER> --json number,title,body,author,baseRefName,headRefName,changedFiles,additions,deletions
gh pr diff <NUMBER>
CLAUDE.md for project constraintsSpawn the code-reviewer agent with full file contents and CLAUDE.md.
Additionally check:
Run build + test commands as in Local Review Mode.
# Approve
gh pr review <NUMBER> --approve --body "<summary>"
# Request changes
gh pr review <NUMBER> --request-changes --body "<summary with required fixes>"
# Comment only (draft PR)
gh pr review <NUMBER> --comment --body "<summary>"
For inline comments:
gh api "repos/{owner}/{repo}/pulls/<NUMBER>/comments" \
-f body="<comment>" \
-f path="<file>" \
-F line=<line-number> \
-f side="RIGHT" \
-f commit_id="$(gh pr view <NUMBER> --json headRefOid --jq .headRefOid)"
PR #<NUMBER>: <TITLE>
Decision: APPROVE | REQUEST CHANGES | BLOCK
Issues: <critical> critical, <high> high, <medium> medium, <low> low
Build: PASS / FAIL
Tests: PASS / FAIL
Next steps: <contextual suggestions>
Invokes the code-reviewer agent — see .claude/agents/code-reviewer.md.