# Code Review

> Review code for quality, bugs, and best practices

- Skill: `lwmxiaobei/code-review` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lwmxiaobei/code-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lwmxiaobei/code-review/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: lwmxiaobei (https://skillmd.com/u/lwmxiaobei)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/lwmxiaobei/code-review

---


# Code Review Guidelines

When reviewing code, follow these steps:

1. **Read the code thoroughly** — understand the intent before critiquing.
2. **Check for bugs** — null references, off-by-one errors, race conditions, resource leaks.
3. **Evaluate naming** — are variables, functions, and classes named clearly?
4. **Assess structure** — is the code modular? Are responsibilities well-separated?
5. **Security** — look for injection vulnerabilities, unsafe inputs, hardcoded secrets.
6. **Performance** — unnecessary allocations, N+1 queries, blocking calls in async code.
7. **Tests** — are edge cases covered? Are tests readable and maintainable?

Output format:
- Start with a one-line summary (good / needs work / has issues).
- List findings grouped by severity: 🔴 Critical, 🟡 Warning, 🟢 Suggestion.
- For each finding, include file, line, and a concrete fix.

