• 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/スキル
SKILLKnowledge Workdevelopment

qodo-codebase-wisdom

プラグイン
Qodo
ソース
GitHub で見る ↗
説明

コードの仕組みや過去の変更内容、リポジトリ(コードの保管庫)同士の関連性を理解するために、qodo CLIの管理ツールを使用します。コードベース(プロジェクト全体のコード)の内容、その変更履歴、または複数のリポジトリ間の関係を把握する必要があるタスク、特にローカルにチェックアウトしていないリポジトリや複数のリポジトリにまたがる作業で役立ちます。 **次のような場合に使用:** - 「Xがどのように動いているのか」 - 「Xはどこで定義されているのか」 - 「誰がXを変更したのか」 - 「このサービスについて説明してほしい」 - 「Xへの変更をどう計画するか」 - 「Xを変更するとどこに影響するか」 - 「どのリポジトリがXに依存しているのか」 - 「なぜXが不具合になったのか/いつ壊れたのか」 - 「これまでこの問題は修正されたことがあるか」 - 「過去にXを解決した方法は何か」

原文を表示

Understand how code works, how a change was done before, and which repos are coupled — to answer a question, plan a code change, debug a regression, or scope a fix, using the qodo CLI's managed tools. Use when a task needs to understand a codebase, its history, or how its repos relate — especially for a repo you don't have checked out or work spanning repos — "how does X work", "where is X defined", "who changed X", "explain this service", "plan the change for X", "what would changing X affect", "which repos depend on X", "why did X regress / when did it break", "has this been fixed before", "how did we solve X".

ユースケース
  • コードの動作仕組みを理解する
  • コード変更の履歴を確認する
  • リポジトリ間の関連性を把握する
  • 変更の影響範囲を調査する
  • 過去の問題解決方法を確認する
本文(日本語訳)

コードベース・ウィズダム

説明

qodo CLI(コマンドラインインターフェース)を使用して、コードの動作原理、過去の変更方法、リポジトリ間の結びつきを学習した後、引用元を明記した調査結果をお返しします。これにより、質問への回答、変更の計画、不具合の調査、修正の範囲決定が可能になります。あなたの手元にないリポジトリにもアクセスでき、複数のリポジトリにまたがった調査ができます。qodo の読み取り専用ツールのみを使い、コード管理システム(GitHub などの Forge)への書き込みは行いません。

前提条件

  • Qodo CLI がインストール済みで、ユーザーが qodo login で認証できる。
  • ワークスペースが必要な読み取り専用のコードベース、プルリクエスト、またはリポジトリ横断ツールを提供している。
  • このエージェントセッションに、現在のプロバイダー所有の Qodo スキルパッケージが読み込まれている。

使用手順

以下の詳細なワークフローに順序どおり従ってください:更新通知の保持、稼働中ツールの仕様確認、リポジトリの特定、検索範囲の絞り込み、証拠に裏付けられた結果のみの返却。

スキル更新通知への対応

Qodo コマンドは成功時にも QODO_NOTICE <json> を標準エラー出力に送信することがあります。code が qodo_skill_update_available の場合、そのコマンドの結果は保持し、現在のタスクを完了させてください。その後、通知の steps に従う:読み取り専用インベントリ(資産一覧)を最初に実施し、インストール済み Qodo パッケージとスコープを確認し、ライフサイクル所有者(更新を管理する組織部門)の正確な更新コマンドまたは UI 操作を表示し、任意の変更前に一度だけ確認してください。ユーザーが辞退した場合、現在のバージョンは使用可能なまま保ちます。

別のライフサイクル所有者を呼び出したり、プレースホルダーを推測したり、オプションパッケージを暗黙的にインストールしないでください。承認された更新後、通知で指定されたホスト再起動を要求します。現在のセッションには古いスキルが読み込まれたままの可能性があります。

実行時互換性確認

最初に以下の qodo: command not found フォールバック(代替手段)を使用して実行ファイルを特定します。他の Qodo コマンドの前に、<qodo> --version を表示のままで実行してください。プロバイダンスフラグ(出所情報)は付けません。 この簡潔なプローブ(動作確認)は意図的に古い Qodo CLI との互換性を持ちます。このスキルは Qodo CLI 0.1.0-next.37 以降が必要です。

バージョンが古い、または解析できない場合、whoami、login、マネージドツールを実行しないで、エラーを認証の問題として説明しないでください。スキルがランタイムより新しいことを説明し、ランタイムに既に記録されている出所から qodo update を更新コマンドとして示し、実行前に一度だけ確認してください。顧客デプロイメント環境では、その組織が提供する更新出所を保ち、公開サービスに切り替えないでください。承認された更新後、装飾なしバージョンプローブを再実行し、最小要件を満たすときだけ続行します。ユーザーが辞退するか更新が失敗した場合、現在のスキルとユーザーファイルを変更せずに停止してください。

クイックスタート

qodo --version                                             # 互換性確認 — これを最初に実行
qodo read whoami --json --skill qodo-codebase-wisdom --skill-version 1.1.2 --distribution marketplace --host claude-code
qodo read codebase search-repos --query "payments" --json      # リポジトリスラッグを特定 — これを最初に実行
qodo read codebase grep --repo owner/repo --pattern "chargeCard" --json
qodo read codebase read-file --repo owner/repo --path src/pay.py --json
qodo read codebase blame --repo owner/repo --path src/pay.py --json
qodo read pull-request similar --repo owner/repo --query "retry failed charge" --json
qodo read cross-repo relations --repo owner/repo --json
qodo read tools codebase --json                           # 安全グループのツール+正確なフラグ(オフライン)

解析するものすべてに --json を付けてください。ツールを呼び出す前に、qodo read tools <group> [<tool>] --json で正確な名前とフラグを確認してください(オフラインで表示)— 以下のツール名は参考例であり、現在の仕様を保証しません。

qodo: command not found? これは PATH の問題で、インストール漏れではありません:GUI から起動したエージェント(Claude Code デスクトップアプリなど)は PATH の少ないシェルで実行されます。絶対パス ~/.qodo/bin/qodo(または $QODO_HOME/bin/qodo が設定されている場合はそれ)で再試行し、以降すべての qodo コマンドにこれを使用してください。そのファイルも見つからない場合のみ、qodo は実際にインストールされていません。チェックサム固定のインストーラコマンドを Qodo または組織の管理者から取得するようユーザーに伝えてください。インストーラは https://get.qodo.ai から配布されていますが、ダイジェスト(チェックサム)を自作したり、インストーラをシェルに直接パイプしないでください。

サンドボックス認証診断。 サンドボックス環境で、qodo read whoami がどの理由(Not logged in を含む)で失敗しても、サンドボックス外で qodo read whoami の正確な読み取り専用再試行をユーザーが承認するよう求めてから、ログインや ツール更新を勧めてください。キーチェーン(認証情報保管)の失敗は汎用認証エラーと報告される可能性があるため、サンドボックスの結果だけでは診断に不十分です。この承認はこの単一診断再試行にのみ適用される:それを再利用しない、恒久的な承認を要求しない、後の Qodo コマンドを自動的にサンドボックス外に移さないでください。再試行が成功した場合、通常のコマンド単位の権限チェックで続行してください。それでも失敗した場合、以下の通常の認証トラブルシューティングに従ってください。

事前準備チェック

  1. 認証を最初に。 qodo read whoami を実行してください。上記のサンドボックス再試行後、ゼロ以外の終了コード → ユーザーに qodo login を実行するよう伝え、停止してください。認証情報を推測しないでください。Not logged in / No tool catalog cached は認証セットアップ失敗です。whoami が成功してもグループが不明な場合、qodo tools --refresh を一度実行します。CLI が tool_unavailable または「コードベースツールはこのアカウント/ワークスペースで利用不可」と報告した場合、停止してワークスペース管理者がアクセスを有効にする必要があることを説明します。認証済みユーザーを再度ログイン画面に導いたりリフレッシュループに入らないでください。

  2. リポジトリを特定します。リポジトリ名が明示されている → --repo owner/repo。ローカル git リポジトリ内で名前なし → --repo を省略(オリジンから自動検出)。そうでなければ qodo read codebase search-repos --query "<name>" --json を実行し、スラッグを推測しないでください。複数該当 → ユーザーに選択させます。0 件 → その旨を伝え停止、架空のものを作らないでください。

ツールグループへのルーティング

必要なタスク グループ 代表的なツール(qodo read tools で確認)
現在のコード — いまどこにどんなコードがあり、どう動くか qodo read codebase search-repos、grep、find、ls、read-file、blame、list-commits、get-commit、list-prs、get-pr、list-issues、get-issue、search-issues
履歴 / 先例 — 過去の変更方法、ファイルのプルリクエスト履歴、過去のレビュー指摘 qodo read pull-request stats、similar、by-file、details、patch
影響 / 結びつき — 変更の影響範囲、このリポジトリに依存する他のリポジトリ qodo read cross-repo overview、relations

実務的なタスクは複数グループにまたがります — 例を参照。

絞り込んでから取得

軽い探索を重い取得の前に:方向づけ(search-repos;pull-request stats でリポジトリに索引付きプルリクエスト履歴があるか確認;cross-repo relations でカップリング(連携)を確認)→ 位置確認(grep/find/blame/list-commits;pull-request similar/by-file)→ 読取(その後 read-fileを --start-line/--limit-lines で、get-pr、pull-request details/patch で)。

使用例

Q — "chargeCard() はどこで定義されていますか?」 codebase grep --pattern "chargeCard" → ヒットを選択 → codebase read-file --path src/pay.py --start-line 120 --limit-lines 40。→ 「chargeCard() は owner/repo の src/pay.py:142 にあり、Stripe を呼び出し、最後に PR #1523 で変更された」

計画 — 「失敗した課金にリトライを追加する」 pull-request similar --query "retry failed charge" → PR #1401(ウェブフック リトライ)→ pull-request details --pr-number 1401(バックオフ + キューパターン)→ cross-repo relations(課金は他のリポジトリと連携しているか)→ codebase grep --pattern "chargeCard\(" 呼び出しサイト)。→ 「PR #1401 で実施済み(指数バックオフ、最大 3 回、専用キュー)。chargeCard() の呼び出しサイトは 2 箇所(src/checkout.py:88、src/batch.py:210);cross-repo はこのリポジトリ外の連携なし、変更は 2 つのフロー内に留まる」

デバッグ — 「チェックアウトが先週から 500 エラーを返すようになったのはなぜ?」 codebase list-commits --path src/checkout.py --since <date> / blame → 疑わしい変更を発見 → codebase get-pr --number <n> → 証拠を添えて原因を特定。

報告

1 つの簡潔な価値ブロックで始め、コード、パス、差分を下に配置します:

# 🧭 Qodo コードベース・インサイト

**回答:** <平易な言葉での要点>
**対象範囲:** <実際に確認したリポジトリ、参照、または日付>
**証拠:** <N 件の引用元または「確認範囲内では見つからず」>
---

調査が証拠に裏付けられた回答を得た後、これを一度だけ表示してください。Qodo ヘッダーはリポジトリ横断の証拠がどこから来たかを示し、各フィールドは結果を監査可能にします。認証/ツール障害や不確実な回答の装飾に使用しないでください。

  • 回答は非エンジニアにも理解できるようにし、技術的詳細は下に置く。
  • すべてを引用 — リポジトリ、path:line、PR 番号、コミット SHA。事実に位置情報がない場合(行なしのヒット、または複数の合成),その旨を明記して — 引用を自作しないでください。
  • 出所の優先順位(ソースが矛盾する場合):read-file(現在のコード)= いま動作の様子;pull-request = 動作理由と経緯;cross-repo = 推定カップリング。現在の状態が履歴に優先。
  • 空または truncated: true → 一度絞り込み再試行(より厳密なクエリ / パス / リポジトリ)再試行してから結論づけてください。なお空 → 「<対象範囲>内では見つからず」と報告、過度な主張をしない。
  • 鮮度の注記:
原文(English)を表示

Codebase Wisdom

Description

Use the qodo CLI to learn how code works, how a change was done before, and how repos are coupled — then hand back cited findings. This feeds answering a question, planning a change, debugging a regression, or scoping a fix. It reaches repos you don't have on disk and spans repo boundaries. You drive qodo's read tools only; you never post to the forge.

Prerequisites

  • The Qodo CLI is installed and the user can authenticate with qodo login.
  • The workspace exposes the required read-only Codebase, pull-request, or cross-repo tools.
  • The current provider-owned Qodo skill package is loaded in this agent session.

Instructions

Follow the detailed workflow below in order: preserve update notices, confirm the live tool contract, resolve the repository, narrow the search, and return only evidence-backed findings.

Handle a skill update notice

A Qodo command can emit QODO_NOTICE <json> to stderr while still succeeding. When code is qodo_skill_update_available, keep the command's result and finish the current task. Then follow the notice's steps: do read-only inventory first, resolve the installed Qodo package and scope, show the exact lifecycle-owner update command or UI action, and ask once before any mutation. If the user declines, keep the current version usable.

Never invoke a different lifecycle owner, guess a placeholder, or install an optional package implicitly. After an approved update, ask for the host restart named by the notice; the current session may still have the old skill loaded.

Runtime compatibility gate

First resolve the executable using the qodo: command not found fallback below. Before any other Qodo command, run <qodo> --version exactly as shown, with no provenance flags. This unadorned probe is intentionally compatible with older Qodo CLIs. This skill requires Qodo CLI 0.1.0-next.37 or newer.

If the version is older or cannot be parsed, do not run whoami, login, or a managed tool and do not describe the failure as an authentication problem. Explain that the skill is newer than the runtime, show qodo update as the update command for the runtime's already-recorded origin, and ask once before running it. For a customer deployment, keep its organization-provided update origin; never switch it to the public service. After an approved update, rerun the unadorned version probe and continue only when it satisfies the minimum. If the user declines or the update fails, stop with the current skill and user files unchanged.

Quick start

qodo --version                                             # compatibility probe — run this FIRST
qodo read whoami --json --skill qodo-codebase-wisdom --skill-version 1.1.2 --distribution marketplace --host claude-code
qodo read codebase search-repos --query "payments" --json      # resolve a repo slug — do this FIRST
qodo read codebase grep --repo owner/repo --pattern "chargeCard" --json
qodo read codebase read-file --repo owner/repo --path src/pay.py --json
qodo read codebase blame --repo owner/repo --path src/pay.py --json
qodo read pull-request similar --repo owner/repo --query "retry failed charge" --json
qodo read cross-repo relations --repo owner/repo --json
qodo read tools codebase --json                           # the safe group's tools + exact flags (offline)

Add --json to anything you parse. Before calling a tool, confirm its exact name, flags, with qodo read tools <group> [<tool>] --json (renders offline) — the tool names below are illustrative, not guaranteed current.

qodo: command not found? That's PATH, not a missing install: GUI-launched agents (e.g. the Claude Code desktop app) run shells with a minimal PATH. Retry with the absolute path ~/.qodo/bin/qodo (or $QODO_HOME/bin/qodo if set) and keep using it for every qodo command here. Only if that file is missing too is qodo actually not installed; tell the user to obtain a checksum-pinned installer command from Qodo or their organization's administrator. Installers are served from https://get.qodo.ai, but never invent a digest or pipe an installer directly into a shell.

Sandbox auth diagnostic. In a sandboxed environment, if qodo read whoami fails for any reason (including Not logged in), ask the user to approve one exact read-only retry of qodo read whoami outside the sandbox before recommending login or refreshing tools. Keychain failures can be reported as generic auth failures, so the sandboxed result alone is not diagnostic. That approval applies only to this single diagnostic retry: do not reuse it, request persistent approval, or move later Qodo commands outside the sandbox automatically. If the retry succeeds, continue with normal per-command permission checks. If it still fails, follow the normal auth troubleshooting below.

Preflight

  1. Auth first. Run qodo read whoami. After the sandbox retry above when applicable, a non-zero exit → tell the user to run qodo login, then stop. Never guess creds. Not logged in / No tool catalog cached are authentication setup failures. If whoami succeeds but a group is unknown, run qodo tools --refresh once. If the CLI reports tool_unavailable or says Codebase tools are unavailable for the account/workspace, stop and explain that a workspace admin must enable access; do not send an authenticated user through login again or loop on refresh.
  2. Resolve the repo. Named repo → --repo owner/repo. Inside a git repo with none named → omit --repo (autodetected from origin). Otherwise qodo read codebase search-repos --query "<name>" --json and never guess a slug. Multiple matches → ask the user which; zero matches → say so and stop, don't invent one.

Route to a tool group

The task needs… Group Representative tools (verify via qodo read tools)
Current code — where/what/how it works now qodo read codebase search-repos, grep, find, ls, read-file, blame, list-commits, get-commit, list-prs, get-pr, list-issues, get-issue, search-issues
History / prior art — how a change was done, a file's PR history, past review feedback qodo read pull-request stats, similar, by-file, details, patch
Impact / coupling — what a change affects, which repos depend on this qodo read cross-repo overview, relations

Real tasks span groups — see Examples.

Narrow, then fetch

Cheap discovery before heavy pulls: orient (search-repos; pull-request stats to confirm a repo has indexed PR history; cross-repo relations for coupling) → locate (grep/find/blame/list-commits; pull-request similar/by-file) → read (only then read-file with --start-line/--limit-lines, get-pr, pull-request details/patch).

Examples

Q — "Where is chargeCard() defined?" codebase grep --pattern "chargeCard" → pick the hit → codebase read-file --path src/pay.py --start-line 120 --limit-lines 40. → "chargeCard() is at owner/repo src/pay.py:142; calls Stripe, last changed in PR #1523."

Plan — "Add retry to failed charges." pull-request similar --query "retry failed charge" → PR #1401 (webhook retries) → pull-request details --pr-number 1401 (backoff + queue pattern) → cross-repo relations (is charging coupled to other repos?) → codebase grep --pattern "chargeCard\(" (call sites). → "Done before in PR #1401 (exp. backoff, max 3, dedicated queue). chargeCard() has 2 call sites (src/checkout.py:88, src/batch.py:210); cross-repo shows no coupling beyond this repo, so the change stays local to those two flows."

Debug — "Why did checkout start 500ing last week?" codebase list-commits --path src/checkout.py --since <date> / blame → find the suspect change → codebase get-pr --number <n> → name the cause with evidence.

Deliver

Lead with one compact value block, then put code, paths, and diffs underneath it:

# 🧭 Qodo Codebase Insight

**Answer:** <the bottom line in plain language>
**Scope:** <repos, refs, or date range actually checked>
**Evidence:** <N cited locations, or "not found in the checked scope">
---

Render this once, only after the investigation has an evidence-backed answer. The Qodo header identifies where the cross-repository evidence came from; the fields make the result auditable. Do not show it for auth/tool failures or use it to decorate an uncertain answer.

  • Keep the answer understandable to a non-engineering reader; put technical detail below it.
  • Cite everything — repo, path:line, PR number, commit SHA. When a fact has no locatable source (a hit without a line, or a synthesis of several), say so plainly — don't invent a citation.
  • Source precedence when sources disagree: read-file (current code) = how it behaves now; pull-request = how/why it got there; cross-repo = estimated coupling. Present state trumps history.
  • Empty or truncated: true → narrow once and retry (tighter query / path / repo) before concluding. Still empty → report "not found in <scope>", don't overclaim.
  • Freshness caveats: pull-request = merged PRs only (no open/draft); cross-repo edges may be pending (analysis running) or not_found (checked, no coupling).

Configuration

Use --json for parsed output and stamp the exact skill/version/distribution provenance on the first Qodo call. Tool names and schemas come from the installed CLI catalog, never from hardcoded skill assumptions. The marketplace or skills.sh owns this skill; the CLI owns only runtime access.

Error Handling

Preserve the returned error code and message. Treat authentication, unavailable-tool, rate-limit, and loop-protection responses as explicit stop or recovery conditions described above; never replace them with guessed repository facts or broader authority.

Guardrails

  • Only call managed tools through the fail-closed qodo read gateway. The write tools — approve, post-comment, post-inline-comment(s), set-labels, update-description (non-exhaustive) — post to the forge; don't call them while investigating. (Editing local code as part of a fix is your normal work — that's not these tools.)
  • Don't guess slugs, paths, PR numbers, or SHAs — resolve them first.
  • Don't reason only from a local checkout when the work spans other repos; these tools reach what you don't have on disk.
  • An MT-TOOL-LOOP error means stop and change approach, not retry.

A short, well-cited result is a confidence signal; padding with uncited detail is noise.

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