Best for
- review a PR, merge request, or diff
- find correctness, security, reliability, or maintainability issues
- assess test gaps and regression risk
vasilyu1983/AI-Agents-public/frameworks/shared-skills/skills/software-code-review/SKILL.md
Applies systematic code review patterns and checklists. Use when reviewing PRs or diffs for correctness, security, readability, maintainability, and AI-generated changes.
Decision brief
This skill is for reviewing existing changes. It routes the agent to the right checklist, review mode, and platform workflow without turning SKILL.md into a tool catalog.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Declared | Source record | Install path and trigger |
| Claude Code | Declared | Source record | Install path and trigger |
| 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/vasilyu1983/AI-Agents-public --skill "frameworks/shared-skills/skills/software-code-review"Inspect the Agent Skill "software-code-review" from https://github.com/vasilyu1983/AI-Agents-public/blob/53f6cb73ea53a2646e3e7d4665062ad66f3683ac/frameworks/shared-skills/skills/software-code-review/SKILL.md at commit 53f6cb73ea53a2646e3e7d4665062ad66f3683ac. 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
1. Confirm the review surface: diff, PR, merge request, generated code, or a focused file set. 2. Route architecture-only or formal security-design questions to the adjacent skill when review is not the primary task. 3. Apply review modes in order: correctness, security, reliabi…
Apply review modes in this order unless the user asks for a narrower scope:
Apply these checks when reviewing AI-generated code or agent-created PRs:
Apply these checks when reviewing AI-generated code or agent-created PRs:
A diff with green tests and no test-quality review is only half-reviewed. Apply the same scrutiny to test code as to production code:
Permission review
The documentation includes network, browsing, or remote request actions.
Use web search/web fetch to verify current external facts, versions, pricing, deadlines, regulations, or platform behavior before final answers.Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 80 | Source | Repository attention, not individual Skill quality |
| Compatibility | 2 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
This skill is for reviewing existing changes. It routes the agent to the right checklist, review mode, and platform workflow without turning SKILL.md into a tool catalog.
| Task | Use | Primary Reference |
|---|---|---|
| General PR or diff review | Baseline review flow and severity rubric | references/operational-playbook.md |
| AI-generated or agent-created changes | Human-in-the-loop review rules and platform controls | references/automation-tools.md |
| Building or tuning an AI review tool/integration | Pre-review deterministic gate, size-gated planning pass, self-refutation filter pass | references/deterministic-vs-llm-routing.md |
| Backend/API review | Error handling, contracts, persistence, operability | assets/backend-api/api-review.md |
| Frontend review | Accessibility, responsive behavior, Core Web Vitals | assets/web-frontend/frontend-review.md |
| Mobile review | Platform patterns, lifecycle, permissions, UX | assets/mobile/mobile-review.md |
| Infrastructure review | CI/CD, IaC, secrets, deploy safety | assets/infrastructure/infrastructure-review.md |
| Smart contract review | Access control, reentrancy, unsafe assumptions | assets/blockchain/crypto-review.md |
| Data / ML review | Pipelines, experiments, models, deployment | assets/data-ml/data-pipeline-review.md |
Use this skill when the primary task is to:
Code review request
-> Identify diff, scope, and expected behavior
-> Trace changed control flow and data contracts
-> Look for regressions, security, performance, and test gaps
-> Rank findings by severity and confidence
-> Cite exact files and lines
-> Summarize residual risk and verification gaps
Apply review modes in this order unless the user asks for a narrower scope:
Stack overlays:
Platform overlays:
If the user asks a platform-specific automation question, open the official entries in data/sources.json first and use references/automation-tools.md.
references/automation-tools.md and data/sources.json and re-verify before quoting specifics.Apply these checks when reviewing AI-generated code or agent-created PRs:
| Check | What to look for |
|---|---|
| Hallucinated imports | Packages or methods that don't exist; verify with npm info / pip index |
| Stale APIs | Deprecated methods, old signatures, removed features |
| Security gaps | Missing input validation, hardcoded secrets, SQL concatenation, unescaped output |
| Missing error handling | Happy-path only; no try/catch, no null checks, no timeout handling |
| Redundant abstractions | Unnecessary wrappers, premature generalization, over-engineered patterns |
| Copy-paste drift | Similar blocks with subtle inconsistencies across files |
| Test theater | Tests that assert implementation details, mock everything, or test the framework |
| Accessibility omissions | Missing alt text, broken ARIA, no keyboard handling, div soup |
| Design system violations | Components that ignore existing tokens, spacing, or component patterns |
| Confident but wrong comments | Docstrings that describe what the code should do, not what it actually does |
Sources: Hallucination Detection, AI Design Antipatterns
| Priority | Label | Criteria | Review action |
|---|---|---|---|
| P0 | BLOCKER | Data loss, security hole, correctness bug, crashes in prod path | Must fix before merge |
| P1 | REQUIRED | Missing error handling, broken rollback, undefined behavior, SLA violation | Must fix before merge |
| P2 | SUGGESTED | Test gap for non-critical path, minor inefficiency, readability issue | Fix in this PR or tracked issue |
| P3 | OPTIONAL | Style preference, naming taste, future improvement | Author decides; no block |
Mark each finding with its priority and label. Do not lump P0 and P3 findings in the same comment thread.
Blocking is a cost: it delays value delivery, encourages batching future changes to avoid another round, and burns reviewer credibility if used on low-stakes disagreements. Do not block on:
Do block on P0/P1 findings, missing tests for genuinely risky new behavior, and anything that would be expensive or unsafe to fix after merge (data migrations, public API shape, security boundaries). When in doubt, separate the blocking finding from the optional ones instead of letting one bleed into the other's priority.
Fast, low-comment reviews are not automatically a problem — well-written, small, low-risk changes should review quickly. Treat these as a warning signal warranting a second look, not proof of bad review:
references/large-pr-review-strategies.md and references/code-review-metrics.md for the size/pace data this heuristic is based on).Use these as coaching signals (spot-check, pair on a review, ask what was actually read), not as a public leaderboard — see references/code-review-metrics.md for how to track this without creating gaming incentives.
A diff with green tests and no test-quality review is only half-reviewed. Apply the same scrutiny to test code as to production code:
needs tests generically without naming the missing scenario, boundary, or regression.Default to:
P0 / P1 / P2 / P3REQUIRED vs OPTIONAL labelingUse assets/core/review-comment-guidelines.md for phrasing and assets/core/review-checklist-judgment.md for final pass judgment. Label comment intent using the Conventional Comments convention (suggestion:, issue:, question:, nitpick:, praise:) so blocking vs. non-blocking intent is unambiguous without relying on tone.
Core references:
Templates:
Sources:
When the user asks for:
you must:
If web access is unavailable, say so and answer from data/sources.json, clearly marking time-sensitive advice as unverified.
Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
Frequently asked questions
This skill is for reviewing existing changes. It routes the agent to the right checklist, review mode, and platform workflow without turning SKILL.md into a tool catalog.
The source record exposes this install command: npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill "frameworks/shared-skills/skills/software-code-review". Inspect the command and pinned source before running it.
The pinned source record declares support for: codex, claude code.
Static rules flagged network in the source; the page lists the matching lines and excerpts.
Alternatives
alirezarezvani/claude-skills
Terraform infrastructure-as-code agent skill and plugin for Claude Code, Codex, Gemini CLI, Cursor, OpenClaw. Covers module design patterns, state management strategies, provider configuration, security hardening, policy-as-code with Sentinel/OPA, and CI/CD plan/apply workflows. Use when: user wants to design Terraform modules, manage state backends, review Terraform security, implement multi-region deployments, or follow IaC best practices.
ruvnet/RuView
Comprehensive GitHub code review with AI-powered swarm coordination
oaustegard/claude-skills
Enables GitHub repository operations (read/write/commit/PR) for Claude.ai chat environments. Use when users request GitHub commits, repository updates, DEVLOG persistence, or cross-session state management via GitHub branches. Not needed in Claude Code (has native git access).
Borda/AI-Rig
Multi-agent code review of local Python files, directories, or the current git diff covering architecture, tests, performance, docs, lint, security, and API design. Scope: Python source files in local working tree. Python-file-free targets (pure JS/TS/Go/Rust projects) are out of scope. TRIGGER when: user asks to review local Python files, a directory, or the current git diff/working-tree changes, with no GitHub PR number involved; phrases: "review this", "review my changes", "code review this d