You MUST use this when reviewing, modifying, or improving existing code for readability and maintainability.
This skill draws from three foundational texts on software craft:
Clean code reduces the cost of future change through structural hygiene — cohesion, coupling, encapsulation, error handling, and test coverage. Every recommendation from this skill serves this goal. For tactical code clarity at the line and block level (naming, abstraction fitness, narrative flow), see simplicity-review.
See references/heuristics.md for the full catalog of code smells, naming rules, function design, comment hygiene, error handling, design principles, and test quality checks.
CLAUDE.md, CONTRIBUTING.md, or existing patterns in the codebase.Structure your output as follows:
## Summary
One-paragraph overview: what was reviewed, scope, and overall code health assessment.
## Findings
| # | Location | Heuristic | Severity | Description |
|---|----------|-----------|----------|-------------|
| 1 | file:L10-25 | Long method | High | ... |
## Changes Applied
For each change:
### Change N: <title>
- **Finding(s)**: #1, #2
- **What**: brief description
- **Before**: code snippet
- **After**: code snippet
## Validation Results
- Tests: pass/fail (N tests, N passed, N failed)
- Linter: pass/fail
- Behavioral change: none / describe
## Deferred Items
Items not addressed and why (out of scope, needs team discussion, etc.)
Before marking the review as complete, confirm:
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