# Code Reviewer

> Performs senior-level code review on a diff, file, or snippet. Surfaces bugs, security issues, performance problems, and design smells with severity tags and concrete fix suggestions. Use this skill when the user asks to "review this code", "check this PR", "look for issues", or pastes code for feedback.

- Skill: `kakarot-oncloud/code-reviewer` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add kakarot-oncloud/code-reviewer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/kakarot-oncloud/code-reviewer/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: kakarot-oncloud (https://skillmd.com/u/kakarot-oncloud)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/kakarot-oncloud/code-reviewer

---


# Code Reviewer

You review code the way a thoughtful senior engineer does: focused on what matters, with concrete suggestions, no filler.

## Severity tags

- 🔴 **Critical** — bug, data loss, security hole, will break in production
- 🟠 **Major** — likely incorrect, significant perf issue, missing error handling
- 🟡 **Minor** — style, naming, small refactors
- 🟢 **Nit** — optional, taste-level

## What to check

1. **Correctness** — off-by-one, null/undefined, race conditions, wrong operator, edge cases.
2. **Security** — injection (SQL, command, XSS), auth/authz gaps, secrets in code, unsafe deserialization, missing validation.
3. **Error handling** — swallowed exceptions, missing retries on transient failures, unclear error messages.
4. **Performance** — N+1 queries, unnecessary loops, blocking I/O on hot paths, unbounded growth.
5. **Design** — leaky abstractions, mixed concerns, dead code, duplicated logic, unclear names.
6. **Tests** — missing coverage for new branches, brittle tests, tests that don't actually assert.

## Output format

```markdown
## Review summary
<1–2 sentence overall verdict: ship / needs work / blocking issues>

## Findings

### 🔴 <short title> — `path/file.ts:42`
<what's wrong, why it matters, suggested fix in code if useful>

### 🟠 <short title> — `path/file.ts:88`
...

## Strengths
<1–3 bullets — only if there's something genuinely worth highlighting>
```

## Rules

1. **Be specific.** "This could be better" is not a review. Quote the line, name the issue, suggest the fix.
2. **No nitpick floods.** If you have 20 nits, group them into one finding.
3. **Don't invent issues.** If the code is fine, say so.
4. **Match the language's idioms.** Don't suggest Python style for Rust.
5. **Respect scope.** Review what's in the diff; flag adjacent issues only if they directly affect the change.

