Dev Local Reviewのロゴ

Dev Local Review

コミュニティ
Nebulavenus
dev-local-review

Run a local code review using the CodeRabbit agent before pushing to catch issues early

概要

公開者Nebulavenus
リポジトリforge-gpu
スキル名dev-local-review
スター
46
フォーク
7
同梱ファイル
指示のみ
ライセンスZlib
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Run a local code review before pushing to catch issues before they hit the PR and burn a review round. Uses the built-in CodeRabbit code-reviewer agent (subagent_type: "coderabbit:code-reviewer") which runs entirely locally at zero cost.

This is not a substitute for the GitHub PR review. The local review cannot access CodeRabbit's learnings from past PRs or perform repo-wide architectural analysis. It is a fast, free pre-push gate that catches the obvious issues.

How it works

The skill uses Claude Code's built-in coderabbit:code-reviewer agent type. This agent reads the diff locally and performs a thorough code review covering correctness, style, documentation accuracy, and common issues. No external service, CLI tool, or API key required.

Usage

Invoke the skill before pushing:

text
/dev-local-review

Or with a specific base branch:

text
/dev-local-review --base develop

When to use

  • Before pushing fixes during /dev-review-pr — catch new issues locally instead of waiting for the GitHub bot
  • Before creating a PR with /dev-create-pr — clean up obvious issues before the first review
  • Any time you want a quick code quality check without pushing
  • After /dev-final-pass for a second opinion from a different reviewer

Workflow

1. Determine what to review

Check git status and git diff --stat to understand the scope of changes. Use the base branch from the argument (default: main).

2. Run the CodeRabbit code-reviewer agent

Launch a single agent with subagent_type: "coderabbit:code-reviewer". The prompt must include:

  • The list of modified and new files (from git diff --stat and git status)
  • A summary of what the changes are about (infer from file paths and recent context)
  • Instructions to be thorough and report specific file paths and line numbers
  • The project's code quality requirements (C99, SDL3 GPU, CLAUDE.md conventions)
text
Agent(
  subagent_type="coderabbit:code-reviewer",
  prompt="Review all changes compared to <base-branch>. [file list, context, instructions]"
)

3. Triage findings

When the agent returns, present findings sorted by severity (Major, Medium, Low, Informational). For each finding, determine:

  • Actionable: A real issue that should be fixed before pushing
  • Intentional: Code that is correct as-is (e.g., strict 0.0f epsilon for determinism tests)
  • Out of scope: Suggestions about code not changed in this PR

4. Fix actionable findings

Implement all actionable fixes. Do not ask about each one individually — fix them all, then report what was changed.

5. Re-run review (MANDATORY — cannot skip)

After fixing, run the agent again to verify no new issues were introduced. The re-run prompt should note which issues were already addressed so the agent focuses on finding new problems.

6. Repeat until zero feedback (MANDATORY — strict rule)

This is an absolute rule with no exceptions. The review loop MUST continue until the CodeRabbit agent returns with zero findings. The agent executing this skill is not allowed to decide on its own that remaining feedback is "just a nitpick" or "informational" and stop the loop early.

The only two valid exit conditions are:

  1. The review agent reports zero findings. The loop ends. Proceed to "After a clean local review."
  2. The agent explicitly asks the user whether to stop (presenting the remaining findings), and the user agrees to stop. Without user confirmation, the loop continues.

Prohibited behaviors:

  • Deciding that remaining findings are "low severity" and stopping
  • Classifying all remaining findings as "intentional" without user input
  • Stopping after a fixed number of rounds (e.g., "typically 2-3 rounds")
  • Summarizing remaining findings and moving on without fixing or asking
  • Treating nitpicks, style suggestions, or informational comments as automatic reasons to exit the loop

Each round of the loop:

  1. Run the CodeRabbit review agent
  2. If zero findings → exit loop (clean)
  3. If findings exist → fix actionable ones, ask user about ambiguous ones
  4. Go to step 1

If the same finding keeps reappearing after being fixed, investigate the root cause rather than stopping the loop. If genuinely stuck, ask the user for guidance — do not silently exit.

What it catches

Based on project experience, this review reliably catches:

  • Missing bounds checks and safety guards
  • Stale comments (e.g., <math.h> comment listing fabsf, sqrtf but code also uses fminf)
  • Documentation/code mismatches (README describes N phases but code has M)
  • Missing inline comments on struct fields
  • Resource cleanup gaps on error paths
  • Magic numbers that should be named constants
  • Naming convention violations
  • Bare C stdlib calls without SDL_ prefix (fabsf, sinf, memset, strcmp, malloc, etc.) — use SDL equivalents or approved project wrappers (forge_isfinite, forge_fmaxf, forge_fminf) for cross-platform portability

What it cannot do

  • Access CodeRabbit's learnings from past PR interactions
  • Perform repo-wide architectural analysis beyond the changed files
  • Interact with PR feedback threads or resolve conversations
  • Update GitHub approval state
  • Guarantee a clean PR review (the GitHub bot may find additional issues)

After a clean local review

A clean local review means the obvious issues are handled. Push and request a full PR review:

  1. Push the commits (single push, never piecemeal)
  2. Wait for CodeRabbit's PR review — it may find additional issues the local review missed
  3. If the PR review finds issues, use /dev-review-pr to handle them

よくある質問

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

Run a local code review using the CodeRabbit agent before pushing to catch issues early

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

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/dev-local-reviewを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

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

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

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

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

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

はい。NebulavenusがZlibライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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