codebase-mapping
Repository structure and dependency analysis for understanding a codebase's architecture. Use when needing to (1) generate a file tree or structure map, (2) analyze import/dependency graphs, (3) identify entry points and module boundaries, (4) understand the overall layout of an unfamiliar codebase, or (5) prepare for deeper architectural analysis.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o codebase-mapping.zip https://jpskill.com/download/18851.zip && unzip -o codebase-mapping.zip && rm codebase-mapping.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/18851.zip -OutFile "$d\codebase-mapping.zip"; Expand-Archive "$d\codebase-mapping.zip" -DestinationPath $d -Force; ri "$d\codebase-mapping.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
codebase-mapping.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
codebase-mappingフォルダができる - 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
- 同梱ファイル
- 2
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] codebase-mapping
コードベースマッピング
リポジトリの構造と依存関係をマッピングし、的を絞ったアーキテクチャ分析を可能にします。
クイックスタート
構造マップを生成します。
python scripts/map_codebase.py /path/to/repo --output structure.json
プロセス
- ターゲットリポジトリをクローンまたはアクセスします。
- ノイズ(node_modules、pycache、.gitなど)を除外してファイルツリーを生成します。
- インポートを解析して依存関係グラフを構築します。
- エントリーポイント(main.py、index.ts、setup.py、pyproject.toml)を特定します。
- 境界(パッケージ構造と公開API)を検出します。
出力成果物
このスキルは以下を生成します。
file_tree.txt- 注釈付きディレクトリ構造dependencies.json- 隣接リスト形式のインポートグラフentry_points.md- 説明付きで特定されたエントリーポイントmodule_map.md- パッケージ境界と公開インターフェース
特定すべき主要なパターン
エントリーポイントの検出
以下のパターンを探します。
- Python:
if __name__ == "__main__",setup.py,pyproject.toml - Node:
package.jsonの main/bin フィールド、index.js - フレームワーク:
app.py(Flask)、manage.py(Django)、main.ts(Nest)
依存関係の分類
インポートを以下のように分類します。
- 外部: サードパーティパッケージ(パッケージマネージャーから)
- 内部: プロジェクトモジュール(相対インポート)
- 標準: 言語の標準ライブラリ
ノイズの除外
常に以下を除外します。
node_modules/
__pycache__/
.git/
.venv/
venv/
dist/
build/
*.egg-info/
.mypy_cache/
.pytest_cache/
他のスキルとの統合
このスキルは以下の基盤を提供します。
data-substrate-analysis→ types.py、models.py に焦点を当てますexecution-engine-analysis→ runner ファイルに焦点を当てますcontrol-loop-extraction→ agent.py、loop ファイルに焦点を当てますcomponent-model-analysis→ 基底クラスに焦点を当てます
出力例
## Repository: langchain
### Structure Summary
- 342 Python modules across 28 packages
- Primary entry: langchain/__init__.py
- Core packages: agents, chains, llms, tools
### Key Files for Analysis
- Types: langchain/schema.py, langchain/types.py
- Execution: langchain/agents/executor.py
- Tools: langchain/tools/base.py 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Codebase Mapping
Maps repository structure and dependencies to enable targeted architectural analysis.
Quick Start
Generate a structural map:
python scripts/map_codebase.py /path/to/repo --output structure.json
Process
- Clone or access the target repository
- Generate file tree excluding noise (node_modules, pycache, .git, etc.)
- Parse imports to build dependency graph
- Identify entry points (main.py, index.ts, setup.py, pyproject.toml)
- Detect boundaries - package structure and public APIs
Output Artifacts
The skill produces:
file_tree.txt- Annotated directory structuredependencies.json- Import graph in adjacency list formatentry_points.md- Identified entry points with descriptionsmodule_map.md- Package boundaries and public interfaces
Key Patterns to Identify
Entry Point Detection
Look for these patterns:
- Python:
if __name__ == "__main__",setup.py,pyproject.toml - Node:
package.jsonmain/bin fields,index.js - Frameworks:
app.py(Flask),manage.py(Django),main.ts(Nest)
Dependency Classification
Classify imports as:
- External: Third-party packages (from package manager)
- Internal: Project modules (relative imports)
- Standard: Language standard library
Noise Exclusion
Always exclude:
node_modules/
__pycache__/
.git/
.venv/
venv/
dist/
build/
*.egg-info/
.mypy_cache/
.pytest_cache/
Integration with Other Skills
This skill provides the foundation for:
data-substrate-analysis→ Focus on types.py, models.pyexecution-engine-analysis→ Focus on runner filescontrol-loop-extraction→ Focus on agent.py, loop filescomponent-model-analysis→ Focus on base classes
Example Output
## Repository: langchain
### Structure Summary
- 342 Python modules across 28 packages
- Primary entry: langchain/__init__.py
- Core packages: agents, chains, llms, tools
### Key Files for Analysis
- Types: langchain/schema.py, langchain/types.py
- Execution: langchain/agents/executor.py
- Tools: langchain/tools/base.py 同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,527 bytes)
- 📎 scripts/map_codebase.py (11,202 bytes)