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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
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
Comments
- β¦
More skills from this repository
batch-operations
8.2kHelps your agent make the same change across many files at once, such as renaming a function or replacing an old import everywhere.
brainstorming
8.2kTeaches your agent to ask clarifying questions before building anything new or complex, so it understands your goal first.
code-review-graph
8.2kHelps your agent review code in large projects using a structural map, so it reads only the files affected by a change.
context-compression
8.2kTeaches your agent to shorten long chat sessions by summarizing finished work and keeping key decisions, so it stays focused.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.