agentleFS
thixpinthixpin/claude-config/skills/code-quality-review/SKILL.md

code-quality-review

Skill8 starsChanged 4 months agoMITView on GitHub

Checklist and method for reviewing code quality — readability, maintainability, SOLID, DRY, performance, and backward compatibility. Use when asked to review code, a diff, a branch, or a merge request for quality, or before finalizing significant changes. For GitHub PR review use the built-in /review; for security-focused review use the security-audit skill.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use dependency-cve-sweep, fastapi-route-change and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • berntpoppSkill

    dependency-cve-sweep

    Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.

    Also in 5 projects that use this

  • berntpoppSkill

    fastapi-route-change

    Use when adding, renaming, or modifying this backend's FastAPI routes, dependencies, middleware, or response behavior.

    Also in 5 projects that use this

  • IgorGanapolskySkill

    ci-failure-triage

    Triage a CI / PR check failure by READING the failure body before forming any hypothesis. Triggered whenever a required check is red, a PR is BLOCKED, a merge won't land, or you're about to call a failure "transient", "flaky", "stale", or "orphaned". Prevents dismissing a real failure (e.g. real CodeQL security alerts) as noise.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    release-readiness

    Complete ODIN release documentation and validation checks before declaring user-visible work complete, preparing a release, or opening the Release-to-main pull request.

    Also in 5 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 5 projects that use this

  • +2 more from berntpopp

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No speculative micro-optimization findings without evidence.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Quality Review

Review for defects and maintainability, in that order. Every finding names the location, the concrete problem, and a suggested fix; every finding has a severity.

Scope

Reviews a change — a diff, branch, or set of files — at the function and file level.

Use for quality review of written code: readability, maintainability, correctness risks, backward compatibility.

Do not use for:

  • System-wide structure, module boundaries, or layering — use architecture-review. If a finding here is really "the whole codebase is shaped wrong," it belongs there.
  • Security review — use security-audit.
  • Reviewing a GitHub pull request — use the built-in /review.

Method

  1. Understand the change's intent before judging it — read the description, then the diff, then enough surrounding code to know how the pieces are used.
  2. Review the design first (is this the right shape?), then the details (is it written well?). A perfectly formatted wrong abstraction is still wrong.
  3. Report findings by severity: blocker (bugs, data loss, breaking changes), should-fix (maintainability problems that will hurt soon), nit (style and polish, clearly labeled as optional).
  4. Distinguish "this violates the project's conventions" from "this differs from my preference." Only the first is a finding.

Checklist

Correctness & safety

  • Edge cases: empty inputs, nulls, boundaries, concurrency, partial failure.
  • Error handling: failures surfaced, not swallowed; resources released on all paths.

Backward compatibility

  • Public APIs, wire formats, database schemas, and config keys keep working for existing callers, or the break is explicit and justified.
  • Behavior changes to shared code checked against all existing call sites.

Maintainability — scoped to the change; escalate system-wide findings to architecture-review

  • DRY: real duplication (same knowledge in two places) flagged; incidental similarity left alone.
  • Single responsibility: each unit has one reason to change; mixed concerns (I/O + logic + formatting in one function) flagged.
  • Dependencies point the right way — no new coupling from low-level modules to high-level ones, no cycles.
  • Naming says what things are; no comment needed to decode a name.

Readability

  • Control flow followable top-to-bottom; nesting shallow; clever one-liners replaced by clear code.
  • Comments explain why, not what; stale comments flagged.

Performance

  • Algorithmic issues only unless the project has stated perf budgets: N+1 queries, work inside hot loops that belongs outside, unbounded growth, missing pagination.
  • No speculative micro-optimization findings without evidence.

Tests

  • Changed behavior is covered; tests assert behavior, not implementation (see testing skill).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.