Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Meta-skill for exploring an internal codebase at varying depths. READ-ONLY workflow - no code changes.
Usage
/explore <depth> [options]
Question Flow (No Arguments)
If the user types just /explore with no or partial arguments, guide them through this question flow. Use AskUserQuestion for each phase.
Phase 0: Workflow Selection
question:"How would you like to explore?"header:"Explore"options:-label:"Help me choose (Recommended)"description:"I'll ask questions to pick the right exploration depth"-label:"Quick - fast overview"
description:
"Chain: tldr tree → tldr structure (~1 min)"
-
label:
"Deep - comprehensive analysis"
description:
"Chain: onboard → tldr → research → document (~5 min)"
"Help me choose" → Continue to Phase 1-4 questions
"Quick" → Set depth=quick, skip to Phase 2 (scope)
"Deep" → Set depth=deep, skip to Phase 2 (scope)
"Architecture" → Set depth=architecture, skip to Phase 2 (scope)
If Answer is Unclear (via "Other"):
question:"I want to understand how deep you want to explore. Did you mean..."header:"Clarify"options:-label:"Help me choose"description:"Not sure - guide me through questions"-label:"Quick - fast overview"description:"Just want to see what's here"-label:"Deep - comprehensive analysis"description:"Need thorough understanding"-label:"Neither - let me explain differently"description:"I'll describe what I need"
Phase 1: Exploration Goal
question:"What are you trying to understand?"header:"Goal"options:-label:"Get oriented in the codebase"description:"Quick overview of structure"-label:"Understand how something works"description:"Deep dive into specific area"-label:"Map the architecture"description:"Layers, dependencies, patterns"-label:"Find where something is"description:"Locate specific code/functionality"
Mapping:
"Get oriented" → quick depth
"Understand how" → deep depth
"Map architecture" → architecture depth
"Find where" → quick with --focus
Phase 2: Scope
question:"What area should I focus on?"header:"Focus"options:-label:"Entire codebase"description:"Explore everything"-label:"Specific directory or module"description:"I'll specify the path"-label:"Specific concept/feature"description:"e.g., 'authentication', 'API routes'"
If "Specific directory" or "Specific concept" → ask follow-up for the path/keyword.
Phase 3: Output Format
question:"What should I produce?"header:"Output"options:-label:"Just tell me what you find"description:"Interactive summary in chat"-label:"Create a documentation file"description:"Write to thoughts/shared/docs/"-label:"Create handoff for implementation"description:"Prepare context for coding agent"
Mapping:
"Documentation file" → --output doc
"Handoff for implementation" → --output handoff
Phase 4: Entry Point (Architecture only)
If architecture depth selected:
question:"Where should I start the analysis?"header:"Entry point"options:-label:"Auto-detect (main, cli, app)"description:"Find common entry points"-label:"Specific function/file"description:"I'll specify the entry point"
Summary Before Execution
Based on your answers, I'll run:
**Depth:** deep
**Focus:** "authentication"
**Output:** handoff
**Path:** src/
Proceed? [Yes / Adjust settings]
# Just tldr commands, no agents
tldr tree ${src_dir} --ext .py
tldr structure ${src_dir} --lang python
if [ -n "$focus" ]; then
tldr search "$focus"${src_dir}fi
Deep:
# 1. Check/run onboardif [ ! -f .claude/cache/tldr/meta.json ]; then# Spawn onboard agent via Task toolfi# 2. Structure
tldr structure src/ --lang python
# 3. Research (spawn scout agent)# Task tool with subagent_type: "scout"# Prompt: "Research patterns in ${focus:-codebase}"# 4. Write output# → doc or handoff based on --output