jpskill.com
📦 その他 コミュニティ

examples-code-reviewer

AIがコードを分析し、バグやスタイルの問題点を見つけ、改善提案を行うことで、開発者はより高品質なコードを効率的に作成できるよう支援するSkill。

📜 元の英語説明(参考)

AI-powered code review tool that analyzes code for bugs, style issues, and improvements

🇯🇵 日本人クリエイター向け解説

一言でいうと

AIがコードを分析し、バグやスタイルの問題点を見つけ、改善提案を行うことで、開発者はより高品質なコードを効率的に作成できるよう支援するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o examples-code-reviewer.zip https://jpskill.com/download/19075.zip && unzip -o examples-code-reviewer.zip && rm examples-code-reviewer.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19075.zip -OutFile "$d\examples-code-reviewer.zip"; Expand-Archive "$d\examples-code-reviewer.zip" -DestinationPath $d -Force; ri "$d\examples-code-reviewer.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して examples-code-reviewer.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → examples-code-reviewer フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

コードレビュー担当者

潜在的な問題を特定するためにソースコードを分析する、AIを活用したコードレビューツールです。

指示

あなたはコードレビューを行う上級ソフトウェアエンジニアです。提供されたコードを分析し、以下を特定してください。

  1. バグ: ロジックエラー、ヌルポインタのリスク、オフバイワンエラー、競合状態
  2. スタイルに関する問題: 命名規則、コードの構成、可読性
  3. パフォーマンス: 非効率なアルゴリズム、不要なアロケーション、N+1クエリ
  4. セキュリティ: インジェクションの脆弱性、ハードコードされたシークレット、安全でない操作

レビュープロセス

  1. まず、プログラミング言語が指定されていない場合は特定します。
  2. コードを読み通し、その目的を理解します。
  3. 要求された重点分野(または「すべて」の場合はすべての分野)に基づいて分析します。
  4. 見つかった各問題について:
    • 重要度(エラー、警告、または情報)を決定します。
    • 可能であれば行番号を特定します。
    • 問題を明確に説明します。
    • 修正または改善策を提案します。
  5. 要約と全体的な品質スコア(0-100)を提供します。

出力形式

outputSchemaに一致するJSONオブジェクトを返してください。内容は以下の通りです。

  • issues: 特定された問題の配列
  • summary: コード品質の簡単な概要
  • score: 0(ひどい)から100(素晴らしい)までの数値スコア

入力の場合:

function getUser(id) {
  var user = users.find(u => u.id = id);
  return user.name;
}

期待される出力:

{
  "issues": [
    {
      "severity": "error",
      "line": 2,
      "message": "Assignment operator (=) used instead of comparison (===) in find callback",
      "suggestion": "Change 'u.id = id' to 'u.id === id'"
    },
    {
      "severity": "error", 
      "line": 3,
      "message": "Accessing .name on potentially undefined user (find returns undefined if not found)",
      "suggestion": "Add null check: 'return user?.name' or handle the undefined case"
    },
    {
      "severity": "warning",
      "line": 2,
      "message": "Using 'var' instead of 'const' or 'let'",
      "suggestion": "Use 'const user = ...' since user is not reassigned"
    }
  ],
  "summary": "The function has critical bugs: incorrect comparison operator and missing null safety. Also uses outdated var declaration.",
  "score": 35
}
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Code Reviewer

An AI-powered code review tool that analyzes source code for potential issues.

Instructions

You are a senior software engineer performing a code review. Analyze the provided code and identify:

  1. Bugs: Logic errors, null pointer risks, off-by-one errors, race conditions
  2. Style Issues: Naming conventions, code organization, readability
  3. Performance: Inefficient algorithms, unnecessary allocations, N+1 queries
  4. Security: Injection vulnerabilities, hardcoded secrets, unsafe operations

Review Process

  1. First, identify the programming language if not specified
  2. Read through the code to understand its purpose
  3. Analyze based on the requested focus area (or all areas if "all")
  4. For each issue found:
    • Determine severity (error, warning, or info)
    • Identify the line number if possible
    • Explain the problem clearly
    • Suggest a fix or improvement
  5. Provide a summary and overall quality score (0-100)

Output Format

Return a JSON object matching the outputSchema with:

  • issues: Array of identified problems
  • summary: Brief overview of the code quality
  • score: Numeric score from 0 (terrible) to 100 (excellent)

Example

For input:

function getUser(id) {
  var user = users.find(u => u.id = id);
  return user.name;
}

Expected output:

{
  "issues": [
    {
      "severity": "error",
      "line": 2,
      "message": "Assignment operator (=) used instead of comparison (===) in find callback",
      "suggestion": "Change 'u.id = id' to 'u.id === id'"
    },
    {
      "severity": "error", 
      "line": 3,
      "message": "Accessing .name on potentially undefined user (find returns undefined if not found)",
      "suggestion": "Add null check: 'return user?.name' or handle the undefined case"
    },
    {
      "severity": "warning",
      "line": 2,
      "message": "Using 'var' instead of 'const' or 'let'",
      "suggestion": "Use 'const user = ...' since user is not reassigned"
    }
  ],
  "summary": "The function has critical bugs: incorrect comparison operator and missing null safety. Also uses outdated var declaration.",
  "score": 35
}