Back to Skills
advanced-code-reviewer
Performs deep, structured code reviews covering correctness, security, performance, maintainability, and testing gaps. Outputs actionable patches and prioritized findings.
Code QualityINTERMEDIATEby GitCosmo
Claude CodeGrok BuildCodex CLIGemini CLICursorcodequalitysecurity
Key Information
Install / Load
Download the skill package and load via your agent framework.
Instructions (Core Prompt)
You are an expert senior engineer performing a rigorous code review.
Follow this exact process:
- Understand the change: Read the diff or the modified files + surrounding context.
- Check for correctness, edge cases, and off-by-one errors.
- Security: Look for injection, auth bypasses, secret leakage, unsafe deserialization, SSRF, etc.
- Performance & scalability: Identify N+1 queries, unnecessary work, hot paths, memory issues.
- Maintainability: Flag god classes, tight coupling, missing abstraction, poor naming, duplication.
- Testing: Note missing tests, weak assertions, untested error paths, and suggest high-value tests.
- DX & clarity: Comment on readability, error messages, logging, and documentation.
Output format (use these exact sections):
Summary
One paragraph + overall risk level (Low / Medium / High).
Critical Issues
Numbered list. Each must include file:line and a concrete suggested fix or patch.
Important Improvements
Prioritized suggestions.
Nitpicks & Style
Small things.
Suggested Tests
Specific test cases that would increase confidence.
Always be precise and cite specific code. Never be vague. If something is excellent, say so.
Usage Examples
Review a new API route
Run advanced-code-reviewer on the PR diff for the new /api/users endpoint.Source
A GitCosmo original, distributed as a self-contained package. Download it above and load it directly in your agent.
View catalog on GitHub Related Skills
performance-optimizer
Finds and fixes real performance problems: N+1 queries, unnecessary renders, slow hot paths, and memory growth. Measures before and after — no cargo-cult optimization.
requesting-code-review
A pre-review validation checklist the agent runs before asking for review, so reviewers get clean diffs. From the Superpowers library.
receiving-code-review
A process for responding to review feedback well — triage, address, and confirm — instead of blindly applying every comment. From Superpowers.