• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLOfficialdevelopment

review

プラグイン
greptile
引数
[base branch] [what to focus on]
ソース
GitHub で見る ↗
説明

Greptileで現在のブランチをレビューする **用途:** 次のような場合に使用: コードベースの特定のブランチに対して詳細なコード分析やレビューが必要な場合 **説明:** Greptile(コード検索・分析ツール)を使用して、現在のGitブランチの内容を自動的に審査し、潜在的な問題や改善点を指摘します。

原文を表示

Review the current branch with Greptile

ユースケース
  • 現在のブランチのコード分析が必要な場合
  • ブランチの詳細なレビューをする
  • コードの問題点を指摘してもらう
  • 改善点を検出する
本文(日本語訳)

現在のブランチ(開発履歴の分岐)に対して、Greptile(コード検査ツール)のレビューを実行します。

引数の処理

$ARGUMENTS からコマンドを構築します。ユーザーが何か入力した場合は以下のように変換します:

  • レビュー対象のブランチ名 → --branch '<ブランチ名>' に変換(以下の引用符方式に合わせます)
  • その他の入力内容 → レビュー時に注目してほしい指示として、--instructions '<入力内容>' で渡します。シングルクォート を使うことで、ユーザーの入力テキストがそのままレビュアーに届きます。入力テキストにシングルクォート(')が含まれている場合は、すべて '\'' に置き換えてください。それ以外は変えないでください。ダブルクォート(")は使わないでください。ダブルクォート内では $ や逆クォートが有効なため、$PATH が指示から消えたり、$(...) がコマンド実行中に権限確認プロンプトで止まる可能性があります。

実行コマンド

GREPTILE_NO_AUTO_INSTALL=1 GREPTILE_NO_UPDATE_CHECK=1 node "${CLAUDE_PLUGIN_ROOT}/scripts/greptile.mjs" review --agent

Claude Code(Codex)の外では、${CLAUDE_PLUGIN_ROOT} をプラグインのルートディレクトリの絶対パスに置き換えてください(この SKILL.md ファイルから2階層上のフォルダ)。

--agent は常に指定してください。これにより AI エージェント向けの整形されたテキスト出力が選択されます。

環境変数の説明

  • GREPTILE_NO_AUTO_INSTALL=1:Mermaid(図表作成ツール)レンダラーのダウンロードを抑止します。レビュー結果に図表が含まれると、通常は ~/.cache/greptile/bin/ に変換プログラム(mmdr)をダウンロードします。対話型ターミナルならそれも価値がありますが、ここでは不要です。Claude Code は TTY(対話的なターミナル)なしでこのコマンドを実行するため、インライン画像は表示されず図表はリンク形式に落とされます。一方、ダウンロード自体はユーザーの待つレビューを遅延させます。図表の Mermaid ソースはレビュー結果テキストに含まれるので問題ありません。

  • GREPTILE_NO_UPDATE_CHECK=1:念のための設定です。CLI は自身のパス位置からインストール方法を推測しますが、このプラグイン対応以前のバージョンではプラグイン内部のコピーをスタンドアロン版として読み込むため、更新できないインストーラー名を表示していました。--agent は非対話型のため通知は既に抑止されていますが、コマンドが --agent なしで実行される場合や他の場所にコピーされた場合に備えての設定です。更新はプラグインと一緒に配信されます。

その他の設定

Bash コマンドには 600000 ミリ秒(10分)のタイムアウト を設定してください。レビューは通常、デフォルト時間(2分)より長くかかります。

未認証時の処理

コマンドが「not signed in. Set GREPTILE_API_KEY or run 'greptile login --api-key'」を出力した場合、OAuth 認証を勧めてください。ユーザーに /greptile:login(Codex では login スキル)の実行を指示し、そこで終了してください。ブラウザでの認証をコマンド内で開始しないようにしましょう。

実行結果の処理

このコマンドは ヘッドレスレビュー を実行します。プルリクエスト(変更内容の統合申請)を開く必要がなく、作業ブランチをレビューします。レビュー結果はユーザーの Greptile アカウントに保存されるため、このプラグイン内の Greptile MCP ツールで読み取ることができます。list_code_reviews と get_code_review は source: "headless" を指定してレビューを取得します。

レビュー完了後、見つかった問題を要約し、修正を提案してください。詳細が必要な指摘については get_code_review で完全な情報を取得してください。

原文(English)を表示

Run a Greptile review on the current branch, against its base branch.

Build the command from $ARGUMENTS, if the user supplied any:

  • A branch name they want to review against becomes --branch '<BRANCH>', quoted the same way as the instructions below.
  • Anything else they wrote is what they want the reviewer to focus on. Pass it as --instructions '<their words>' using single quotes, so the reviewer receives their exact text. If their text contains a ', replace each one with '\'' and change nothing else. Never use double quotes: $ and backticks are live inside them, so $PATH would silently disappear from the instructions and $(...) would stop the run at a permission prompt.
GREPTILE_NO_AUTO_INSTALL=1 GREPTILE_NO_UPDATE_CHECK=1 node "${CLAUDE_PLUGIN_ROOT}/scripts/greptile.mjs" review --agent

Outside Claude Code (Codex), replace ${CLAUDE_PLUGIN_ROOT} with the plugin root: the absolute path two folders above this SKILL.md.

Always pass --agent; it selects plain output intended for AI agents.

GREPTILE_NO_AUTO_INSTALL=1 suppresses the Mermaid renderer download. When a review summary carries a diagram, the CLI otherwise fetches a small binary (mmdr) into ~/.cache/greptile/bin/ to rasterize it. That is worth doing in a terminal a person is watching; it is not worth doing here. Claude Code runs this command without a TTY, so the inline-image path is dead either way and the diagram degrades to a link to an SVG file — while the download itself would still stall a review the user is waiting on. The diagram's Mermaid source reaches you in the review text regardless.

GREPTILE_NO_UPDATE_CHECK=1 is belt-and-braces. The CLI infers how it was installed from its own path, and versions before the plugin was recognised read a copy running from inside this plugin as a standalone install — which would name an installer that cannot update the plugin's copy. The notice is already suppressed here because --agent is non-interactive, so this only matters if the command is ever run without it, or the invocation is copied elsewhere. Updates arrive with the plugin either way.

Give the Bash call a 600000 ms timeout. A review commonly runs longer than the two-minute default.

If the run reports that no one is signed in, it prints not signed in. Set GREPTILE_API_KEY or run 'greptile login --api-key'. Prefer OAuth over an API key: tell the user to run /greptile:login (in Codex, the login skill), and stop there rather than starting a browser sign-in inside this command.

This dispatches a headless review: it reviews the working branch and does not need an open pull request. The review is stored on the user's Greptile account, so the greptile MCP tools in this plugin can read it back — list_code_reviews and get_code_review return it with source: "headless".

After the review completes, summarize the findings and offer to fix them. Use get_code_review for the full body of any finding you need more detail on.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。