agentsclimarketplace

Code review

Skill DevelopersGlobal/ai-agent-skills/skills/code-review

AI agent skills for production grade applications

Install
npx -y skills add DevelopersGlobal/ai-agent-skills --skill code-review

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Structured code review focusing on correctness, security, and maintainability. Correctness before style. Every reviewer comment must be actionable.

SKILL.md

3.0 KB, as published. Nobody here has run it

Overview

Code review is the last line of defense before code reaches production. This skill structures the review process to catch real issues — not just style preferences — and ensures every comment is actionable and proportionate.

When to Use

  • Before merging any pull request
  • When reviewing AI-generated code
  • When auditing existing code for quality

Process

Step 1: Understand the Change

  1. Read the PR description fully — understand the intent before reading code.
  2. Check: Does the implementation match the stated intent?
  3. Identify the risk level: data mutation? auth changes? public API?

Verify: You understand what the PR is trying to accomplish.

Step 2: Correctness Review

  1. Does the code do what it claims to do?
  2. Are there off-by-one errors, null dereferences, or race conditions?
  3. Are all error cases handled?
  4. Do tests cover the happy path AND key failure paths?

Verify: You can trace the execution path for the primary use case and 2 failure cases.

Step 3: Security Review

  1. Apply security-hardening skill to any auth/input/data changes.
  2. Does this change open any OWASP Top 10 vulnerabilities?
  3. Are any secrets or PII handled correctly?

Step 4: Maintainability Review

  1. Will the next developer understand this code without the author present?
  2. Are functions doing one thing?
  3. Are names descriptive and accurate?
  4. Is complexity proportionate to the problem?

Step 5: Provide Actionable Feedback

  1. Every comment must be one of:
    • Blocker: Must be fixed before merge
    • Suggestion: Optional improvement
    • Question: Needs clarification (not necessarily a problem)
  2. Blockers must be specific: "This SQL query is vulnerable to injection via {username} — use parameterized queries."
  3. Never leave vague comments like "this doesn't look right" without explaining why.

Common Rationalizations (and Rebuttals)

ExcuseRebuttal
"I'll review it quickly"A rushed review is not a review. Take the time or ask someone who can.
"The tests pass so it's fine"Tests prove the code works for tested inputs, not that it's secure or maintainable.
"I'll comment on style later"Style comments without blocker separation waste everyone's time. Label them.

Verification

  • Correctness verified for primary and failure paths
  • Security review applied to sensitive changes
  • All comments labeled (blocker/suggestion/question)
  • Tests reviewed for meaningful coverage
  • No vague or unactionable comments

References

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.