Skip to content
Back to skills

Code Review Design

ASecurity

Method and checklist used by the Code Review Crew's design reviewer to judge a code change or plan against the codebase's own conventions - duplication, layering, complexity, interfaces, testability - where every finding names its future cost. Use when asked to review a PR, diff or implementation plan for design or structure.

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentssqlcode-reviewapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add MhdAljuboori/ZumiBot --skill code-review-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Review Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Review Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mhdaljuboori-code-review-design/badge)](https://www.skillsdirectory.com/skills/mhdaljuboori-code-review-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-review-design
description: Method and checklist used by the Code Review Crew's design reviewer to judge a code change or plan against the codebase's own conventions - duplication, layering, complexity, interfaces, testability - where every finding names its future cost. Use when asked to review a PR, diff or implementation plan for design or structure.
---

# Design review

The standard is **this codebase's existing conventions**, then widely shared engineering judgment, never personal taste. A finding must name what it will cost later.

## Before the diff
- Read `CLAUDE.md`, `AGENTS.md`, `CONTRIBUTING.md`, `docs/architecture*`, ADRs.
- Find 2–3 existing modules that do something similar to the change (`rg`, folder listing). Note how they: lay out files, name things, handle errors, validate input, test, log, configure.
- Note the layers: where does UI, domain logic, data access, I/O live?

## Checklist

**Reuse and duplication** (most common real finding)
- New helper/util/component/type/hook/service: does one already exist? Search by behaviour, not just name.
- Copy-pasted block from elsewhere in the repo: should both use one function?
- Second way to do something the project already does one way (a second HTTP client, date library, state store, error type, logging call).

**Placement and layering**
- Is each piece in the layer the codebase uses for it? Business rules in the domain/service layer, not in UI components, controllers or SQL.
- Dependencies point the right way (inner layers don't import outer ones; shared code doesn't import a feature).
- Pure logic separated from I/O so it can be tested without mocks.

**Complexity**
- Abstraction with one implementation and no second in sight. Config or a flag for a case nobody has.
- Function or component doing several jobs (look for "and" in what it does, many params, boolean params that switch behaviour).
- Deep nesting where an early return reads better. Clever code where plain code works.
- Speculative generality: generics, plugins, hooks "for later".

**Names and readability**
- Names say what, not how; consistent with the domain words the codebase already uses.
- A reader can follow the change without the PR description. Comments explain *why* (a constraint, a workaround), not *what*.
- Magic numbers and strings that deserve a named constant.

**Interfaces**
- Public API, schema, event or file format: is the shape easy to extend without breaking callers? Versioned if it needs to be?
- Leaky abstraction: callers must know internals to use it correctly.
- Consistency with sibling APIs (naming, argument order, error style, pagination style).

**Testability and operability**
- Can the new logic be unit tested? Are tests at the level the project tests similar code?
- Errors carry enough context to debug; logs at the right level, no secrets.
- Hard-coded environment specifics (URLs, paths, ports) that belong in config.

**Change hygiene**
- Unrelated refactors mixed into a feature change (suggest splitting).
- Dead code, commented-out code, leftover debug output, TODOs without an owner.

## Severity guide
- **High**: only what is costly to reverse: a public API, schema, event or persisted format that will be hard to change; logic in the wrong layer that others will copy; a design that makes the code untestable.
- **Medium**: duplicating an existing capability; needless complexity; convention drift; mixed concerns.
- **Low**: naming and readability (never higher), max five, only when nothing bigger.
- An intentional, stated move to a new convention is judged against that plan, not against the old way.

## Writing a finding
`[Severity] path:line, title` → **Issue** (cite the existing code or rule) → **Cost** (concrete) → **Suggestion** (smallest change). If you can't name a cost, drop it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.