Source profileQuality 92/100

vasilyu1983/AI-Agents-public/frameworks/shared-skills/skills/software-code-review/SKILL.md

software-code-review

Applies systematic code review patterns and checklists. Use when reviewing PRs or diffs for correctness, security, readability, maintainability, and AI-generated changes.

Source repository stars
80
Declared platforms
2
Static risk flags
1
Last source update
2026-08-21
Source checked
2026-08-25

Decision brief

What it does: where it fits

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.

Best for

  • review a PR, merge request, or diff
  • find correctness, security, reliability, or maintainability issues
  • assess test gaps and regression risk

Not for

  • Treating review as approval theater: light comments on naming while correctness and rollout risk remain unexamined.
  • Rewriting the author's architecture in review when the real issue is a smaller bug, missing guardrail, or weak contract.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexDeclaredSource recordInstall path and trigger
Claude CodeDeclaredSource recordInstall path and trigger
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill "frameworks/shared-skills/skills/software-code-review"
Safe inspection promptEditorial

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

What the source asks the agent to do

  1. 01

    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…

    Confirm the review surface: diff, PR, merge request, generated code, or a focused file set.Route architecture-only or formal security-design questions to the adjacent skill when review is not the primary task.Apply review modes in order: correctness, security, reliability, performance, and maintainability.
  2. 02

    Review Routing

    Apply review modes in this order unless the user asks for a narrower scope:

    Correctness and edge casesSecurity and data handlingReliability and operability
  3. 03

    AI-Assisted Review Rules

    Apply these checks when reviewing AI-generated code or agent-created PRs:

    Human review is authoritative. AI findings are advisory until confirmed.Treat AI-generated code and agent-created PRs as higher-context review tasks, not lower-effort review tasks: the bottleneck moves from writing to verifying, so budget reviewer time accordingly rather than assuming autom…Judge AI-generated code against this codebase's actual conventions, not an abstract style guide — consistency with surrounding code is the more useful bar than "is this idiomatic in general."
  4. 04

    AI-Generated Code Review Checklist

    Apply these checks when reviewing AI-generated code or agent-created PRs:

    Apply these checks when reviewing AI-generated code or agent-created PRs:Sources: Hallucination Detection, AI Design Antipatterns
  5. 05

    Review the Tests, Not Just the Code

    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:

    Confirm new/changed behavior actually has a test that would fail without the fix, not just a test that happens to pass alongside it.Watch for tests that assert implementation details (mocking everything, checking internal call counts) instead of observable behavior — these pass trivially and catch nothing on refactor.Check that error paths and boundaries are tested, not just the happy path.

Permission review

Static risk signals and limitations

Network access

medium · line 238

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

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score92/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars80SourceRepository attention, not individual Skill quality
Compatibility2 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
vasilyu1983/AI-Agents-public
Skill path
frameworks/shared-skills/skills/software-code-review/SKILL.md
Commit
53f6cb73ea53a2646e3e7d4665062ad66f3683ac
License
MIT
Collected
2026-08-25
Default branch
main
View the original SKILL.md

Code Review

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.

Quick Reference

TaskUsePrimary Reference
General PR or diff reviewBaseline review flow and severity rubricreferences/operational-playbook.md
AI-generated or agent-created changesHuman-in-the-loop review rules and platform controlsreferences/automation-tools.md
Building or tuning an AI review tool/integrationPre-review deterministic gate, size-gated planning pass, self-refutation filter passreferences/deterministic-vs-llm-routing.md
Backend/API reviewError handling, contracts, persistence, operabilityassets/backend-api/api-review.md
Frontend reviewAccessibility, responsive behavior, Core Web Vitalsassets/web-frontend/frontend-review.md
Mobile reviewPlatform patterns, lifecycle, permissions, UXassets/mobile/mobile-review.md
Infrastructure reviewCI/CD, IaC, secrets, deploy safetyassets/infrastructure/infrastructure-review.md
Smart contract reviewAccess control, reentrancy, unsafe assumptionsassets/blockchain/crypto-review.md
Data / ML reviewPipelines, experiments, models, deploymentassets/data-ml/data-pipeline-review.md

When to Use This Skill

Use this skill when the primary task is to:

  • review a PR, merge request, or diff
  • find correctness, security, reliability, or maintainability issues
  • assess test gaps and regression risk
  • critique AI-generated or agent-created changes before merge
  • recommend small, behavior-preserving refactors

When NOT to Use This Skill

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, reliability, performance, and maintainability.
  4. Pull in the stack overlay only when the code actually needs that domain-specific lens.
  5. Return concrete findings with evidence, then verify any platform-specific claims via the navigation sources.

ASCII Flow

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

Review Routing

Apply review modes in this order unless the user asks for a narrower scope:

  1. Correctness and edge cases
  2. Security and data handling
  3. Reliability and operability
  4. Performance and cost
  5. Maintainability and test coverage

Stack overlays:

Platform overlays:

  • GitHub: Copilot review, repository instructions, excluded files, Code Quality, merge queue
  • GitLab: Duo review instructions, merge request approvals, approval rules
  • Bitbucket: Code Insights, branch restrictions, required checks

If the user asks a platform-specific automation question, open the official entries in data/sources.json first and use references/automation-tools.md.

AI-Assisted Review Rules

  • Human review is authoritative. AI findings are advisory until confirmed.
  • Treat AI-generated code and agent-created PRs as higher-context review tasks, not lower-effort review tasks: the bottleneck moves from writing to verifying, so budget reviewer time accordingly rather than assuming automation shrinks the review workload.
  • Judge AI-generated code against this codebase's actual conventions, not an abstract style guide — consistency with surrounding code is the more useful bar than "is this idiomatic in general."
  • Prefer native platform controls before third-party bots:
    • repository or path-specific review instructions
    • excluded files / generated file filters
    • required checks, approval rules, and merge queues
  • Do not accept benchmark, pricing, or feature-comparison claims from memory. Verify current tool status first — this space (GitHub Copilot code review, CodeRabbit, Qodo/PR-Agent, and adjacent tools) changes ownership, pricing, and capability frequently; see references/automation-tools.md and data/sources.json and re-verify before quoting specifics.
  • Never pin or cite a specific AI model version/ID as a reviewer-facing fact; capability and behavior shift too fast for that to stay true.

AI-Generated Code Review Checklist

Apply these checks when reviewing AI-generated code or agent-created PRs:

CheckWhat to look for
Hallucinated importsPackages or methods that don't exist; verify with npm info / pip index
Stale APIsDeprecated methods, old signatures, removed features
Security gapsMissing input validation, hardcoded secrets, SQL concatenation, unescaped output
Missing error handlingHappy-path only; no try/catch, no null checks, no timeout handling
Redundant abstractionsUnnecessary wrappers, premature generalization, over-engineered patterns
Copy-paste driftSimilar blocks with subtle inconsistencies across files
Test theaterTests that assert implementation details, mock everything, or test the framework
Accessibility omissionsMissing alt text, broken ARIA, no keyboard handling, div soup
Design system violationsComponents that ignore existing tokens, spacing, or component patterns
Confident but wrong commentsDocstrings that describe what the code should do, not what it actually does

Sources: Hallucination Detection, AI Design Antipatterns

Severity Rubric

PriorityLabelCriteriaReview action
P0BLOCKERData loss, security hole, correctness bug, crashes in prod pathMust fix before merge
P1REQUIREDMissing error handling, broken rollback, undefined behavior, SLA violationMust fix before merge
P2SUGGESTEDTest gap for non-critical path, minor inefficiency, readability issueFix in this PR or tracked issue
P3OPTIONALStyle preference, naming taste, future improvementAuthor decides; no block

Mark each finding with its priority and label. Do not lump P0 and P3 findings in the same comment thread.

When Not to Block a Merge

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:

  • P3-only findings (style, naming taste, a "nicer" abstraction) — leave as non-blocking suggestions and let the author decide.
  • A correct approach you would have written differently, with no identified defect or maintainability cost.
  • Missing test coverage for genuinely low-risk, low-change-frequency code, when the author explicitly acknowledges the gap and it is tracked.
  • Pre-existing issues outside the diff's blast radius — file a follow-up instead of expanding this review's scope.
  • Disagreements that are actually about product/requirements, not the code — escalate to the right owner rather than relitigating in review comments.

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.

Rubber-Stamp Detection

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:

  • Approval on a diff far larger than roughly 200-400 LOC with review duration implausibly short for that size (see references/large-pr-review-strategies.md and references/code-review-metrics.md for the size/pace data this heuristic is based on).
  • "LGTM" with zero substantive comments on a change touching auth, money movement, migrations, or public APIs.
  • A team or individual with a defect-escape rate trending up while review turnaround trends down — the speed gain is likely coming from skipped scrutiny.
  • Approvals that only restate the PR description back rather than referencing specific lines or behavior.

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.

Review the Tests, Not Just the Code

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:

  • Confirm new/changed behavior actually has a test that would fail without the fix, not just a test that happens to pass alongside it.
  • Watch for tests that assert implementation details (mocking everything, checking internal call counts) instead of observable behavior — these pass trivially and catch nothing on refactor.
  • Check that error paths and boundaries are tested, not just the happy path.
  • Treat a bug fix with no regression test as incomplete, not as a style nit.

Known Traps

  • Reviewing from the PR description first and the diff second. Treat descriptions as claims, not evidence.
  • Spending most effort on style and almost none on behavioral risk, migration risk, or rollback safety.
  • Treating generated files, snapshots, or lockfile churn as noise without checking whether they hide contract or dependency drift.
  • Reviewing only changed lines when the bug is in the surrounding invariant, caller expectations, or teardown path.
  • Calling out needs tests generically without naming the missing scenario, boundary, or regression.
  • Accepting benchmark, security, or framework claims in the diff comments without live verification when the claim is version-sensitive.

Common Anti-Patterns

  • Treating review as approval theater: light comments on naming while correctness and rollout risk remain unexamined.
  • Rewriting the author's architecture in review when the real issue is a smaller bug, missing guardrail, or weak contract.
  • Conflating preference with defect. Mark taste as optional and reserve blocking comments for correctness, safety, or maintainability risk.
  • Collapsing multiple independent issues into one large comment thread instead of separating discrete findings with evidence.
  • Using AI review output as authoritative instead of validating each finding against the actual diff and local context.

Default Review Output

Default to:

  • a short summary of intent and risk
  • findings grouped by P0 / P1 / P2 / P3
  • REQUIRED vs OPTIONAL labeling
  • concrete remediation: minimal diff, test case, or configuration fix
  • follow-up questions only when requirements are genuinely unclear

Use 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.

Navigation

Core references:

Templates:

Sources:

  • data/sources.json - verified source set with platform status and replacements for retired links

Freshness Protocol

When the user asks for:

  • the best or latest code review tool
  • current PR automation practices
  • GitHub Copilot vs CodeRabbit vs Qodo vs platform-native options
  • whether a tool is still relevant

you must:

  1. Use web search.
  2. Prefer official docs and release/status pages over vendor comparison blogs.
  3. Use data/sources.json as the starting source set.
  4. Treat vendor metrics and case-study performance numbers as directional unless independently verified.

If web access is unavailable, say so and answer from data/sources.json, clearly marking time-sensitive advice as unverified.

Fact-Checking

  • Known bugs, regressions, framework/compiler/runtime footguns, and version-specific crash or workaround guidance must be verified against current primary web sources before being treated as current fact.
  • Use web search/web fetch to verify current external facts, versions, pricing, deadlines, regulations, or platform behavior before final answers.
  • Prefer primary sources; report source links and dates for volatile information.
  • If web access is unavailable, state the limitation and mark guidance as unverified.

Learnings Loop

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

What to verify before installation and use

What does the software-code-review source document cover?

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.

How do I install software-code-review?

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.

Which Agent platforms does the source record declare?

The pinned source record declares support for: codex, claude code.

Which permission-related actions were detected?

Static rules flagged network in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing

Computed 9024,921

alirezarezvani/claude-skills

terraform-patterns

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.

Computed 9691,519

ruvnet/RuView

github-code-review

Comprehensive GitHub code review with AI-powered swarm coordination

Computed 96147

oaustegard/claude-skills

invoking-github

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).

Computed 9425

Borda/AI-Rig

review

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