A Claude Code skill for systematically investigating an existing codebase to extract architectural patterns and implementation details β with findings persisted for long-term reuse.
Built for the workflow of: "I want to build X β let me study how Y does it."
- Guides Claude through a structured investigation loop: find relevant code β read source β answer concisely β document findings
- Grounds every answer in actual source code with
file:linereferences (no hallucination) - Persists findings as cross-linked notes for future sessions
- Includes a suggested investigation sequence for AI agent codebases
Findings can be saved to three destinations:
| Mode | Requires | Best for |
|---|---|---|
obsidian (default) |
Obsidian MCP | Personal knowledge bases |
notion |
Notion MCP | Team wikis |
files |
Nothing | Any setup, works everywhere |
Switch modes at any time during a session: "use Notion", "save to files".
npx skills add https://github.com/marcjaner/codebase-explorer --skill codebase-explorerStart an investigation by telling Claude:
Explore this codebase: /path/to/repo
Goal: I'm building an AI agent and want to understand how this project handles memory and tool execution.
Or more casually:
Investigate this repo for me β I want to understand how they handle the agentic loop.
Claude will ask for your output destination, create an investigation index, and begin the topic-by-topic loop.
- Agentic loop β how the agent processes a message, calls tools, retries
- Tool system β how tools are defined, registered, and executed
- Streaming / feedback β how intermediate results reach the user
- Short-term memory β session context, compaction, context window management
- Long-term memory β RAG, vector search, embedding providers
- Sub-agents / parallelism β spawning, communication, lifecycle
- Error handling β retry logic, fallbacks, recovery strategies
- Configuration β how the system is configured and extended
codebase-explorer/
βββ SKILL.md # Core workflow + output mode selector
βββ references/
β βββ output-obsidian.md # Obsidian MCP operations
β βββ output-notion.md # Notion MCP operations
β βββ output-files.md # Plain filesystem operations
βββ assets/templates/
βββ index.md # Investigation index template
βββ topic-note.md # Per-topic deep-dive template
The skill uses progressive disclosure: SKILL.md stays lean, and only the relevant output mode reference is loaded per session.
MIT