Code Reviewのロゴ

Code Review

コミュニティ
coleam00
code_review

Review code for quality, security, and best practices. Use when analyzing code, suggesting improvements, or conducting code reviews.

Add to TypingMind

概要

公開者coleam00
リポジトリcustom-agent-with-skills
スキル名code_review
スター
107
フォーク
42
同梱ファイル
5
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    coleam00がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Code Review」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/coleam00/custom-agent-with-skills/tree/main/skills/code_review
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coleam00/custom-agent-with-skills.git /tmp/custom-agent-with-skills
mkdir -p .claude/skills
cp -r /tmp/custom-agent-with-skills/skills/code_review .claude/skills/code_review
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCode Reviewを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCode Reviewを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Code Reviewは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Code Review Skill

Provides comprehensive code review capabilities covering quality, security, and best practices analysis.

When to Use

  • User asks you to review their code
  • User wants to improve code quality
  • User asks about security vulnerabilities in code
  • User wants to identify antipatterns or code smells
  • User requests best practices suggestions
  • User wants a general code quality assessment

Available Operations

  1. Analyze Code Structure: Evaluate organization, modularity, and architecture
  2. Check Best Practices: Compare against established coding standards
  3. Security Review: Identify potential security vulnerabilities
  4. Antipattern Detection: Find common code smells and antipatterns
  5. Generate Review Report: Provide structured feedback with recommendations

Multi-Step Review Workflow

When conducting a code review, follow these steps in order:

Step 1: Initial Code Analysis

Read the code thoroughly and identify:

  • Primary purpose and functionality
  • Programming language and frameworks used
  • Overall structure and organization
  • Entry points and main logic flow

Step 2: Best Practices Check

Evaluate the code against best practices. Load the best practices guide for comprehensive checks:

  • references/best_practices.md - Comprehensive coding standards and practices

Key areas to check:

  • Naming conventions (variables, functions, classes)
  • Function design (single responsibility, proper parameters)
  • Error handling patterns
  • Code organization and modularity
  • Documentation and comments

Step 3: Security Review

Check for security vulnerabilities. Load the security checklist for detailed guidance:

  • references/security_checklist.md - Security review checklist based on OWASP guidelines

Key security areas:

  • Input validation and sanitization
  • Authentication and authorization
  • Injection vulnerabilities (SQL, command, etc.)
  • Data exposure and encryption
  • Dependency security

Step 4: Antipattern Detection

Identify code smells and antipatterns. Load the antipatterns guide for reference:

  • references/common_antipatterns.md - Common antipatterns and how to fix them

Common issues to look for:

  • God classes/functions
  • Deep nesting
  • Magic numbers and strings
  • Copy-paste code
  • Resource leaks

Step 5: Generate Review Report

Compile findings into a structured report:

## Code Review Summary

**File/Module**: [name]
**Language**: [language]
**Overall Assessment**: [Excellent/Good/Needs Improvement/Critical Issues]

### Strengths
- [List positive aspects]

### Issues Found

#### Critical (Must Fix)
- [Security vulnerabilities, bugs]

#### Major (Should Fix)
- [Significant antipatterns, bad practices]

#### Minor (Consider Fixing)
- [Style issues, small improvements]

### Recommendations
1. [Specific actionable recommendations]
2. [...]

### Resources Referenced
- [List which reference files were consulted]

Resources

Reference these files for detailed guidance during reviews:

  • references/best_practices.md - Comprehensive coding best practices covering organization, naming, error handling, testing, and documentation
  • references/security_checklist.md - Security review checklist covering OWASP Top 10, input validation, authentication, and common vulnerabilities
  • references/common_antipatterns.md - Guide to detecting and fixing common antipatterns like god classes, spaghetti code, and resource leaks

Examples

Example 1: Quick Review Request

User asks: "Can you review this function?"

Response approach:

  1. Load this skill's full instructions
  2. Analyze the provided code
  3. Check against best practices (load references/best_practices.md if needed)
  4. Identify any obvious security issues
  5. Provide concise feedback with specific recommendations

Example 2: Security-Focused Review

User asks: "Check this code for security vulnerabilities"

Response approach:

  1. Load this skill's full instructions
  2. Load references/security_checklist.md for comprehensive security checks
  3. Systematically check each security category
  4. Provide detailed security findings with severity ratings
  5. Include specific fix recommendations

Example 3: Comprehensive Code Review

User asks: "I need a thorough code review of my authentication module"

Response approach:

  1. Load this skill's full instructions
  2. Follow the complete multi-step workflow
  3. Load all three reference files as needed
  4. Provide comprehensive report covering all aspects
  5. Prioritize recommendations by impact

Notes

  • Always be constructive in feedback - explain why something is an issue and how to fix it
  • Severity ratings: Critical (security/bugs), Major (significant quality issues), Minor (style/polish)
  • Focus on the most impactful issues first
  • Provide specific code examples when suggesting fixes
  • Consider the context - production code needs higher scrutiny than prototypes
  • Reference specific sections of the guide files when making recommendations

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Code Review」では何ができますか?

Review code for quality, security, and best practices. Use when analyzing code, suggesting improvements, or conducting code reviews.

TypingMindでCode Reviewを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Code Reviewはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCode Reviewをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/coleam00/custom-agent-with-skills/tree/main/skills/code_reviewを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Code Reviewを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Code Reviewで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCode Reviewを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Code Review」は無料ですか?

coleam00がGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇