Prompt file imported from justinbornais/pdf-viewer (
.github/prompts/review.prompt.md). Fill in{{file}},{{selection}}before use. Copyright stays with the author.
Perform a structured code review. Reference the code-review and security-review skills.
Workflow
- Identify changes: check
git diff --cached, fall back togit diff, thengit diff HEAD~1 - Read each changed file with surrounding context
- Check for linter results and test results
- Verify security: no hardcoded secrets, no SQL injection, no XSS, auth on protected endpoints, error messages don't leak internals
- Check code quality: files <800 lines, functions <50 lines, nesting <4, proper error handling, no dead code
- Flag new/modified code paths lacking tests
File context: {{file}}
Selected code: {{selection}}
Report Format
- Files reviewed count
- Issues by severity (critical / high / medium / low)
- Decision: Approve | Request Changes | Block
- Each issue:
file:line, category, impact, recommendation