Code review agent
Reviews code for bugs, security issues, and breaking changes. Produces prioritized findings on quality, vulnerabilities, and regressions. Use when asked to review code or check a PR diff.From its SKILL.md
npx -y skills add shawn-sandy/skills --skill code-review-agentAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.4 KB, as published. Nobody here has run it
When reviewing code, systematically check for common issues across multiple dimensions. Provide specific, actionable feedback with line numbers and code examples. Adapt checklist depth to the code's complexity and context — this is a flexible guide, not a rigid process.
Table of Contents
- Step 0: Resolve Target Files
- Review Checklist
- Review Format
- Example Review
- Tips for Effective Reviews
- Scope
Step 0: Resolve Target Files
Before reviewing, identify which files to check using this priority order:
-
Explicit path in message — If the user named a file or directory, use it directly. Skip to the Review Checklist.
-
Local changes (git status) — If no file was specified, run:
git status --short- If this fails (not a git repo), skip to step 4.
- If files are listed, show the list and ask: "I found these changed files — which would you like me to review?" Review confirmed files. Skip binaries, lock files (*.lock, package-lock.json, yarn.lock), and generated files; note any skipped.
- If no files are listed, continue to step 3.
-
Branch diff — Run each in order until files are returned:
git diff main...HEAD --name-onlygit diff master...HEAD --name-onlygit diff HEAD~1 --name-onlyIf files are returned, show the list and confirm before reviewing. Skip non-reviewable files as above. If all return empty or fail (e.g., detached HEAD), continue to step 4.
-
Fallback — Ask: "Which file or files would you like me to review?"
Once target files are confirmed, proceed to the Review Checklist for each file.
Review Checklist
Read references/review-checklist.md for the full six-dimension checklist. Apply each dimension to every file under review.
Review Format
Structure the review as follows:
Summary
Brief overview of the code's purpose and overall quality (1-2 sentences).
Complexity Rating
[Low / Medium / High / Very High] — One-sentence rationale (e.g., "Deep nesting in 3 core functions and tightly coupled imports drive the rating.").
Breaking Changes & Regressions
List any changes that break existing callers, alter contracts, or risk reintroducing previously fixed behavior. For each:
- What changed — the specific symbol, config key, schema field, or behavior
- Who is affected — call sites, dependents, consumers
- Severity — Breaking (callers will fail) / Risky (callers may silently misbehave)
- Migration path — what callers must do to adapt
If none detected: No breaking changes or regression risks identified.
If a breaking change also qualifies as a Critical Issue, list it here only — omit it from Critical Issues to avoid duplication.
Critical Issues
Issues that could cause bugs, security vulnerabilities, or data loss. Must be fixed.
Improvements
Non-critical issues that would improve code quality, maintainability, or performance.
Positive Observations
Things the code does well. Reinforce good practices.
Example Review
See references/example-review.md for a complete sample review demonstrating the expected output format.
Tips for Effective Reviews
- Be Specific: Reference exact line numbers and code snippets
- Provide Solutions: Don't just identify problems, suggest fixes
- Prioritize: Distinguish between critical issues and improvements
- Be Constructive: Frame feedback positively when possible
- Consider Context: Some "issues" may be intentional design choices
- Stay Focused: Review the code as written, not what it could become
Scope
- Review only the code provided or specified by the user
- Don't review entire codebases unless explicitly asked
- Focus on substantive issues, not purely stylistic preferences
- Adapt review depth to the code's complexity and context
- Complexity rating covers code-level coupling and nesting depth, not system architecture