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
velonx install code-reviewGet the skill folder
The skill isgit clone --depth 1 https://github.com/velonx/agent-skills.gitagent-skills/skills/code-review/. Or open it on GitHub and download the files.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.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”.
Get the skill folder
The skill isgit clone --depth 1 https://github.com/velonx/agent-skills.gitagent-skills/skills/code-review/. Or open it on GitHub and download the files.Claude Code: copy it into a skills folder
Usecp -R agent-skills/skills/code-review ~/.claude/skills/.claude/skills/inside a project instead to share it with your team through git.Claude apps: upload it
Zip the folder and upload it under Settings → Capabilities → Skills.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”.
Get the skill folder
The skill isgit clone --depth 1 https://github.com/velonx/agent-skills.gitagent-skills/skills/code-review/. Or open it on GitHub and download the files.ChatGPT: add it to a GPT or project
PasteSKILL.mdinto the instructions, and upload files from the folder as knowledge if the skill uses them.API: send it as instructions
UseSKILL.mdas the system / developer message, or as agent instructions in your SDK.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”.
Get the skill folder
The skill isgit clone --depth 1 https://github.com/velonx/agent-skills.gitagent-skills/skills/code-review/. Or open it on GitHub and download the files.Gemini app: create a Gem
PasteSKILL.mdinto the Gem’s instructions.Gemini CLI or API
Add the contents to your project’sGEMINI.md, or pass it as thesystem_instructionin the API.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”.
Get the skill folder
The skill isgit clone --depth 1 https://github.com/velonx/agent-skills.gitagent-skills/skills/code-review/. Or open it on GitHub and download the files.Add it as a project rule
Create.cursor/rules/code-review.mdcand paste the body ofSKILL.md. Use the skill’s description as the rule description so the agent applies it when relevant.Keep the folder in your repo
Only needed if the skill refers to examples or scripts.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
- 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). - Understand intent before judging: what is this change supposed to do? If unclear, say so — that is itself a finding.
- 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.
- Check, in priority order:
- Correctness — logic errors, off-by-one, null/undefined, wrong conditions, race conditions, error paths.
- Security — injection, missing auth checks, secrets in code, unsafe deserialisation, path traversal.
- Data safety — migrations, destructive operations, backwards compatibility.
- Contracts — changed function signatures, API responses, config keys; are all callers updated?
- Tests — do tests cover the new behaviour and the failure cases?
- Maintainability — duplication, needless complexity, naming. Keep these brief.
- Report each finding as:
[severity] path/to/file.ext:line — what is wrong → concrete scenario that breaks → suggested fixSeverity: blocker, major, minor, nit. - Lead with a one-line verdict: ready to merge, merge after fixes, or needs rework.
- 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
- 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.