Perform comprehensive code reviews covering security, style, performance, and best practices. Use when reviewing code changes before commit or merge, auditing existing code, or checking for vulnerabilities.
Performs comprehensive code reviews checking for security vulnerabilities, style issues, performance problems, and best practices. Use it to audit code changes before commit/merge or scan existing code for bugs and vulnerabilities.
/plugin marketplace add ANcpLua/ancplua-claude-plugins/plugin install code-review@ancplua-claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Purpose: Perform comprehensive code reviews covering security, style, performance, and best practices.
Use this Skill when:
Before reviewing:
# See what changed
git diff --stat
git diff
# Or for specific files
git diff path/to/file
Understand:
Check for:
Red flags:
eval(), exec(), or similar.Verify:
Look for:
Check:
Summarize findings by severity:
## Code Review Summary
### Critical (must fix)
- None found
### High (should fix)
- SQL injection risk in UserService.ts:42
### Medium (consider fixing)
- Function exceeds 50 lines in ApiHandler.ts:120
### Low (nice to have)
- Consider extracting magic number to constant
### Info
- Good use of early returns in validation logic
| Level | Description | Action |
|---|---|---|
CRITICAL | Security vulnerability, data loss | Must fix now |
HIGH | Bugs, significant issues | Fix before merge |
MEDIUM | Code quality, maintainability | Fix soon |
LOW | Minor improvements | Nice to have |
INFO | Observations, positive feedback | No action needed |
Bad:
const query = `SELECT * FROM users WHERE id = ${userId}`;
Good:
const query = 'SELECT * FROM users WHERE id = ?';
db.query(query, [userId]);
Bad:
element.innerHTML = userInput;
Good:
element.textContent = userInput;
Bad:
const users = await getUsers();
for (const user of users) {
user.posts = await getPosts(user.id);
}
Good:
const users = await getUsersWithPosts();
Bad:
const data = JSON.parse(input);
Good:
try {
const data = JSON.parse(input);
} catch (error) {
logger.error('Invalid JSON input', { error });
throw new ValidationError('Invalid input format');
}
code-review to check.autonomous-ci to verify.code-review to check.smart-commit to commit.Complete review checklist:
Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.