# Code Review and Quality (code-review-and-quality)

> Reviews code changes across five axes, correctness, readability, architecture, security and performance, labeling each finding by severity.

- Category: [Code Review](https://www.myskills.tools/en/categories/code-review/)
- Source: Community · Addy Osmani
- Repository: https://github.com/addyosmani/agent-skills/tree/main/skills/code-review-and-quality (commit 28f435e)
- SKILL.md: https://github.com/addyosmani/agent-skills/blob/main/skills/code-review-and-quality/SKILL.md
- Install command: `npx skills add addyosmani/agent-skills --skill code-review-and-quality`
- License: MIT
- Compatible with: Claude Code, Codex, Cursor, Copilot, Gemini CLI
- Permissions: read-repo ✓, write-files ✓, shell ✓, network ✗
- Status: Scan passed
- A rule scan cannot catch every risk. Read this skill's SKILL.md and check its permissions before installing.

## Core rule

Approve a change when it definitely improves overall code health, even if it isn't perfect.

## Execution Phases

1. **Understand the context** — Before reading code, establish what the change is for, which spec or task it implements, and the expected behavior change.
2. **Review the tests first** — Check tests cover behavior and edge cases; invert one condition, run the suite and restore the file, and a mutation that stays green is a finding.
3. **Review on five axes** — Walk each changed file through the five axes and propose a named structural remedy for any structural problem.
4. **Label severity** — Label each comment Critical, Nit, Optional, FYI or no prefix, and lead with correctness and security.
5. **Verify the verification** — Check which tests ran, whether the build passed and manual testing was done; list dead code and ask before deleting it.

## Permissions (summarised from SKILL.md)

| Capability | Needed | Details |
|---|---|---|
| File writes | Limited | Only temporary mutations restored from a copy, and deleting dead code after asking. |
| Command execution | Limited | Runs the test suite and build to verify the change and for mutation checks. |
| Network outbound | Not required | The review process itself needs no network access. |

## SKILL.md frontmatter (YAML)

```yaml
---
name: code-review-and-quality
description: Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.
---
```

Home: https://www.myskills.tools/en/ · URL: https://www.myskills.tools/en/skills/code-review-and-quality/
