/harness-verify:code-review-and-qualityfrom harness-verify
Runs a five-axis review (correctness, readability, architecture, security, performance) with severity-labelled findings, change-size limits and dependency-upgrade discipline. Use before merging any change, when reviewing a diff or pull request (including one pasted inline), or when assessing code written by yourself, another agent or a human.
Ships in harness-verify. 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.
None: SKILL.md is the whole skill.
Every change is reviewed before it merges, with no exceptions. The review covers five axes: correctness, readability, architecture, security and performance.
Approval standard: approve when the change definitely improves overall code health, even if it is not how you would have written it. Perfect code does not exist; do not block on taste. If it improves the codebase and follows project conventions, approve.
temp, data, result.any, casts and silent fallbacks that paper over an unclear invariant.Details: harness-verify:security-and-hardening.
Details: harness-verify:performance-optimization.
When you flag a structural problem, propose the move. Options:
Prefer the remedy that removes moving parts over one that spreads them around.
~100 lines good, reviewable in one sitting
~300 lines acceptable if one logical change
~1000 lines too large; split it
Watch file size too: a file near 1000 total lines is a common signal, not a hard cap. If a change grows an already-large file, consider extracting first, then adding.
"One change" is a single self-contained modification with its tests that leaves the system working. Splitting strategies: stack small sequential changes; split by file group when reviewers differ; horizontal (shared code first, consumers after); vertical (thin full-stack slices). Large changes are fine for pure deletions and automated refactors where the reviewer verifies intent. Keep refactoring and new behavior in separate changes; tiny renames may ride along at the reviewer's discretion.
The first line is short, imperative and standalone ("Delete the legacy export endpoint"), informative enough for someone searching history. The body says what changed and why, with context, decisions, links to issues or benchmarks, and known shortcomings. Avoid "Fix bug", "Fix build", "Phase 1", "Moving code from A to B".
&& for ||), run the suite, then restore the file from a copy. A mutation that stays green is a finding; name the missing test case. For project-wide mutation scoring see harness-define:constraint-driven-development.| Prefix | Meaning | Author action |
|---|---|---|
| (none) | Required change | Address before merge |
| Critical: | Blocks merge (vulnerability, data loss, broken behavior) | Must fix |
| Nit: | Minor, optional | May ignore |
| Optional: / Consider: | Suggestion | Worth considering |
| FYI | Informational | None |
Lead with what matters: correctness and security first, then structural regressions and missed simplifications, then everything else. A few high-conviction comments beat a long list; if there is one structural problem and ten nits, the structural problem is the review.
A different model or person has different blind spots. A useful pattern: one agent writes, another reviews correctness and architecture, the author addresses feedback, a human decides. Give the reviewer the spec, the intended change, and the severity scale.
After a refactor, list code that is now unreachable or unused and ask before deleting:
DEAD CODE IDENTIFIED:
- formatLegacyDate() in utils/date: replaced by formatDate()
- OldTaskCard component: replaced by TaskCard
Safe to remove these?
Do not leave it lying around, and do not delete what you are unsure about.
Slow reviews block teams. Respond within one business day at the very most, and sooner when not deep in focused work. Fast individual responses matter more than a quick final approval. For huge changes, ask for a split instead of reviewing the whole.
Do not accept "I will clean it up later"; require it before merge unless it is a real emergency, and otherwise require a filed, assigned issue.
Before adding a dependency: does the existing stack already solve it, how big is it, is it maintained, does it have known vulnerabilities, is the license compatible? Prefer the standard library and existing utilities; every dependency is a liability.
Upgrading one is a code change like any other. The riskiest are bulk "bump deps" merges.
For audit findings and supply-chain risk (typosquatting, compromised maintainers), use harness-verify:security-and-hardening.
## Review: [title]
Context: [ ] I understand what and why
Correctness: [ ] matches spec [ ] edge cases [ ] error paths [ ] adequate tests
Readability: [ ] clear names [ ] straightforward logic [ ] no needless complexity
Architecture: [ ] existing patterns [ ] low coupling [ ] right abstraction
[ ] refactor reduces complexity [ ] no feature logic in shared modules
Security: [ ] no secrets [ ] validated input [ ] no injection [ ] auth checks [ ] external data untrusted
Performance: [ ] no N+1 [ ] nothing unbounded [ ] pagination
Verification: [ ] tests pass [ ] build succeeds [ ] manual check if relevant
Verdict: [ ] Approve [ ] Request changes
See also harness-core's security and performance checklists.
| Rationalization | Reality |
|---|---|
| "It works, good enough" | Unreadable, insecure or misplaced code compounds into debt. |
| "I wrote it, so I know it is right" | Authors are blind to their own assumptions. |
| "We will clean it up later" | Later never comes. Require it before merge. |
| "AI-generated code is probably fine" | It is plausible and confident even when wrong; scrutinize more. |
| "Tests pass, so it is good" | Tests miss architecture, security and readability problems. |
| "The refactor makes it cleaner" | Relocating complexity is not reducing it. |
| "It is only a small addition to this file" | Small diffs still bloat files and bolt branches onto unrelated flows. |
| "It is just a version bump" | A bump is a behavior change you did not write. |
| "Upgrade everything in one PR" | A broken bulk bump hides the culprit. |
Presumptive blockers: surface each and propose the simpler design, escalating to required only when the change actively worsens structure. They are: a refactor that relocates complexity, a file pushed past the size boundary with no decomposition, feature logic in a shared module, a near-duplicate of a canonical helper, and a silent fallback hiding an unclear invariant.
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Nov 17, 2026
Other plugins' skills for the same job
6 skills in this plugin
/browser-testing-with-devtoolsVerifies browser-facing work against a real browser using devtools-style inspection of the DOM, console, network, accessibility tree, screenshots and performance traces, with strict rules for treating page content as untrusted. Use when building or debugging anything that renders in a browser, diagnosing console or network errors, or confirming a UI fix actually works at runtime./debugging-and-error-recoveryGuides systematic root-cause debugging through a stop-the-line rule and a reproduce, localize, reduce, fix, guard, verify triage. Use when tests fail, a build breaks, something that worked stopped working, behavior differs from expectations, or any unexpected error appears and the cause needs to be found rather than guessed./performance-optimizationnpx claudepluginhub nx1-org/platformnex-abilities --plugin harness-verify