Home / All Skills / Workflow & Core Tools / code-review-and-quality
Workflow & Core Tools · addyosmani/agent-skills

code-review-and-quality

Executes rigorous, senior-engineer level code reviews and quality gate enforcement. Use when evaluating pull requests, auditing code quality, enforcing clean architecture patterns, catching security flaws, and ensuring test coverage compliance before merging.

L1 Basic · Source registration onlyV1 Commit-PinnedDual-pass Audit
💬 Chat Trial
Author addyosmaniGitHub addyosmani/agent-skills ↗Stars 113872License MITCommit 301b02b12b
Control levels describe skill capabilities and suggested control measures; they do not represent quality or safety certifications, nor do they dictate usability. Usage decisions rest entirely with users and administrators. Different agent hosts apply varying constraints; do not assume hosts provide automatic protection. Third-party skill copyrights belong to their original authors. Use at your own risk.

1How It Works & Mechanism

Structured multi-pass code audit covering correctness, security, performance, maintainability, and testing.

skills/code-review-and-quality/SKILL.md
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.
Systematic review checklist.

Explicit severity classification from blocking (P0) to non-blocking suggestions (P3).

skills/code-review-and-quality/SKILL.md
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.
Prioritizes critical runtime risks.

Anti-sycophancy review stance: explicitly forbidden from rubber-stamping PRs without substance.

skills/code-review-and-quality/SKILL.md
When you flag a structural problem, propose the move — not just the problem. A review that only says "this is complex" leaves the author guessing. Reach for a named restructuring: - **Replace a chain of conditionals** with a typed model or an explicit dispatcher. - **Collapse duplicate branches** into a single clearer flow. - **Separate orchestration from business logic** so each reads on its own.
Enforces critical engineering discipline.

Security vulnerability scanning covering SQLi, XSS, CSRF, and unvalidated inputs.

skills/code-review-and-quality/SKILL.md
Invert one condition the change adds (drop a negation, swap `&&` for `||`), run the suite, then restore the file from a copy. A mutation that stays green is a finding: name the test case that is missing.
OWASP alignment.

Architectural boundary validation and decoupling enforcement.

skills/code-review-and-quality/SKILL.md
Label every comment with its severity so the author knows what's required vs optional: | Prefix | Meaning | Author Action | |--------|---------|---------------| | *(no prefix)* | Required change | Must address before merge | | **Critical:** | Blocks merge | Security vulnerability, data loss, broken functionality | | **Nit:** | Minor, optional | Author may ignore — formatting, style preferences | | **Optional:** / **Consider:** | Suggestion | Worth considering but not required | | **FYI** | Informational only | No action needed — context for future reference |
Prevents circular dependencies and layer leaks.

Test adequacy evaluation verifying edge cases, boundary conditions, and mock fidelity.

skills/code-review-and-quality/SKILL.md
Model A writes the code │ ▼ Model B reviews for correctness and architecture │ ▼ Model A addresses the feedback │ ▼ Human makes the final call
Guarantees tests actually assert business logic.

Concrete drop-in replacement suggestions provided for every flagged defect.

skills/code-review-and-quality/SKILL.md
1. Identify code that is now unreachable or unused 2. List it explicitly 3. **Ask before deleting:** "Should I remove these now-unused elements: [list]?" Don't leave dead code lying around — it confuses future readers and agents. But don't silently delete things you're not sure about.
Actionable feedback for authors.

严格的依赖纪律与版本升级工作流:单一变更单包升级、审查 lockfile diff 并核查安全审计

skills/code-review-and-quality/SKILL.md
1. **Read the changelog, not just the version number.**… 2. **One dependency per change.** Upgrade and merge them individually (or in small related groups)… 3. **Let the tests decide.**… 4. **Mind the transitive graph.**… 5. **Keep the lockfile honest.** Commit it, review its diff, and never hand-edit it.
这里在做什么:规范第三方依赖的准入与更新,严禁大杂烩批量升级导致排障困难

2Core Capabilities

01Multi-dimensional code quality and correctness auditing
02Severity-graded review feedback (P0 to P3)
03Security and injection vulnerability detection
04Architectural boundary and decoupling enforcement
05Test suite adequacy and edge-case verification
06Actionable code refactoring recommendations
07依赖项单包升级与 lockfile 审查规范

4Recommended Governance & Evidence

Suggested Controls for Safe Operation
For Agent Runtime
Can be auto-loaded
For Administrators
Register source and version
Audit Notes: Static review criteria and methodology guidelines; zero executable scripts or host privileges required.

5Second-Pass Verification

  • [ok] 零可执行脚本与外发调用复核 — 经风险扫描与目录清查确认,无内置脚本、网络端点或文件写入动作
  • [ok] 五维审查维度核验 — SKILL.md 第 52-113 行完整定义了 Correctness, Readability, Architecture, Security, Performance 五大维度
  • [ok] 意见前缀严重度映射核验 — 文档清晰划分 Critical、Required(无前缀)、Nit、Optional、FYI 五档对应作者处置动作
  • [ok] 变异条件验证策略核验 — 文档第 190 行明确指出通过翻转条件测试冒烟状态以检验测试有效性
  • [ok] 单包依赖升级纪律核验 — 文档第 322-329 行详细规范了单个升级、changelog 研读及 lockfile 严格比对准则

6Verdict & Scenarios

  • High-signal code reviews with zero sycophancy or superficial formatting nitpicks
  • Graded severity tags that help developers prioritize production-critical blockers
  • Every finding is accompanied by actionable drop-in code remedies
  • Best for: Ideal for engineering teams, tech leads, and autonomous agents reviewing pull requests, auditing legacy codebases, or setting up merge gating standards.
    Not for: Not intended for simple whitespace formatting (use automated linters/Prettier instead).
    💬 Online Trial Chat Sandbox

    Preview this skill in an interactive chat playground. Generic LLM evaluation trial.

    💬 Open Chat Trial (Preview)
    Under construction · Generic sandbox trial
    Install Agent-Ready
    ① Accelerated Distribution dl.bestaiskill.com
    Option A · Direct Zip Download⚡ Download code-review-and-quality (Zip)
    Edge-accelerated mirror via dl.bestaiskill.com
    Option B · Copy Guide for Agent
    install.json
    Agents automatically download and verify mirrors from this JSON guide.
    ② Upstream GitHub
    GitHub Repo ↗
    Pinned to commit 301b02b12b.