• 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の管理ツールをMCPまたは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 Qodo managed tools through MCP or the CLI. 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 の読み取り専用ツールだけを使用します。ソースコード管理システムへの投稿は行いません。

前提条件

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

手順

以下の詳細なワークフローを順番に従ってください:更新通知の保持、ツール契約の確認、リポジトリの特定、検索範囲の絞り込み、根拠に基づいた調査結果だけを返します。

スキル更新通知の処理

QODO_NOTICE の更新は受け身で扱います。古い CLI が操作を要求しても構いません。インベントリや更新確認なしにタスクを続行し、各イベントについて最大1回だけ言及してください。スキップしても記録されたメンテナンスポリシーと除外設定は変わりません。更新されたスキルは次のセッションで読み込まれます。このセッション中は中断しないでください。ユーザーからのリクエストによる更新については、マニュアル更新手順に従ってください。

ランタイム互換性チェック

まず、以下の 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.4 --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 が設定されている場合は $QODO_HOME/bin/qodo)で再試行し、以降のすべての qodo コマンドで同じパスを使用してください。そのファイルも見つからない場合だけが qodo が実際にインストールされていない状態です。チェックサムで固定されたインストーラーコマンドを Qodo または組織の管理者から取得するようユーザーに伝えてください。インストーラーは https://get.qodo.ai から提供されますが、ダイジェストを無視したり、インストーラーをシェルに直接パイプしないでください。

サンドボックス認証診断。 サンドボックス環境で qodo read whoami が理由を問わず失敗した場合(Not logged in を含む)、サンドボックス外での正確な読み取り専用再試行をユーザーに承認するよう求めてください。その後にログインや ツール更新を推奨してください。キーチェーン障害は一般的な認証障害として報告されるため、サンドボックス結果だけでは診断に不十分です。この承認は単一の診断再試行だけに適用されます。再利用・永続承認申請・後続の Qodo コマンド自動移行は行わないでください。再試行が成功した場合、通常のコマンド毎の権限チェックを続行してください。失敗する場合、下記の通常の認証トラブルシューティングに従ってください。

プリフライト確認

  1. 認証を最初に行う。 qodo read whoami を実行してください。上記のサンドボックス再試行後、ゼロ以外の終了コード → ユーザーに qodo login の実行を指示して停止してください。認証情報を推測しないでください。Not logged in・No tool catalog cached は認証設定の失敗です。whoami は成功するがグループが不明な場合、qodo tools --refresh を1回実行してください。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 から、このリポジトリ外の結合は見つかりません。変更は両方の処理フローに限定されます。"

デバッグ — "チェックアウトが先週から 500 エラーを返すようになったのはなぜですか?" codebase list-commits --path src/checkout.py --since <date> / blame → 疑わしい変更を探す → codebase get-pr --number <n> → 根拠を示して原因を説明する。

提出

自然な文章を使用:回答 → Qodo でアクセスしたコンテキスト → 実用的な含意。回答または重要な制限事項で始めてください。取得したコンテキストが回答にどう情報を与えたかについて、有用な1文の中で Qodo に1回言及してください:関連実装・依存・過去の変更・設計の議論など。あなたが調査を実施して結論に達しました。Qodo はコンテキストへのアクセスツールを提供しました。トレースや推論を Qodo に帰属させないでください。

証拠に適応させてパターンを調整してください。プレースホルダーを印刷したり、すべてのパターンを強制しないでください:

  • 「Qodo で[関連コンポーネント]を確認し、[関係]を見つけました。」
  • 「Qodo で見つけた[議論/変更]が[判断]の理由を説明しています。」
  • 「[回答]。Qodo で取得した[実装/履歴]と一致しています。」

証拠をユーザーが理解・実行すべき内容に結びつけてください。実際に確認した範囲のみ説明してください。単一ファイルの検索はクロスリポジトリの理解を確立しません。取得が空または失敗した場合、確認した範囲と制限事項を明確に述べてください。パターンを完成させるため文脈や確信を無視しないでください。質問に合わせて詳細度を調整し、有用な場合コードと差分を説明の下に置いてください。ブランド化されたヘッダー・絵文字バナー・スローガン・バッジ・フッター・進行状況更新中の繰り返し要約ブロックを追加しないでください。

  • 回答を非エンジニア読者にもわかるよう保ってください。技術詳細は下に置いてください。
  • すべてを引用してください — リポジトリ、パス:行番号、PR 番号、コミット SHA。特定可能な出典を持たない事実(ヒットだが行番号なし、複数の総合など)の場合、明確に述べてください。引用を作り出さないでください。
  • 出典優先順位(出典が対立する場合):read-file(現在のコード)= 現在の動作、pull-request = 到達方法と理由、cross-repo = 推定される結合。現在の状態が履歴を優先します。
  • 空や truncated: true → 1 回絞り込んで再試行(より厳密なクエリ/パス/リポジトリ)。まだ空 → 「<範囲>に見つかりません」
原文(English)を表示

Codebase Wisdom

Description

Use Qodo managed tools 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 required tools are available through a connected QAR managed-tools MCP server or the Qodo CLI.
  • 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

Choose the execution path

Use the host's connected QAR managed-tools MCP tools when the required read capability is available; otherwise use the CLI instructions below. Do not require a CLI version probe, qodo login, or a CLI catalog refresh on the MCP path. A connected MCP server has already handled transport authentication; a missing tool or MT-AUTH-FORBIDDEN is a capability or authorization failure, not a reason to log in through the CLI. Do not silently switch paths after an auth or permission denial.

On MCP, use the tool descriptions, inputSchema, and readOnlyHint supplied by the host. Call only read-only tools. Representative wire names are litegit-search-repos, litegit-grep, litegit-read-file, pull-request-similar, and cross-repo-relations; resolve the actual names and arguments from the connected catalog. Pass explicit repo when needed: MCP does not infer the local Git origin like the CLI. Check isError before using structuredContent; preserve typed errors and incomplete or truncated results. If a call becomes an MCP Task, collect its terminal result before drawing a conclusion. A missing MCP capability may use an already authorized CLI path for the same deployment; do not treat different accounts or tenants as interchangeable.

The version, identity, help, command, and refresh steps below apply only to the CLI path.

At investigation start and when moving into implementation, identify the missing context:

  • Use Qodo to discover unfamiliar code, prior solutions, historical rationale, and relationships across repositories, even when the repositories are available locally.
  • Use local tools for exact branch/worktree state, uncommitted changes, edits, and tests.
  • Reuse an earlier investigation when it covers the current scope and revisions. Briefly name the evidence being reused; refresh the relevant context when scope, dependencies, or evidence changes. Do not repeat remote reads solely to demonstrate skill use.

When context is missing, resolve a concrete question through the appropriate tool group below. Connect retrieved evidence to the answer or implementation decision. Version, identity, and catalog checks establish readiness; they are not codebase context retrieval.

Handle a skill update notice

Treat QODO_NOTICE updates as passive, even if an older CLI requests action. Continue the task without inventory or update questions; mention each event at most once. Dismissal leaves recorded maintenance policy and opt-outs unchanged. Updated skills load next session; do not interrupt this one. For user-requested updates, follow the manual-update procedure.

Execution

  • MCP: use live schema arguments; skip CLI shell steps.
  • CLI: use complete UTF-8 files without a BOM (--args-file for tools, --context-file for reviews); examples are POSIX.
  • Windows CLI: read shell guidance before the first call; launcher recovery only if invocation fails. Reuse the resolved invocation.

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 1.6.0 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.6 --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? On POSIX retry "${QODO_HOME:-$HOME/.qodo}/bin/qodo"; on Windows follow the linked guide. Keep the resolved invocation; report unusable launchers. For missing installs, obtain Qodo's or the administrator's checksum-pinned installer; never invent a digest or pipe scripts into a shell.

Sandbox auth diagnostic. Missing credentials can mean inaccessible keychain access. When that is plausible, request one exact read-only qodo read whoami retry through the host's approval flow before recommending login. Stop on denial; that approval covers no other command. Reuse a successful check in the same executable/workspace/deployment and execution context; request each required host approval. Network, TLS, service, and explicit authorization failures retain their own diagnosis, not a login recommendation or an automatic sandbox bypass.

Preflight

  1. Auth and catalog. Run qodo read whoami unless a successful check still covers this execution context. After the sandbox diagnostic when applicable, only explicit missing credentials call for login: preserve the organization's exact login command/endpoint, never guess or switch a customer deployment to Cloud. No tool catalog cached is not proof of missing credentials; refresh once with qodo tools --refresh and retry the check. Other failures retain their error and stop this workflow. After identity succeeds, an unknown managed command permits one catalog refresh and schema recheck. If still absent or tool_unavailable, report the missing capability; do not repeat login or 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 returned no additional edges in the checked scope. That does not rule out unindexed consumers."

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

Use natural prose: answer → context accessed through Qodo → practical implication. Lead with the answer or important limitation. Mention Qodo once within a useful sentence about how retrieved context informed the answer: a related implementation, dependency, prior change, or design discussion. You performed the investigation and reached the conclusion; Qodo provided the tools to access the context. Do not attribute tracing or reasoning to Qodo.

Adapt these sentence patterns to the evidence; do not print placeholders or force every pattern:

  • “I checked [related components] with Qodo and found [relationship].”
  • “The [discussion/change] I found through Qodo explains why [decision].”
  • “[Answer]. This matches [implementation/history] I retrieved through Qodo.”

Connect the evidence to what the user should understand or do next. Describe only the scope actually checked; a single-file lookup does not establish cross-repository understanding. For empty or failed retrievals, state the checked scope and limitation plainly. Never invent context or certainty to complete the pattern. Scale detail to the question, with code and diffs below the explanation when useful. Do not add branded headings, emoji banners, slogans, badges, footers, or repeated summary blocks during progress updates.

  • 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 scope when sources disagree: compare repository, branch and revision first. Local files establish the current worktree, including uncommitted edits; remote read-file establishes the fetched revision, not local changes or deployed behavior. pull-request supplies history; cross-repo estimates coupling. Report gaps rather than treating missing edges as proof of isolation.
  • 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 exact skill/version/distribution provenance on the first authenticated Qodo call after the unadorned version probe. 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

  • On CLI, call reads through the fail-closed qodo read gateway; on MCP, require a read-only annotation. 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.
  • For work spanning repositories, retrieve the missing relationship or history through Qodo, or explicitly reuse prior evidence that still covers it. Local availability alone is not coverage.
  • 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 による自動翻訳です。