code-review/SKILL.md
On-demand code review for directories, git diffs, staged changes, or files. Manual invocation, structured feedback.
npx skillsauth add snqb/my-skills code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review the last thing done in this conversation.
No args needed. Just say "review" or "review this".
If the context contains:
"review staged changes" → git diff --cached
"review diff main..HEAD" → git diff main...HEAD
"review src/auth/" → read & review dir
"review last 3 commits" → git diff HEAD~3..HEAD
╱╲
╱ ╲ Style ← automate (ruff/eslint)
╱────╲
╱ ╲ Tests
╱────────╲
╱ ╲ Docs
╱────────────╲
╱ ╲ Implementation
╱────────────────╲
╱ API Design ╲ ← FOCUS HERE
────────────────────
Source: morling.dev/blog/the-code-review-pyramid
Approve if it improves overall code health, even if not perfect.
Nit:Source: google.github.io/eng-practices
| Area | Check | |------|-------| | Design | Does it belong here? Right abstraction? | | Functionality | Works correctly? Edge cases? Concurrency? | | Complexity | Can be understood quickly? Over-engineered? | | Tests | Correct, sensible, useful? | | Naming | Clear intent without being verbose? | | Comments | Explain why, not what? | | Style | Consistent? (delegate to linter) |
Format: label: subject
| Label | Meaning |
|-------|---------|
| praise: | Highlight good stuff |
| nitpick: | Minor, non-blocking |
| suggestion: | Propose improvement |
| issue: | Problem that must be addressed |
| question: | Need clarification |
| thought: | Idea for consideration |
| chore: | Cleanup/maintenance task |
Decorations: (blocking), (non-blocking), (security), (performance)
suggestion (security): This SQL uses string concat.
Use parameterized queries to prevent injection.
Source: conventionalcomments.org
eval()/exec() → RCEpickle.load() untrusted data## Review: <context>
### Summary
<1-2 sentences>
### Issues
**file:line** - `issue:`/`suggestion:`/`nitpick:`
<description>
### Good
<acknowledge quality>
### Questions
<clarifications needed>
From Google eng-practices:
❌ "Why did you do this?" ✅ "This approach adds complexity without benefit because..."
Run before reviewing:
ruff check . # Python
eslint . # JS/TS
go vet ./... && staticcheck ./... # Go
cargo clippy # Rust
Don't waste review time on what tools catch.
documentation
Enrich Markdown articles with inline Wikipedia links. First mention of each notable entity gets a hyperlink. Use when asked to add wiki links, enrich, or add references to .md files.
development
Structured visual QA: screenshot → batch issues → fix all → verify. Replaces the 300-cycle screenshot→edit death spiral. Optional bishkek review as exit gate. Use when building/polishing UI with browser testing, or when user asks for N iterations/reviews.
development
Find complex code, analyze intent, recommend battle-tested library replacements. Uses radon/eslint for detection, GitHub quality search for alternatives.
research
Research real-world UI patterns from curated galleries (Collect UI, Component Gallery, Mobbin). Use when exploring what exists: dropdowns, accordions, inputs, navigation, cards, modals, etc.