/pr-review-code-simplicity:pr-review-code-simplicityfrom pr-review-code-simplicity
Reviews pull requests using the laws from "Code Simplicity" by Max Kanat-Alexander: evaluates user value, maintenance cost, readiness for future change, design stability, and related principles.
Ships in pr-review-code-simplicity. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Review pull requests through the lens of six laws and their supporting rules from the science of software design. The goal is not to nitpick style — it is to catch decisions that will cost the team maintenance effort over time.
When reviewing a PR (diff, merge request, or set of code changes), work through the checklist below. Not every item will apply to every PR. Skip what is irrelevant. Flag what matters.
Structure your review as:
Keep the tone constructive. The purpose is to help the author ship better code, not to demonstrate cleverness.
The purpose of software is to help people. Every change should trace back to helping users.
Ask:
Flag: changes that add complexity without a clear connection to user value.
The desirability of a change equals its value divided by its effort. Over time, effort of maintenance dominates effort of implementation. Reducing maintenance effort is more important than reducing implementation effort.
Ask:
Flag: code that is quick to write but will be expensive to maintain. Prefer the opposite: code that takes a bit more thought now but approaches zero maintenance cost over time.
The longer a program exists, the more probable it is that any piece of it will have to change. You cannot predict what will change, only that things will change.
Apply these sub-rules:
Don't write code you don't need yet (YAGNI)
Don't make assumptions about the future
Don't be too generic (overengineering)
Do make the code easy to change
The ideal: maximum change in the environment, minimum change in the software.
The chance of introducing a defect is proportional to the size of the change.
Ask:
Also apply the related rules:
The ease of maintenance is proportional to the simplicity of individual pieces. Not the whole system — the pieces.
Ask:
Apply sub-rules:
Consistency
Readability
Simplicity requires design
If complexity is unavoidable (e.g., wrapping a complex external system), is it hidden behind a simple interface?
The degree to which you know how software behaves is the degree to which you have accurately tested it. Unless you have tried it, you do not know that it works.
Ask:
Flag: any behavioral change without a corresponding test.
Structure your review like this:
## Summary
[1-3 sentences: what does this PR do and does it serve the purpose of helping users]
## Findings
### 1. [Law name]: [short description of the issue]
[Explain what you found, why it matters, and what you suggest]
### 2. [Law name]: [short description of the issue]
[...]
## Verdict
[Approve / Request changes / Comment]
[1-2 sentences explaining the overall assessment]
Only include law sections where you have a finding. A clean PR might only have a summary and a verdict.
Number every finding sequentially (1, 2, 3, …). The number is part of the heading.
Keep findings concrete. Reference specific files, functions, or lines when possible. Suggest alternatives, don't just point out problems.
Not all findings are equal. Use your judgment:
When in doubt, ask yourself: "Will this matter in six months?" If yes, raise it. If not, let it go.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub infinum/ai --plugin pr-review-code-simplicity