Home / Skills / promptfoo/promptfoo

code-review

Reviews code for bugs, security issues, and best practices

skillLicense: MIT Source: promptfoo/promptfoo

Install

Copy this folder into your Claude Code project (needs Node.js):

npx degit promptfoo/promptfoo/examples/claude-agent-sdk/skills/sample-project/.claude/skills/code-review .claude/skills/code-review

Or install it for every project:

npx degit promptfoo/promptfoo/examples/claude-agent-sdk/skills/sample-project/.claude/skills/code-review ~/.claude/skills/code-review

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗

---
description: Reviews code for bugs, security issues, and best practices
---

# Code Review Skill

Review the provided code for:

1. **Bugs**: Logic errors, off-by-one errors, null/undefined handling
2. **Security**: Input validation, injection vulnerabilities, hardcoded secrets
3. **Best practices**: Naming conventions, error handling, code structure

Format your review as a list of findings with severity (high/medium/low) and suggested fixes.