本文へスキップ
Skillpedia
一般的なプログラミング46k · #6322

code-review-specialist

できること

このスキルは、エージェントがコードのセキュリティリスク、遅い処理のパターン、品質の問題を確認し、それぞれを分かりやすく報告するよう導きます。コードやプルリクエストを丁寧に見直したい開発者向けです。

使う場面

  • ✓コードやプルリクエストに、セキュリティ上の問題がないか確認してほしいとき。
  • ✓リリース前に、遅い処理や性能の問題を見つけたいとき。
  • ✓命名、構造、テストカバレッジなど、コードの品質を確認したいとき。

スキルのリンク

https://github.com/luongnv89/claude-howto/blob/main/03-skills/code-review-specialist/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/luongnv89/claude-howto/blob/main/03-skills/code-review-specialist/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このログインモジュールのセキュリティ問題を確認して、特に深刻なものの修正方法を教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントはレビュー用のチェックリストと指摘事項のテンプレートを読み、分野ごとにコードを調べます。各指摘には深刻度、場所、影響をまとめます。コードに対してメトリクス用のスクリプトを実行することもできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Code Review Skill

This skill provides comprehensive code review capabilities focusing on:

  1. Security Analysis

    • Authentication/authorization issues
    • Data exposure risks
    • Injection vulnerabilities
    • Cryptographic weaknesses
    • Sensitive data logging
  2. Performance Review

    • Algorithm efficiency (Big O analysis)
    • Memory optimization
    • Database query optimization
    • Caching opportunities
    • Concurrency issues
  3. Code Quality

    • SOLID principles
    • Design patterns
    • Naming conventions
    • Documentation
    • Test coverage
  4. Maintainability

    • Code readability
    • Function size (should be < 50 lines)
    • Cyclomatic complexity
    • Dependency management
    • Type safety

Reference Files

This skill includes supporting files that you should read when performing reviews:

  • templates/review-checklist.md — Structured checklist covering security, performance, quality, and testing. Read this file and use it as a guide to ensure no category is missed during review.
  • templates/finding-template.md — Standard template for documenting individual findings with severity, location, code examples, and impact analysis. Read this file and use its format when reporting issues.
  • scripts/analyze-metrics.py — Python script that calculates code metrics (function count, class count, average line length, complexity score). Run this on the file under review to gather quantitative data.
  • scripts/compare-complexity.py — Python script that compares cyclomatic and cognitive complexity between two versions of a file. Run this with the before and after versions when reviewing refactoring changes.

Review Template

For each piece of code reviewed, provide:

Summary

  • Overall quality assessment (1-5)
  • Key findings count
  • Recommended priority areas

Critical Issues (if any)

  • Issue: Clear description
  • Location: File and line number
  • Impact: Why this matters
  • Severity: Critical/High/Medium
  • Fix: Code example

Findings by Category

Security (if issues found)

List security vulnerabilities with examples

Performance (if issues found)

List performance problems with complexity analysis

Quality (if issues found)

List code quality issues with refactoring suggestions

Maintainability (if issues found)

List maintainability problems with improvements

Version History

  • v1.0.0 (2024-12-10): Initial release with security, performance, quality, and maintainability analysis

Last Updated: August 4, 2026 Claude Code Version: 2.1.220 Sources:

よくある質問

どの分野を確認しますか?

セキュリティ、性能、コード品質、保守性を確認します。テストカバレッジも含みます。

指摘はどのように報告されますか?

各指摘は、深刻度、場所、コード例、影響を含む共通のテンプレートに沿って報告されます。

特別なツールが必要ですか?

スキルに含まれるPythonのメトリクススクリプトを使うため、Pythonが使える必要があります。

詳細

作者による元の説明

Comprehensive code review with security, performance, and quality analysis. Use when users ask to review code, analyze code quality, evaluate pull requests, or mention code review, security analysis, or performance optimization.

repo: luongnv89/claude-howto

人気

GitHubのスター
46k
ランキング
#6322
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル