agentleFS
LazyIsEfficientLazyIsEfficient/agentic-os/.claude/skills/code-review-and-quality/SKILL.md

code-review-and-quality

Skill17 starsChanged 23 days agoMITView on GitHub

Conducts multi-axis code review across correctness, readability, architecture, security, and performance. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Triggers on "review my PR", "review this diff", "code review", "review this changeset", "is this ready to merge", "pre-merge review".

81 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use constraint-driven-development, observability-and-instrumentation and 10 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.
  • MrCipherSmithSkill

    constraint-driven-development

    Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.

    Also in 15 projects that use this

  • HK-hubSkill

    observability-and-instrumentation

    Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.

    Also in 34 projects that use this

  • HK-hubSkill

    code-simplification

    Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

    Also in 58 projects that use this

  • seikaikyoSkill

    doubt-driven-development

    對非平凡決策啟動新鮮 context 對抗審查(找碴不背書),在修正還便宜的時候抓出錯誤方向。適用:高風險改動(production、資安敏感邏輯、不可逆操作)、不熟的程式碼、要宣稱「這樣是安全的 / 可行的」之前。機械性操作與一行修改不適用。

    Also in 37 projects that use this

  • seikaikyoSkill

    interview-me

    需求不明時的意圖萃取訪談:一次一題、每題附上自己的猜測、聽出「真正想要 vs 覺得應該要」,直到能預測使用者反應(約 95% 信心)才動工。適用:需求缺少對象 / 動機 / 成功標準 / 約束,或使用者點名「訪談我」「先確認一下」「我們確定嗎」。明確自足的指示、純資訊查詢、機械性操作不適用。

    Also in 37 projects that use this

  • JetBrainsSkill

    modern-web-guidance

    Search tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns.

    Also in 3 projects that use this

  • +2 more from HK-hub

The file

We split this skill into the rules it gives an agent

9 rules. 2 are common, 7 are distinctive, and 0 are very specific to this project.

  • 2

    Common

    Most of the 74 edited versions we read keep these.

  • 7

    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:

    Review every change before merge: No exceptions. "It's small" is not an exemption.

    line 21
  2. Distinctive:

    Label every finding: Use Critical / Nit / Optional / FYI prefixes so the author knows what's required.

    line 23
  3. Distinctive:

    Approve improvements, not perfection: If the change improves overall code health, approve it.

    line 24
  4. Distinctive:

    Split large changes: Ask the author to split anything over ~300 lines rather than reviewing one massive changeset.

    line 26
  5. Distinctive:

    Require cleanup before merge: Don't accept "I'll fix it later" — later never comes.

    line 27
  6. Distinctive:

    Treat dependency additions as changes: Every new dependency needs justification: size, maintenance status, license, known vulnerabilities.

    line 28
  7. Distinctive:

    Quote before flagging: Every finding must include the specific lines that support it.

    line 29
  8. Common:

    No regression tests with bug fix PRs

    line 38
  9. Common:

    After review is complete:

    line 44

“Common” is measured: kept by at least 6 in 10 of the 74 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 Review and Quality

Overview

Multi-dimensional code review with quality gates. Every change gets reviewed before merge — no exceptions. Review covers five axes: correctness, readability, architecture, security, and performance.

The approval standard: Approve a change when it definitely improves overall code health, even if it isn't perfect. Perfect code doesn't exist — the goal is continuous improvement. Don't block a change because it isn't exactly how you would have written it.

Universal Rules

  1. Review every change before merge. No exceptions. "It's small" is not an exemption.
  2. Review tests first. Tests reveal intent and coverage before you read a line of implementation.
  3. Label every finding. Use Critical / Nit / Optional / FYI prefixes so the author knows what's required.
  4. Approve improvements, not perfection. If the change improves overall code health, approve it.
  5. Don't rubber-stamp. "LGTM" without evidence of review helps no one. Quantify problems when possible.
  6. Split large changes. Ask the author to split anything over ~300 lines rather than reviewing one massive changeset.
  7. Require cleanup before merge. Don't accept "I'll fix it later" — later never comes.
  8. Treat dependency additions as changes. Every new dependency needs justification: size, maintenance status, license, known vulnerabilities.
  9. Quote before flagging. Every finding must include the specific lines that support it. "This function looks risky" without a quote is an opinion, not a finding. If you can't quote the evidence, you don't have a finding yet.

Red Flags

  • PRs merged without any review
  • Review that only checks if tests pass (ignoring other axes)
  • "LGTM" without evidence of actual review
  • Security-sensitive changes without security-focused review
  • Large PRs that are "too big to review properly" (split them)
  • No regression tests with bug fix PRs
  • Review comments without severity labels
  • Accepting "I'll fix it later"

Verification

After review is complete:

  • All Critical issues are resolved
  • All Important issues are resolved or explicitly deferred with justification
  • Every finding is backed by a specific quoted passage from the actual code
  • No findings were generated from assumed code structure — only from what was read
  • Tests pass
  • Build succeeds
  • The verification story is documented (what changed, how it was verified)

Tier discipline

Tier definitions: review-tiers (.claude/rules/review-tiers.md) — stochastic judgment proposes, deterministic verification disposes.

  • Tier 0: the CI gates themselves (tests, build, linters, validators). These hard-block on their own authority; cite them instead of re-finding what they catch.
  • Tier 1 (may gate, evidence attached): correctness and security findings demonstrated by a failing test, failing command, or concrete counterexample input — the artifact is the gate, the review only chose which artifact to produce. The missing-regression-test blocker is Tier 1: the evidence is the absent test.
  • Tier 2 (advisory, never gates): readability, architecture taste, "could be simpler", unevidenced performance concerns. Severity labels (Critical, blocking) on unevidenced findings are proposals to the operator, not gates — log them to findings-ledger rather than writing blocking language.

References

  • references/review-axes.md — Five-axis review checklist: correctness, readability, architecture, security, performance
  • references/review-process.md — Step-by-step process, change sizing, descriptions, multi-model pattern, dead code hygiene, disagreements, honesty, dependency discipline, full review checklist
  • references/security-checklist.md — Detailed security review guidance
  • references/performance-checklist.md — Performance review checks
  • references/scanner-evidence.md — Running scripts/check-imports.sh (here) and security/scripts/security-scan.sh as Tier 0/1 evidence: path resolution, exit codes, citing hits, the offline-network decision

Scripts

  • scripts/check-imports.sh [--base <ref>] [--paths <file>...] [--json] — a deterministic check for JS/TS and Python imports that don't resolve, and for new runtime dependencies that nothing imports. Exits 0 clean, 1 findings, 2 usage, 3 nothing to check, 4 error. Run it from the project root. It only reads.

Related skills

  • skill-library-review — applies the same review discipline to agent and skill definitions rather than source code
  • adversarial-claims-reviewer — applies the same adversarial discipline to formal/technical claims in documents rather than source code
  • findings-ledger — where this skill's Tier 2 (unevidenced) findings get recorded and tallied for recurrence

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.