Skip to content
Agentmart
Submit a tool

code-review

Review a diff or PR against my conventions — Result not throw, vertical slices, AItError codes, node:test, Biome, entity normalisation, a11y.

Skill by mateonunez

IndexedMIT★ 8
Write a review

Chalk Labs

Need help deploying code-review?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/mateonunez-code-review

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Review a diff or PR against my conventions — Result not throw, vertical slices, AItError codes, node:test, Biome, entity normalisation, a11y. Findings are triaged by severity (correctness → conventions → polish), not piled in a flat list. Use when reviewing a diff, reviewing a PR before merge, self-reviewing before opening a PR, or when user says "review this", "review the diff", "code review", or invokes `/code-review`.

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/code-review

What's inside

Skill name
code-review
Description
Review a diff or PR against my conventions — Result not throw, vertical slices, AItError codes, node:test, Biome, entity normalisation, a11y. Findings are triaged by severity (correctness → conventions → polish), not piled in a flat list. Use when reviewing a diff, reviewing a PR before merge, self-reviewing before opening a PR, or when user says "review this", "review the diff", "code review", or invokes `/code-review`.
License
MIT
Instructions
121 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Code review

> If it doesn't hold up in production, it doesn't make the cut.

Flat review piles — twelve nits next to one architectural break, all the same bullet weight — waste my time. Worse, agents review by aesthetics: rename suggestions, comment polish, "consider extracting" — while a `throw` in business logic or a cross-feature internal import sails through.

This skill is a review pass anchored on my other skills. It triages findings by severity, grounds them in `CONTEXT.md` and `docs/adr/`, and refuses to flag style when correctness is broken.

This is a review skill, not a teaching skill. It assumes you've read the rest of my engineering skills; it tells you when to invoke which.

## When this skill is active

You are about to:

- Review an open PR (mine or someone else's)
- Self-review a diff before opening a PR
- Audit a recent change (`git diff <base>..HEAD`, `gh pr diff`, staged changes)
- Respond to "review this", "review the diff", "what do you think of this change?"

This is **not** the skill for whole-repo architectural review — that's [`improve-codebase-arch`](../improve-codebase-arch/SKILL.md). This is for a bounded set of changes.

## Phase 1 — Ground yourself

Don't review the diff in isolation. Spend two minutes on context first.

- [ ] Read `CONTEXT.md` if you don't already know the domain vocabulary.
- [ ] Skim `docs/adr/` for ADRs in the touched area. A change that contradicts an ADR is a finding, not a nit.
- [ ] Scan the diff once end-to-end before commenting on any line. You're looking for the shape, not the typos.
- [ ] If a PR description exists, read it. A finding that the PR description already addresses is not a finding.

## Phase 2 — Triage by severity

Findings land in one of three buckets. Report them in this order, never flat.

### 1. Correctness (must-fix)

The change is wrong, will break, or will silently corrupt state.

- [ ] Logic bug — off-by-one, wrong branch, swapped args.
- [ ] Race condition, missing `await`, unhandled promise rejection.
- [ ] Type lies — `as any`, `!` non-null on a `Result`, `as unknown as T` smuggling.
- [ ] Boundary leak — secrets in logs, PII in URLs, user input flowing into a query without escaping.
- [ ] Missing test for a non-trivial code path. Bugs hide where tests don't reach — see [`tdd`](../tdd/SKILL.md).
- [ ] Migration that isn't reversible / isn't safe under concurrent writes.

### 2. Convention drift (should-fix, anchored on my skills)

The change works but breaks a house rule. Each finding cites the skill it violates.

- [ ] **Throws in business logic.** Service/domain code must return `Result<T, E>`. See [`result-not-throw`](../result-not-throw/SKILL.md).
- [ ] **New `AItError` code invented when the catalogue covers it.** Reuse existing codes (`USER_NOT_FOUND`, `DB_ERROR`, `RATE_LIMIT`, …) before adding.
- [ ] **Cross-feature import that bypasses the package's public API.** Boundary is fake. See [`vertical-slices`](../vertical-slices/SKILL.md).
- [ ] **New file dumped in `shared/` or `utils/` with one caller.** Inline it. Wait for the third caller.
- [ ] **Vendor payload going straight to the DB or downstream code.** Normalise at the boundary. See [`entity-normalization`](../entity-normalization/SKILL.md).
- [ ] **`jest`, `vitest`, `eslint`, `prettier`, `ts-jest` added to `package.json`.** Use the runtime + Biome. See [`node-native-tests`](../node-native-tests/SKILL.md) and [`single-tool-per-job`](../single-tool-per-job/SKILL.md).
- [ ] **Fastify plugin without `fp()` wrapper / idempotency guard / decorator.** See [`fastify-plugin-shape`](../fastify-plugin-shape/SKILL.md).
- [ ] **Boundary code missing error telemetry / request context / queue visibility.** See [`production-observability`](../../misc/production-observability/SKILL.md).
- [ ] **Domain IDs typed as bare `string`.** Use nominal typing where mix-ups would compile. See [`types-first-guards`](../../misc/types-first-guards/SKILL.md).
- [ ] **UI change with no a11y consideration.** Run [`a11y-default-review`](../../misc/a11y-default-review/SKILL.md) over the touched components.
- [ ] **Commit subject without scope (`feat: …` not `feat(spotify): …`).** See [`conventional-commits-scoped`](../../productivity/conventional-commits-scoped/SKILL.md).
- [ ] **Decision big enough to be re-litigated in three months, no ADR.** Write it before the code lands.

### 3. Polish (nits, optional)

Style, naming, redundant comments, dead code, doc gaps. Group them under a single "nits" heading. Never let polish drown out the first two buckets.

If the change is correct and convention-clean, polish is the whole review — and a short one. If correctness or conventions are broken, polish waits for the follow-up.

## Phase 3 — Report

Output shape:

```markdown
## Review

**Verdict:** approve / request changes / blocked on decision

### Correctness
- [file:line] One sentence on what's wrong and why it matters.

### Convention drift
- [file:line] What rule, which skill. `result-not-throw`: business logic must return `Result<T, E>`.

### Nits
- [file:line] One-liner. Group them tight.

### Questions
- Anything you couldn't answer from the diff alone. One question per ambiguity.
```

Rules:

- **Cite line numbers** so I can navigate. `file_path:line_number`.
- **Cite the skill** for every convention finding. Don't restate the rule — link it.
- **No essays.** One sentence per finding. If a finding needs a paragraph, it's an ADR, not a review comment.
- **Verdict goes first.** I want the headline before the body.

## Anti-patterns

- **Flat bullet list with no severity.** Twelve nits next to one architectural break, all weighted equally. Triage or don't bother.
- **Reviewing by aesthetics.** "Consider renaming," "this could be more idiomatic," "maybe extract a helper." If there's no failure mode, it's not a finding.
- **Restating what the code does.** I can read the diff. Tell me what's wrong, not what's there.
- **Flagging style when correctness is broken.** Lead with the throw in the service layer, not the import order.
- **Inventing house rules.** Every convention finding cites an existing skill or ADR. If you can't cite, it's a personal preference and belongs in nits — or nowhere.
- **Reviewing the diff without reading the PR description.** Re-asking what the description answered is noise.
- **Auto-suggesting a fix for a judgment call.** Surface the tradeoff, let me pick. Auto-fix the deterministic stuff (typos, missing `await`).
- **Bundling unrelated fixes into the review.** A11y debt found during a backend review goes on the follow-up list, not into the PR.

## When you find a structural problem mid-review

Stop the review. Surface it as **"blocked on decision"** with a verdict at the top, and call out which skill or ADR it conflicts with. Don't keep listing nits underneath — the design decision swallows them. If it warrants a new ADR, say so.

## Cross-references

- Severity-1 conventions: [`result-not-throw`](../result-not-throw/SKILL.md), [`vertical-slices`](../vertical-slices/SKILL.md), [`entity-normalization`](../entity-normalization/SKILL.md)
- Tooling conventions: [`node-native-tests`](../node-native-tests/SKILL.md), [`single-tool-per-job`](../single-tool-per-job/SKILL.md)
- Surface-specific: [`fastify-plugin-shape`](../fastify-plugin-shape/SKILL.md), [`a11y-default-review`](../../misc/a11y-default-review/SKILL.md), [`production-observability`](../../misc/production-observability/SKILL.md), [`types-first-guards`](../../misc/types-first-guards/SKILL.md)
- Pre-code grilling: [`grill-me-mateo`](../../productivity/grill-me-mateo/SKILL.md)
- Domain glossary: [`CONTEXT.md`](../../../CONTEXT.md)

From mateonunez/skills, MIT.

More from mateonunez/skills

Signals

Stars
8
Forks
0
Open issues
0
Last commit (this folder)
May 12, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from mateonunez

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get code-review running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying code-review?

CallGet help
Cite this page

code-review skill. Agent Mart. https://agentmart.dev/skills/mateonunez-code-review (last updated 2026-10-24)