ホーム / 全スキル / ワークフロー&基本ツール / code-review-and-quality
ワークフロー&基本ツール · addyosmani/agent-skills

code-review-and-quality

シニアエンジニア基準の厳格なコードレビューと品質ゲートを実施。Pull Requestの監査、クリーンアーキテクチャの徹底、セキュリティ脆弱性の検出、テストカバレッジの妥当性評価に最適。

L1 基本 · ソース登録のみV1 コミット固定Dual-pass Audit
💬 チャット試行
Author addyosmaniGitHub addyosmani/agent-skills ↗Stars 113872License MITCommit 301b02b12b
管理レベルは Skill の能力と推奨統制措置を示すものであり、品質や安全性の認証、利用可否の判定ではありません。使用の可否はユーザーおよび管理者が決定します。Agent 環境によって制約が異なるため、自動保護を仮定しないでください。第三者製 Skill の著作権は原著作者に帰属し、利用リスクは利用者が負います。

1仕組みと動作原理

正確性、セキュリティ、性能、保守性、テスト網羅性を網羅する体系的多段階レビュー。

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.
シニア基準のチェックリスト。

致命的ブロッキング(P0)から推奨事項(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.
本番リスクの優先度を明確化。

お追従(Sycophancy)を排した批判的レビュー姿勢:根拠のない承認(LGTM)を厳禁。

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.
エンジニアリング規律を徹底。

SQLi、XSS、未検証入力などOWASP準拠の脆弱性監査。

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.
セキュリティリスクの事前防止。

モジュール境界と疎結合性の検証:循環依存や層漏れの検知。

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 |
アーキテクチャの崩壊を防止。

境界値、異常系、モックの妥当性を評価するテスト品質監査。

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
形骸化したテストを排除。

指摘事項すべてに対して具体的な改善コード案(Drop-in replacement)を提示。

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.
即座に適用可能なレビュー指摘。

严格的依赖纪律与版本升级工作流:单一变更单包升级、审查 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.
这里在做什么:规范第三方依赖的准入与更新,严禁大杂烩批量升级导致排障困难

2コア機能

01多角的コード品質および正確性の監査
02深刻度別のレビュー結果分類(P0〜P3)
03セキュリティおよび脆弱性の事前検知
04アーキテクチャ境界と結合度の検査
05テストケース網羅性と異常系対応の評価
06適用可能な具体的リファクタリング提案
07依赖项单包升级与 lockfile 审查规范

4推奨統制措置と判定根拠

安全運用のための推奨統制措置
Agent 向け
自動ロード可能
管理者向け
ソースとバージョンの記録
監査ノート: 静的レビュー基準と手法のガイドラインであり、実行可能スクリプトや権限は不要です。

5二重目の独立検証

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

6結論

  • 表面的な書式指摘を排し、本番影響度の高い論理欠陥やアーキテクチャ課題に集中する高シグナルレビュー
  • 明確な深刻度タグにより、チームが直ちに修正すべきブロッカーを瞬時に判別可能
  • すべての指摘に具体的な修正コードが提示される実用的なレビュー品質
  • 最適な用途: PRレビューを自動化・高度化したい開発チーム、テックリード、自律型Agentの品質チェックに最適。
    不向きな用途: 単なるインデントや改行などの機械的整形(PrettierやLinterに任せるべき領域)。
    💬 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
    Agent はこの JSON ガイドから自動的にダウンロードして検証します。
    ② Upstream GitHub
    GitHub Repo ↗
    Pinned to commit 301b02b12b.