Code review

From definableai/definable.ai · View interactive version

Code review is an AI agent skill from the GitHub repository definableai/definable.ai. Systematic code review with severity-ranked findings

How to use this skill

Skill file

When to Use

Use this skill when reviewing code changes (diffs, PRs, or complete files) for correctness, maintainability, security, and adherence to best practices.

Steps

  1. Understand context: Read the full diff or file. Identify the purpose of the change (feature, bugfix, refactor, etc.).
  2. Check correctness: Verify logic, edge cases, error handling, and return values. Look for off-by-one errors, null/undefined handling, and race conditions.
  3. Assess security: Check for injection vulnerabilities (SQL, XSS, command), improper input validation, hardcoded secrets, and insecure defaults.
  4. Evaluate design: Consider naming clarity, function cohesion, abstraction level, and adherence to existing patterns in the codebase.
  5. Review tests: Check if changes are covered by tests. Identify missing test cases for edge cases and error paths.
  6. Rank findings: Assign severity to each finding and present them in priority order.

Severity Levels

Rules

Output Format

For each finding:

[SEVERITY] file:line — Short title
Description of the issue and why it matters.
Suggested fix or alternative approach.

End with a summary: total findings by severity, overall assessment, and whether the change is ready to merge.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.