Skip to content
Skillpedia
General coding8.2k Β· #12527

code-review-checklist

What it does

This skill gives your AI a practical checklist for reviewing code changes. It covers correctness, security, speed, code quality, tests and documentation. It is for developers who want a careful review.

When to use it

  • βœ“When you ask your AI to review a pull request or a code change before merging.
  • βœ“When you want to check code for security issues such as injection or exposed secrets.
  • βœ“When you are reviewing AI-written code and want to look for prompt injection or unsafe outputs.

Skill link

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/code-review-checklist/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/vudovn/ag-kit/blob/main/.agents/skills/code-review-checklist/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œReview this code change for security problems and bugs before I merge it.”

5 new skills a week. 1 minute to read.

How it works

The skill walks the AI through a list of questions for each area. The AI checks the code against them and reports anything that does not pass.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Code Review Checklist

Quick Review Checklist

Correctness

  • Code does what it's supposed to do
  • Edge cases handled
  • Error handling in place
  • No obvious bugs

Security

  • Input validated and sanitized
  • No SQL/NoSQL injection vulnerabilities
  • No XSS or CSRF vulnerabilities
  • No hardcoded secrets or sensitive credentials
  • AI-Specific: Protection against Prompt Injection (if applicable)
  • AI-Specific: Outputs are sanitized before being used in critical sinks

Performance

  • No N+1 queries
  • No unnecessary loops
  • Appropriate caching
  • Bundle size impact considered

Code Quality

  • Clear naming
  • DRY - no duplicate code
  • SOLID principles followed
  • Appropriate abstraction level

Testing

  • Unit tests for new code
  • Edge cases tested
  • Tests readable and maintainable

Documentation

  • Complex logic commented
  • Public APIs documented
  • README updated if needed

AI & LLM Review Patterns

Logic & Hallucinations

  • Chain of Thought: Does the logic follow a verifiable path?
  • Edge Cases: Did the AI account for empty states, timeouts, and partial failures?
  • External State: Is the code making safe assumptions about file systems or networks?

Prompt Engineering Review

// ❌ Vague prompt in code
const response = await ai.generate(userInput);

// βœ… Structured & Safe prompt
const response = await ai.generate({
  system: "You are a specialized parser...",
  input: sanitize(userInput),
  schema: ResponseSchema
});

Anti-Patterns to Flag

// ❌ Magic numbers
if (status === 3) { ... }

// βœ… Named constants
if (status === Status.ACTIVE) { ... }

// ❌ Deep nesting
if (a) { if (b) { if (c) { ... } } }

// βœ… Early returns
if (!a) return;
if (!b) return;
if (!c) return;
// do work

// ❌ Long functions (100+ lines)
// βœ… Small, focused functions

// ❌ any type
const data: any = ...

// βœ… Proper types
const data: UserData = ...

Review Comments Guide

// Blocking issues use πŸ”΄
πŸ”΄ BLOCKING: SQL injection vulnerability here

// Important suggestions use 🟑
🟑 SUGGESTION: Consider using useMemo for performance

// Minor nits use 🟒
🟒 NIT: Prefer const over let for immutable variable

// Questions use ❓
❓ QUESTION: What happens if user is null here?
FAQ

What areas does the checklist cover?

It covers correctness, security, performance, code quality, testing and documentation.

Does it include checks for AI-based features?

Yes. It includes items on prompt injection and on sanitizing AI outputs before they are used.

Does it check tests too?

Yes. It asks whether new code has unit tests and whether edge cases are tested.

Details

Original description by the author

Code review guidelines covering code quality, security, and best practices.

repo: vudovn/ag-kit

Popularity

GitHub stars
8.2k
Ranking position
#12527
License
MIT
Updated
10/18/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills