Skip to content
velonx*SKILLS

Code Reviewv1.1.0featured

Review a diff, branch or pull request for correctness bugs, security issues and maintainability problems, and report prioritised findings with file and line references. Use when the user asks to review code, check a PR, look for bugs before merging, or asks "what could break".

Author
Velonx
License
MIT
Updated
Sep 25, 2026

Overview

A focused review procedure that finds problems that matter — bugs, security holes, data loss, broken contracts — before style nits, and explains each finding so the author can act on it.

When to Use

  • "Review this PR / diff / branch", "anything wrong with this?", "is this safe to merge?"
  • Before a release, after a large refactor, or when onboarding to unfamiliar code.

Installation

coming soonVelonx CLI:velonx install code-review
  1. Get the skill folder

    git clone --depth 1 https://github.com/velonx/agent-skills.git
    The skill is agent-skills/skills/code-review/. Or open it on GitHub and download the files.
  2. Give SKILL.md to your agent as instructions

    Add it to the system prompt, custom instructions or rules file your agent reads. Keep the rest of the folder next to it if the skill refers to examples or scripts.
  3. Ask for the task in your own words

    The agent follows the skill when your request matches it. You can also name it: “use code-review”.

Agents move these settings between versions — if a path doesn’t match, check your agent’s docs.

Usage

  1. Get the change. For a branch: git diff <base>...HEAD. For a PR: fetch the diff. Note which files changed and why (PR description, commit messages).
  2. Understand intent before judging: what is this change supposed to do? If unclear, say so — that is itself a finding.
  3. Read the surrounding code, not just the diff: callers of changed functions, tests, config. Most real bugs are in how new code meets old code.
  4. Check, in priority order:
    1. Correctness — logic errors, off-by-one, null/undefined, wrong conditions, race conditions, error paths.
    2. Security — injection, missing auth checks, secrets in code, unsafe deserialisation, path traversal.
    3. Data safety — migrations, destructive operations, backwards compatibility.
    4. Contracts — changed function signatures, API responses, config keys; are all callers updated?
    5. Tests — do tests cover the new behaviour and the failure cases?
    6. Maintainability — duplication, needless complexity, naming. Keep these brief.
  5. Report each finding as: [severity] path/to/file.ext:line — what is wrong → concrete scenario that breaks → suggested fix Severity: blocker, major, minor, nit.
  6. Lead with a one-line verdict: ready to merge, merge after fixes, or needs rework.
  7. Don't pad: if there are no real issues, say so.

Examples

Prompt: "Review my branch before I open the PR."

See examples/review-output.md for a complete review in the expected format.

Requirements & compatibility

Your agent needs

  • Read and write local files
  • git

Written for

GenericClaudeOpenAIGeminiCursor
  • Read access to the repository and git.

Limitations

  • Static reading only unless tests are run separately; runtime behaviour may differ.
  • Large diffs (>1,500 lines) should be reviewed in parts.

Files

Changelog

  • 1.1.0 — Findings now include a concrete failure scenario; added verdict line.
  • 1.0.0 — Initial release.

Contributing

This skill lives in velonx/agent-skills. Improvements go through a pull request, reviewed by maintainers.