Reviews code changes for bugs, security issues, and adherence to codebase patterns. Use this skill when reviewing diffs, commits, branches, or pull requests. It emphasizes finding real bugs (not style nitpicks), verifying that code follows established patterns, and providing actionable feedback with clear severity levels.
Review code changes to find bugs, security issues, and pattern violations. Focus on what matters: logic errors, edge cases, and whether the code fits the codebase. Avoid style zealotry.
Based on input, determine which type of review to perform:
| Input | How to Get Diff |
|-------|-----------------|
| No arguments (default) | git diff (unstaged) + git diff --cached (staged) |
| Commit hash (SHA) | git show <hash> |
| Branch name | git diff <branch>...HEAD |
| PR URL or number | gh pr view + gh pr diff |
Diffs alone are not enough. After getting the diff, read the entire file(s) being modified to understand the full context. Code that looks wrong in isolation may be correct given surrounding logic—and vice versa.
CONVENTIONS.md, AGENTS.md, .editorconfig, etc.)Be certain. If calling something a bug, be confident it actually is one.
let statement is fine if the alternative is convolutedUse available tools to verify before claiming something is wrong:
| Tool | Use For |
|------|---------|
| codebase-pattern-finder | Find how existing code handles similar problems |
| codebase-analyzer | Understand existing patterns and conventions |
| Web search | Verify correct usage of libraries/APIs |
If uncertain and can't verify, say "I'm not sure about X" rather than flagging as definite.
| Level | Meaning | |-------|---------| | 🔴 Critical | Will cause failures, security vulnerability, data loss | | 🟠 Warning | Could cause issues under specific conditions | | 🟡 Suggestion | Improvement opportunity, not a bug |
## Code Review: [scope description]
### Summary
[1-2 sentences: Overall assessment - clean, minor issues, or significant concerns]
### Issues Found
#### 🔴 [Critical Issue Title]
**File:** `path/to/file.ts:line`
**Issue:** [Clear description of the bug]
**Scenario:** [When/how this breaks]
**Suggested fix:** [How to fix it]
#### 🟠 [Warning Title]
**File:** `path/to/file.ts:line`
**Issue:** [Description]
**Conditions:** [When this becomes a problem]
#### 🟡 [Suggestion Title]
**File:** `path/to/file.ts:line`
**Suggestion:** [What could be improved and why]
### Patterns Checked
- ✓ Follows existing error handling patterns
- ✓ Uses established abstractions
- ⚠️ Inconsistent with [pattern] in [other file]
### Verdict
[PASS | PASS WITH NOTES | NEEDS CHANGES]
[If needs changes: list what must be fixed before approval]
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer