Best for
- "code review"
- "review my PR"
- "review PR 123"
aAAaqwq/AGI-Super-Team/skills/code-review/SKILL.md
AI code review for PR or local changes
Decision brief
Comprehensive AI-powered code review for PRs and local changes — enterprise-grade alternative to CodeRabbit
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/aAAaqwq/AGI-Super-Team --skill "skills/code-review"Inspect the Agent Skill "code-review" from https://github.com/aAAaqwq/AGI-Super-Team/blob/a1b3bf19948a6f3da84347c920a23fc2799d8824/skills/code-review/SKILL.md at commit a1b3bf19948a6f3da84347c920a23fc2799d8824. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Reviews git diff — changes not yet committed.
Reviews all changes in current branch compared to main.
Fetches diff from GitHub PR and can post comments.
User can request specific focus: security, performance, bugs, style, etc.
Skip review if: - PR is draft (gh pr view --json isDraft) - PR is already closed/merged - Only documentation changes (.md, .txt, LICENSE) - Only config changes (.json, .yaml, .toml) without code impact - Trivial changes (<5 lines, whitespace only, version bumps)
Permission review
The documentation asks the agent to run terminal commands or scripts.
git diff HEADThe documentation asks the agent to run terminal commands or scripts.
git diff $DEFAULT_BRANCH...HEADThe documentation asks the agent to read local files, directories, or repositories.
# Read each file fully for contextEvidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 82 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Comprehensive AI-powered code review for PRs and local changes — enterprise-grade alternative to CodeRabbit
gh CLI (GitHub), gitReviews git diff — changes not yet committed.
Reviews all changes in current branch compared to main.
Fetches diff from GitHub PR and can post comments.
User can request specific focus: security, performance, bugs, style, etc.
Skip review if:
gh pr view --json isDraft)Inform user and ask to confirm if they still want review.
Ask user or detect automatically:
Local:
git diff HEAD
Branch (vs main):
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")
git diff $DEFAULT_BRANCH...HEAD
PR:
gh pr diff <PR_NUMBER>
For thorough review, read related files:
# List changed files
git diff --name-only HEAD
# Read each file fully for context
# Check package.json for dependencies
# Check tsconfig/eslint config for project standards
Before reporting an issue, check if it was introduced in this PR:
# Check when the problematic line was last modified
git blame -L <start>,<end> <file> --porcelain | head -1
Skip issues that:
Only report issues introduced or modified in current changes.
This prevents noise from legacy code and focuses review on new changes.
Apply ALL relevant checks from the checklist below.
Rate each issue 0-100:
| Score | Confidence | When to use |
|---|---|---|
| 90-100 | Certain | Clear vulnerability (SQL injection with user input), obvious crash |
| 70-89 | High | Likely bug, security risk, definite code smell |
| 50-69 | Medium | Potential issue, needs context to confirm |
| 25-49 | Low | Style preference, minor suggestion |
| 0-24 | Skip | Probably false positive, pre-existing, or nitpick |
Only report issues with confidence ≥70.
Mark as false positive and skip:
// eslint-disable, # noqa)Format:
## Code Review Summary
**Reviewed:** X files, Y lines changed
**Risk Level:** Critical / High / Medium / Low
### Critical Issues (must fix)
- [file:line] Description — Why it matters
### High Priority
- [file:line] Description
### Medium Priority
- [file:line] Description
### Low Priority / Suggestions
- [file:line] Description
### Good Practices
- What was done well
For GitHub PR — post comments:
# General comment on PR
gh pr comment <PR_NUMBER> --body "## AI Code Review
[Review content]"
# Line-by-line comments via API (for specific file/line feedback)
# Replace {owner}, {repo}, {pr} with actual values
gh api repos/{owner}/{repo}/pulls/{pr}/comments \
--method POST \
-f body="Issue description and fix suggestion" \
-f path="src/file.ts" \
-f line=42 \
-f side="RIGHT"
any to bypass type checkingas casts without validation! operatordef foo(items=[]) anti-patternexcept: without specific exceptionwith| Parameter | Description | Default |
|---|---|---|
PR_NUMBER | Pull Request number | - |
--post | Post comments to GitHub | false |
--severity | Minimum level (critical/high/medium/low) | low |
--focus | Focus area: security, performance, bugs, quality, testing, a11y, i18n, all | all |
User: full code review
Claude: [git diff HEAD]
Claude: [comprehensive analysis using all checklists]
Claude:
## Code Review Summary
**Reviewed:** 5 files, 234 lines changed
**Risk Level:** High
### Critical Issues (2)
1. [src/api/auth.ts:45] SQL Injection - User input passed directly to query
2. [src/utils/crypto.ts:12] Weak cryptography - Using MD5 for password hashing
### High Priority (3)
1. [src/services/user.ts:78] Missing authorization check - IDOR vulnerability
2. [src/api/data.ts:23] N+1 query - 50 queries in loop
3. [src/components/Form.tsx:156] XSS - dangerouslySetInnerHTML with user content
### Medium Priority (5)
...
User: security review PR 123
Claude: [applies only security checklist]
Claude: Found 3 security issues...
User: check performance issues in my changes
Claude: [applies only performance checklist]
Claude: Found 2 performance issues...
| Level | Description | Examples |
|---|---|---|
| Critical | Must fix before merge. Security vulnerabilities, data loss risks | SQL injection, hardcoded secrets, auth bypass |
| High | Should fix before merge. Significant bugs or security issues | N+1 queries, XSS, missing error handling |
| Medium | Fix soon. Code quality, minor bugs | DRY violations, missing tests, complexity |
| Low | Nice to have. Suggestions, style | Naming, comments, minor optimizations |
| Problem | Solution |
|---|---|
gh: command not found | brew install gh && gh auth login |
| No diff output | Check if changes exist: git status |
| PR not found | Check PR number and access rights |
| Can't post comments | Check permissions: gh auth status |
| Review too long | Use --focus to narrow scope |
| False positives | Mention specific context to skip |
Most false positives are low/medium severity. Start with high-only:
"review PR 123 --severity=high"
"review my changes, only critical and high issues"
Narrow to specific categories you care about:
"security review PR 123"
"review PR 123 --focus=bugs,security"
"check only performance issues"
In the same conversation, provide context:
"ignore the N+1 warning in admin routes - it's intentional, low traffic"
"skip any type warnings in src/legacy/ - that's legacy code"
"the raw SQL in migrations/ is fine, we use raw migrations"
For persistent false positives that keep appearing:
// @review-ok: parameterized query handled by ORM
const query = `SELECT * FROM users WHERE id = ${sanitizedId}`;
# @review-ok: global cache intentional for performance
CACHE = {}
If the same false positive keeps appearing across reviews:
This helps improve the skill for everyone.
The skill is designed to minimize false positives out of the box:
Alternatives
event4u-app/agent-config
Use when the user says "review this", "check my code", or wants feedback on changes. Reviews for correctness, quality, security, and coding standards.
evanca/flutter-ai-rules
Use when asked to review a PR, MR, branch, or diff, audit changed files, or check code quality.
K-Dense-AI/scientific-agent-skills
Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.
alirezarezvani/claude-skills
Use when the user asks to review pull requests, analyze code changes, check for security issues in PRs, or assess code quality of diffs.