claude-plugin
**Use MCP repo-map tools when:** - Searching for symbols by name pattern (faster than Grep) - Getting all symbols in a file (faster than Read + parsing)
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o claude-plugin.zip https://jpskill.com/download/17830.zip && unzip -o claude-plugin.zip && rm claude-plugin.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17830.zip -OutFile "$d\claude-plugin.zip"; Expand-Archive "$d\claude-plugin.zip" -DestinationPath $d -Force; ri "$d\claude-plugin.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
claude-plugin.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
claude-pluginフォルダができる - 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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Context Tools Plugin - 利用ガイド
動的ディレクトリサポート (v0.8.0+)
朗報: MCP ツールは現在のワーキングディレクトリに自動的に適応します!
仕組み:
cd /home/user/project-a
# MCP ツールは project-a/.claude/repo-map.db をクエリ/インデックス化します
cd /home/user/project-b
# MCP ツールは project-b/.claude/repo-map.db をクエリ/インデックス化します ✅
挙動:
- ツールは呼び出しごとに現在のワーキングディレクトリをチェックします
.claude/repo-map.dbが存在する場合: それをクエリします- 存在しない場合: 現在のディレクトリのインデックス作成をトリガーします
- ログには、どのディレクトリがクエリされているかが表示されます
利点:
- プロジェクトを変更するときにセッションを再起動する必要はありません
- 1つのセッションで複数のプロジェクトを扱うことができます
- 各プロジェクトは独自のインデックスを保持します
- ツールはどこにいても「ただ動作」します
プラグインのインストールとアップデート
重要: ユーザーが /plugin install または /plugin update を実行する場合:
MCP サーバーの構成はすぐに変更されますが、MCP サーバー自体は自動的に再起動しません。新しいプラグイン機能 (特に search_symbols のような MCP ツール) は、セッションが再起動されるまで利用できません。
必ずユーザーに伝えてください:
プラグインのインストール/アップデートが完了しました。MCP ツール (search_symbols, get_file_symbols など) を使用するには、セッションを再起動する必要があります:
1. このセッションを終了します (Ctrl+C または 'exit' と入力)
2. 次のコマンドで新しいセッションを開始します: claude continue
MCP サーバーは新しいプラグイン構成で再起動します。
この指示を出すタイミング:
- ユーザーが
/plugin install context-toolsを実行した直後 - ユーザーが
/plugin update context-toolsを実行した直後 - ユーザーが MCP ツールを使用しようとしたが利用できない場合 (そして、ユーザーがインストールしたばかりであると思われる場合)
これが重要な理由:
- MCP サーバーは Claude Code の起動時に開始されます
- プラグインのインストールは MCP サーバーの構成を変更します
- 変更は次回の Claude Code 起動時にのみ有効になります
- ツールがインストール後に動作しない場合、ユーザーは混乱します
利用可能な MCP ツール
インストール後にセッションを再起動すると、次の MCP ツールが利用可能になります。
mcprepo-mapsearch_symbols
名前パターンでシンボル (関数、クラス、メソッド) を検索します。
Grep/Search より高速 - 事前に構築された SQLite インデックスを使用します。
パラメータ:
pattern(必須):get_*,*Handler,Config*のような Glob パターンkind(オプション):"class","function", または"method"でフィルタリングlimit(オプション): 最大結果数 (デフォルト: 20)
例:
{
"pattern": "parse_*",
"kind": "function",
"limit": 10
}
mcprepo-mapget_file_symbols
特定のファイルで定義されているすべてのシンボルを取得します。
パラメータ:
file(必須): プロジェクトルートからの相対パス (例:"src/models/user.py")
mcprepo-mapget_symbol_content
正確な名前でシンボルのソースコードの内容を取得します。
Grep/Search+Read より高速 - 関数/クラスのソースコードを直接取得します。
パラメータ:
name(必須): 正確なシンボル名 (例:"MyClass","User.save")kind(オプション): 名前があいまいな場合にタイプでフィルタリング
mcprepo-mapreindex_repo_map
リポジトリシンボルの再インデックス作成をトリガーします。
パラメータ:
force(オプション): キャッシュが最新の場合でも強制的に再インデックス作成 (デフォルト: false)
mcprepo-maprepo_map_status
repo map インデックスの現在のステータスを取得します。
表示されるもの:
- インデックスステータス:
idle,indexing,completed, またはfailed - シンボル数
- 最後にインデックスが作成された時刻
- インデックスが古いかどうか
- インデックス作成エラー (存在する場合)
mcprepo-mapwait_for_index
インデックス作成が完了するまで待機します。
パラメータ:
timeout_seconds(オプション): 待機時間 (デフォルト: 60)
注: ほとんどのツールはインデックス作成が完了するまで自動的に待機するため、これはほとんど必要ありません。
データベーススキーマ (.claude/repo-map.db)
symbols テーブル:
name(TEXT): シンボル名kind(TEXT):class,function, またはmethodfile_path(TEXT): プロジェクトルートからの相対パスline_number(INTEGER): 開始行 (1 から始まるインデックス)end_line_number(INTEGER): 終了行 (nullable)parent(TEXT): 親クラス/モジュール (nullable)docstring(TEXT): ドキュメンテーション文字列の最初の行 (nullable)signature(TEXT): 関数/メソッドのシグネチャ (nullable)language(TEXT):python,cpp, またはrust
metadata テーブル (v0.7.0+):
key(TEXT PRIMARY KEY): メタデータキーvalue(TEXT): メタデータ値
キー:
status:idle|indexing|completed|failedindex_start_time: インデックス作成が開始されたときの ISO8601 タイムスタンプlast_indexed: 最後に完了したときの ISO8601 タイムスタンプsymbol_count: インデックスが作成されたシンボルの合計数 (文字列)error_message: status='failed' の場合のエラーメッセージ
インデックス作成ステータスと自動待機 (v0.7.0+)
初回使用時の挙動:
- 初回使用時には、バックグラウンドで自動的にインデックス作成が開始されます
- インデックス作成が進行中の場合、ツールは自動的に待機します (最大 60 秒)
- タイムアウトした場合、ツールは再試行を求める役立つエラーを返します
ウォッチドッグ (v0.7.0+):
- ハングしたインデックス作成プロセス (>10 分) を検出します
- 自動的にステータスを 'failed' にリセットします
reindex_repo_mapで手動で回復できます
マルチプロセスアーキテクチャ (v0.8.0+):
- インデックス作成は別のサブプロセスで実行されます
- インデックス作成がハングした場合でも、MCP サーバーは応答性を維持します
- ウォッチドッグは MCP サーバーに影響を与えることなく、ハングしたサブプロセスを強制終了できます
- リソース制限 (Unix/macOS): 4GB メモリ、20 分 CPU 時間
MCP ツールと他のツールの使い分け
次の場合に MCP repo-map ツールを使用します:
- 名前パターンでシンボルを検索する場合 (Grep より高速)
- ファイル内のすべてのシンボルを取得する場合 (Read + パースより高速)
- 特定の関数/クラスのソースコードを取得する場合 (Grep + Read より高速)
- 複数の言語 (Python、C++、Rust) を検索する必要がある場合
次の場合に他のツールを使用します:
- ファイルの内容 (シンボル名ではない) を検索する場合 - Grep を使用します
- ファイル全体を読み取る場合 - Read を使用します
- Python/C++/Rust ではないファイルを検索する必要がある場合
- コード以外のパターン (コメント、文字列など) を検索する場合
プロジェクト固有のファイル
セッション開始時に自動的に生成されます:
.claude/project-manifest.json- プロジェクト構造とビルドコマンド.claude/repo-map.md- 人間が読めるコード
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Context Tools Plugin - Usage Guide
Dynamic Directory Support (v0.8.0+)
GOOD NEWS: MCP tools automatically adapt to the current working directory!
How it works:
cd /home/user/project-a
# MCP tools query/index project-a/.claude/repo-map.db
cd /home/user/project-b
# MCP tools now query/index project-b/.claude/repo-map.db ✅
Behavior:
- Tools check current working directory on each call
- If
.claude/repo-map.dbexists: query it - If not: trigger indexing for current directory
- Logs show which directory is being queried
Benefits:
- No need to restart session when changing projects
- Can work with multiple projects in one session
- Each project maintains its own index
- Tools "just work" wherever you are
Plugin Installation and Updates
CRITICAL: When the user runs /plugin install or /plugin update:
The MCP server configuration changes immediately, but the MCP server itself does not restart automatically. The new plugin features (especially MCP tools like search_symbols) will NOT be available until the session restarts.
YOU MUST tell the user:
The plugin has been installed/updated successfully. To use the MCP tools (search_symbols, get_file_symbols, etc.), you need to restart the session:
1. Exit this session (Ctrl+C or type 'exit')
2. Start a new session with: claude continue
The MCP server will restart with the new plugin configuration.
When to give this instruction:
- Immediately after the user runs
/plugin install context-tools - Immediately after the user runs
/plugin update context-tools - When the user tries to use MCP tools but they're not available (and you suspect they just installed)
Why this matters:
- MCP servers are started when Claude Code starts
- Plugin installation modifies MCP server configuration
- Changes only take effect on next Claude Code startup
- Users will be confused if tools don't work after installation
Available MCP Tools
Once the session has been restarted after installation, the following MCP tools are available:
mcprepo-mapsearch_symbols
Search for symbols (functions, classes, methods) by name pattern.
Faster than Grep/Search - uses pre-built SQLite index.
Parameters:
pattern(required): Glob pattern likeget_*,*Handler,Config*kind(optional): Filter by"class","function", or"method"limit(optional): Max results (default: 20)
Example:
{
"pattern": "parse_*",
"kind": "function",
"limit": 10
}
mcprepo-mapget_file_symbols
Get all symbols defined in a specific file.
Parameters:
file(required): Relative path from project root (e.g.,"src/models/user.py")
mcprepo-mapget_symbol_content
Get the source code content of a symbol by exact name.
Faster than Grep/Search+Read - directly retrieves function/class source code.
Parameters:
name(required): Exact symbol name (e.g.,"MyClass","User.save")kind(optional): Filter by type if name is ambiguous
mcprepo-mapreindex_repo_map
Trigger a reindex of the repository symbols.
Parameters:
force(optional): Force reindex even if cache is fresh (default: false)
mcprepo-maprepo_map_status
Get the current status of the repo map index.
Shows:
- Index status:
idle,indexing,completed, orfailed - Symbol count
- Last indexed time
- Whether index is stale
- Indexing errors (if any)
mcprepo-mapwait_for_index
Wait for indexing to complete.
Parameters:
timeout_seconds(optional): How long to wait (default: 60)
Note: Most tools automatically wait for indexing to complete, so this is rarely needed.
Database Schema (.claude/repo-map.db)
symbols table:
name(TEXT): Symbol namekind(TEXT):class,function, ormethodfile_path(TEXT): Relative path from project rootline_number(INTEGER): Start line (1-indexed)end_line_number(INTEGER): End line (nullable)parent(TEXT): Parent class/module (nullable)docstring(TEXT): First line of docstring (nullable)signature(TEXT): Function/method signature (nullable)language(TEXT):python,cpp, orrust
metadata table (v0.7.0+):
key(TEXT PRIMARY KEY): Metadata keyvalue(TEXT): Metadata value
Keys:
status:idle|indexing|completed|failedindex_start_time: ISO8601 timestamp when indexing startedlast_indexed: ISO8601 timestamp when last completedsymbol_count: Total symbols indexed (string)error_message: Error message if status='failed'
Indexing Status and Auto-Wait (v0.7.0+)
First Use Behavior:
- On first use, indexing starts automatically in background
- Tools automatically wait (up to 60s) if indexing is in progress
- If timeout, tools return helpful error asking user to retry
Watchdog (v0.7.0+):
- Detects hung indexing processes (>10 minutes)
- Automatically resets status to 'failed'
- Can be manually recovered with
reindex_repo_map
Multiprocess Architecture (v0.8.0+):
- Indexing runs in separate subprocess
- MCP server remains responsive even if indexing hangs
- Watchdog can kill hung subprocess without affecting MCP server
- Resource limits (Unix/macOS): 4GB memory, 20 min CPU time
When to Use MCP Tools vs Other Tools
Use MCP repo-map tools when:
- Searching for symbols by name pattern (faster than Grep)
- Getting all symbols in a file (faster than Read + parsing)
- Getting source code of a specific function/class (faster than Grep + Read)
- Need to search across multiple languages (Python, C++, Rust)
Use other tools when:
- Searching file contents (not symbol names) - use Grep
- Reading entire files - use Read
- Need to search files that aren't Python/C++/Rust
- Searching for non-code patterns (comments, strings, etc.)
Project-Specific Files
Automatically generated at session start:
.claude/project-manifest.json- Project structure and build commands.claude/repo-map.md- Human-readable code structure with duplicate detection.claude/repo-map.db- SQLite database for fast symbol queries (MCP server)
Optional (created manually):
.claude/learnings.md- Project-specific learnings and discoveries
Logs:
.claude/logs/repo-map-server.log- MCP server rotating log (1MB per file, 3 backups)- Tool calls and results
- Indexing events and performance
- Watchdog actions and resource limit violations
- Server startup/shutdown
- Session start hook outputs are also logged for debugging