explore-codebase
Pattern for efficiently exploring codebases using parallel subagents. Use when you need to understand code structure, find patterns, or gather context.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o explore-codebase.zip https://jpskill.com/download/17957.zip && unzip -o explore-codebase.zip && rm explore-codebase.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17957.zip -OutFile "$d\explore-codebase.zip"; Expand-Archive "$d\explore-codebase.zip" -DestinationPath $d -Force; ri "$d\explore-codebase.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
explore-codebase.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
explore-codebaseフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
コードベース探索スキル
並列サブエージェントを使用して、コードベースを効率的に探索するためのパターンです。
このスキルをロードするタイミング
- コードベースの一部を理解する必要がある場合
- 意思決定を行う前にコンテキストを収集している場合
- パターン、規約、または既存の実装を見つける必要がある場合
探索戦略
クイック検索の場合(自分で行う)
Glob("**/*{keyword}*")
Grep(pattern="functionName", type="ts")
特定のものを探している場合に使用します。
幅広い理解の場合(エクスプローラーを生成する)
並列エクスプローラーサブエージェントを生成します。
Task(
subagent_type: "explorer", # カスタム dotagent エージェント (小文字)
model: "haiku",
prompt: |
Query: {具体的な質問}
Hints: {どこを見るべきか}
Scope: {必要に応じて制限}
構造化された YAML を返します:
- findings (場所、関連性、概要)
- patterns_observed
- related_areas
- gaps
)
異なる領域に対して同時に複数生成します。
注: @.claude/agents/explorer.md で定義されているカスタム dotagent エージェントには、"explorer" (小文字) を使用してください。組み込みの "Explore" (大文字) は、より単純な動作をする別の Claude Code エージェントです。
結果の統合
エクスプローラーの出力を組み合わせて、一貫性のある理解を得ます。
- 領域全体の共通パターン
- 統合ポイント
- 発見された制約
- 注意すべきギャップ
出力形式
探索後、次のように要約します。
codebase_context:
architecture_summary: string
existing_patterns: [string]
integration_points: [string]
constraints: [string]
gaps: [string]
原則
- 逐次処理よりも並列処理 - 複数のエクスプローラーを一度に生成します
- 深さよりも幅 - まずは幅広く探索します
- 構造化された出力 - 常に YAML の要約を生成します
- ギャップを記録する - 見つけられなかったことも重要です
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Explore Codebase Skill
Pattern for exploring codebases efficiently with parallel subagents.
When to Load This Skill
- You need to understand parts of the codebase
- You're gathering context before making decisions
- You need to find patterns, conventions, or existing implementations
Exploration Strategy
For Quick Searches (Do Yourself)
Glob("**/*{keyword}*")
Grep(pattern="functionName", type="ts")
Use when looking for a specific thing.
For Broad Understanding (Spawn Explorers)
Spawn parallel explorer subagents:
Task(
subagent_type: "explorer", # Custom dotagent agent (lowercase)
model: "haiku",
prompt: |
Query: {specific question}
Hints: {where to look}
Scope: {limit if needed}
Return structured YAML:
- findings (location, relevance, summary)
- patterns_observed
- related_areas
- gaps
)
Spawn multiple for different areas simultaneously.
Note: Use "explorer" (lowercase) for the custom dotagent agent defined in
@.claude/agents/explorer.md. The built-in "Explore" (capitalized) is a different
Claude Code agent with simpler behavior.
Synthesize Results
Combine explorer outputs into coherent understanding:
- Common patterns across areas
- Integration points
- Constraints discovered
- Gaps to note
Output Format
After exploration, summarize as:
codebase_context:
architecture_summary: string
existing_patterns: [string]
integration_points: [string]
constraints: [string]
gaps: [string]
Principles
- Parallel over sequential - Spawn multiple explorers at once
- Breadth over depth - Explore broadly first
- Structured output - Always produce YAML summaries
- Note gaps - What you couldn't find matters