shennawardana23/skillme/code-reviewer
Claude Code and agent skill by shennawardana23/skillme
- community
Checking that the SKILL.md file is still in the repository.
Runs a fixed-category severity scan over a diff, file, or snippet — correctness, security, error handling, concurrency, performance, readability, tests — and emits a CRITICAL/HIGH/MEDIUM/LOW/INFO-graded report. Use when asked to "scan this code", grade a change by severity, or review Go code for concurrency bugs (data races, goroutine leaks, deadlocks) alongside the usual review axes.
Install
npx vskill@latest install shennawardana23/skillme/code-reviewerSKILL.md
The same SKILL.md was published earlier as shennawardana23/skillme/code-reviewer.
Code Reviewer
A mechanical, checklist-driven scan: walk every category below in order, record every match with a severity, then emit the report. This is a scanner, not a workflow — it does not cover change sizing, review etiquette, or process (see code-review-and-quality for that). It does not walk a security-priority checklist end to end (see security-review for that). Its distinguishing category is concurrency, which the other review skills in this catalog do not cover.
Category checklist
Work through every category for every changed file. Don't stop at the first finding — a diff with one CRITICAL often has MEDIUM issues too.
Correctness
- Logic bugs, off-by-one errors, wrong boundary conditions
- Missing nil/zero-value checks and unhandled edge cases
- Incorrect assumptions about a library's behavior — check the actual doc/signature, not intuition (e.g., does
strings.TrimSuffixno-op silently if the suffix doesn't match? yes — a common mis-assumption)
Security
- SQL/command/template injection via unsanitized input
- Hardcoded secrets, credentials, or API keys
- Insecure cryptographic choices (MD5/SHA1 for anything security-sensitive, ECB mode,
math/randfor tokens) - Missing authentication or per-resource authorization on new endpoints
- Path traversal, open redirects, SSRF-shaped calls (server fetches a user-influenced URL)
Error handling
- Errors silently swallowed (
_ = err) or logged but not propagated - Missing cleanup on error paths —
defer f.Close()placed before the error check, not after - Panic recovery missing in goroutines (an unrecovered panic in a goroutine crashes the whole process, not just that goroutine)
- Errors wrapped with
%wlosing sentinel-comparability, or not wrapped at all, losing context
Concurrency (Go)
- Data races: map or slice read/write from multiple goroutines without a mutex or
sync.Map. Don't just read the code — rungo test -raceand check the diff's package is covered. - Goroutine leaks: a goroutine started with no way for it to ever return — no
context.Context, nodonechannel, no bound on the channel it's blocked sending to. - Deadlocks: locks acquired in inconsistent order across two code paths; a channel send/receive with no counterpart and no
selectwith actx.Done()case. mu.Lock()not immediately followed bydefer mu.Unlock()on the next line — anything between them is a window where an early return skips the unlock.- A
WaitGroup.Addcall issued inside the goroutine it's supposed to be counting, instead of beforego func(){...}()— a benign-looking reorder that reintroduces the racego vet'sloopclosure/-racewon't always catch on the first run.
Performance
- Unnecessary allocations in a hot path (building a new slice/map per call where reuse is possible)
- O(n²) via a nested loop over the same slice where a map/set lookup gives O(n)
- Missing
context.Contextcancellation propagation into blocking calls - Large structs passed by value in a hot path instead of by pointer
Readability & maintainability
- Function length over ~60 lines with multiple responsibilities — should be decomposed
- Names that don't convey intent (
x,tmp,data,resultwith no qualifying context) - Missing doc comment on exported symbols
- Duplicated logic that should be extracted to a shared helper
Test coverage
- Missing happy-path or error-path test for new behavior
- Missing table-driven tests where the function has multiple input variants
- A test that doesn't assert on error content, only
err != nil - No
-racecoverage for new concurrent code
Severity levels
| Level | Meaning | Required before merge | |
|---|---|---|---|
| CRITICAL | Data loss, security breach, crash, confirmed data race | Yes — block merge | |
| HIGH | Incorrect behavior, likely race condition, goroutine leak | Yes — block merge | |
| MEDIUM | Performance regression, missing test, error-handling gap | Strongly recommended | |
| LOW | Style, naming, minor readability | Nice-to-have | |
| INFO | Observation, question, non-blocking suggestion | No action required |
Output format
Be direct: name the category and severity for every finding, always propose a concrete fix (never just "this looks off"), and acknowledge at least one thing done well.
Gotchas
go vetandstaticcheckdo not detect most data races — onlygo test -raceruns the actual race detector against real execution. A cleango vetpass is not evidence of race-freedom; always ask "was this run under-race?" before clearing a concurrency finding.sync.WaitGroup.Addmust happen in the goroutine that starts the child goroutines, before thegostatement — moving it inside the new goroutine (a change that "looks" equivalent) creates a race betweenAddandWaitthat only manifests under scheduling pressure, so it usually passes CI and fails in production.- A large struct passed by value isn't automatically a performance bug — for structs under ~3 machine words, the Go compiler often keeps them in registers and copying is cheaper than the pointer indirection. Flag it only when profiling data or a genuinely large struct (10+ fields, embedded slices/maps) supports it — don't cite this pattern from code reading alone.
- Buffered channels can mask a goroutine leak in testing (the leaked goroutine's send never blocks because the buffer absorbs it) while still leaking in production once the buffer fills — check the channel's actual capacity against the worst-case fan-in, not just "it's buffered so it's fine."
Real-world grounding
Uber's public "go-torch"/production incident write-ups and the Go team's own sync.WaitGroup documentation both call out the Add-inside-goroutine ordering bug as the most common WaitGroup misuse in real codebases — it compiles, passes most test runs, and only shows up under load, which is exactly the profile of a concurrency defect a syntactic checklist alone will miss without also asking "was -race run."
Verification
- [ ] Every CRITICAL/HIGH finding names a category and cites file:line
- [ ] Every finding has a concrete fix, not just a description of the problem
- [ ] Concurrency-touching diffs were checked against
-raceoutput, not just read - [ ] At least one positive observation is included
- [ ] The quality score is justified by the findings above it, not asserted alone
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/code-reviewer/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shennawardana23/skillme/code-reviewer)