explore

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Codebase Exploration

代码库探索

Multi-angle codebase exploration using 3-5 parallel agents.
借助3-5个并行Agent实现多角度代码库探索。

Quick Start

快速开始

bash
/explore authentication
Opus 4.6: Exploration agents use native adaptive thinking for deeper pattern recognition across large codebases.

bash
/explore authentication
Opus 4.6:探索型Agent采用原生自适应思维,可在大型代码库中实现更深度的模式识别。

STEP 0: Verify User Intent with AskUserQuestion

步骤0:通过AskUserQuestion确认用户意图

BEFORE creating tasks, clarify what the user wants to explore:
python
AskUserQuestion(
  questions=[{
    "question": "What aspect do you want to explore?",
    "header": "Focus",
    "options": [
      {"label": "Full exploration (Recommended)", "description": "Code structure + data flow + architecture + health assessment"},
      {"label": "Code structure only", "description": "Find files, classes, functions related to topic"},
      {"label": "Data flow", "description": "Trace how data moves through the system"},
      {"label": "Architecture patterns", "description": "Identify design patterns and integrations"},
      {"label": "Quick search", "description": "Just find relevant files, skip deep analysis"}
    ],
    "multiSelect": false
  }]
)
Based on answer, adjust workflow:
  • Full exploration: All 8 phases, all parallel agents
  • Code structure only: Skip phases 4-6 (health, dependencies, product)
  • Data flow: Focus phase 3 agents on data tracing
  • Architecture patterns: Focus on backend-system-architect agent
  • Quick search: Skip to phase 1-2 only, return file list

在创建任务之前,请先明确用户想要探索的内容:
python
AskUserQuestion(
  questions=[{
    "question": "你想要探索哪个方面?",
    "header": "探索重点",
    "options": [
      {"label": "全面探索(推荐)", "description": "代码结构 + 数据流 + 架构 + 健康评估"},
      {"label": "仅代码结构", "description": "查找与主题相关的文件、类、函数"},
      {"label": "数据流", "description": "追踪数据在系统中的流转路径"},
      {"label": "架构模式", "description": "识别设计模式与集成关系"},
      {"label": "快速搜索", "description": "仅查找相关文件,跳过深度分析"}
    ],
    "multiSelect": false
  }]
)
根据回答调整工作流:
  • 全面探索:执行全部8个阶段,启用所有并行Agent
  • 仅代码结构:跳过第4-6阶段(健康评估、依赖分析、产品视角)
  • 数据流:重点让第3阶段的Agent专注于数据追踪
  • 架构模式:重点使用backend-system-architect Agent
  • 快速搜索:仅执行第1-2阶段,返回文件列表

STEP 0b: Select Orchestration Mode

步骤0b:选择编排模式

Choose Agent Teams (mesh — explorers share discoveries) or Task tool (star — all report to lead):
  1. CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
    Agent Teams mode
  2. Agent Teams unavailable → Task tool mode (default)
  3. Otherwise: Full exploration with 4+ agents → recommend Agent Teams; Quick search or single-focus → Task tool
AspectTask ToolAgent Teams
Discovery sharingLead synthesizes after all completeExplorers share discoveries as they go
Cross-referencingLead connects dotsData flow explorer alerts architecture explorer
Cost~150K tokens~400K tokens
Best forQuick/focused searchesDeep full-codebase exploration
Fallback: If Agent Teams encounters issues, fall back to Task tool for remaining exploration.

选择Agent Teams(网状结构 — 探索者实时共享发现)或Task tool(星型结构 — 所有结果汇报给主导者):
  1. CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
    Agent Teams模式
  2. 若Agent Teams不可用 → 默认使用Task tool模式
  3. 其他情况:全面探索且使用4个以上Agent → 推荐Agent Teams;快速搜索或单一重点探索 → Task tool
维度Task ToolAgent Teams
发现内容共享主导者在所有任务完成后汇总探索者在工作过程中实时共享发现
交叉引用主导者关联各部分信息数据流探索者可提醒架构探索者相关发现
成本~150K tokens~400K tokens
最佳适用场景快速/聚焦搜索深度全代码库探索
降级方案:若Agent Teams出现问题,剩余探索任务切换为Task tool模式。

⚠️ CRITICAL: Task Management is MANDATORY (CC 2.1.16)

⚠️ 重要:任务管理为必填项(CC 2.1.16)

BEFORE doing ANYTHING else, create tasks to show progress:
python
undefined
在执行任何操作之前,先创建任务以展示进度:
python
undefined

1. Create main exploration task IMMEDIATELY

1. 立即创建主探索任务

TaskCreate( subject="Explore: {topic}", description="Deep codebase exploration for {topic}", activeForm="Exploring {topic}" )
TaskCreate( subject="Explore: {topic}", description="Deep codebase exploration for {topic}", activeForm="Exploring {topic}" )

2. Create subtasks for phases (8-phase process)

2. 为各阶段创建子任务(8阶段流程)

TaskCreate(subject="Initial file search", activeForm="Searching files") TaskCreate(subject="Check knowledge graph", activeForm="Checking memory") TaskCreate(subject="Launch exploration agents", activeForm="Dispatching explorers") TaskCreate(subject="Assess code health (0-10)", activeForm="Assessing code health") TaskCreate(subject="Map dependency hotspots", activeForm="Mapping dependencies") TaskCreate(subject="Add product perspective", activeForm="Adding product context") TaskCreate(subject="Generate exploration report", activeForm="Generating report")
TaskCreate(subject="Initial file search", activeForm="Searching files") TaskCreate(subject="Check knowledge graph", activeForm="Checking memory") TaskCreate(subject="Launch exploration agents", activeForm="Dispatching explorers") TaskCreate(subject="Assess code health (0-10)", activeForm="Assessing code health") TaskCreate(subject="Map dependency hotspots", activeForm="Mapping dependencies") TaskCreate(subject="Add product perspective", activeForm="Adding product context") TaskCreate(subject="Generate exploration report", activeForm="Generating report")

3. Update status as you progress

3. 随进度更新状态

TaskUpdate(taskId="2", status="in_progress") # When starting TaskUpdate(taskId="2", status="completed") # When done

---
TaskUpdate(taskId="2", status="in_progress") # 开始时 TaskUpdate(taskId="2", status="completed") # 完成时

---

Workflow Overview

工作流概览

PhaseActivitiesOutput
1. Initial SearchGrep, Glob for matchesFile locations
2. Memory CheckSearch knowledge graphPrior context
3. Deep Exploration4 parallel explorersMulti-angle analysis
4. Code Health AssessmentRate found code 0-10Quality scores
5. Dependency Hotspot MapIdentify couplingHotspot visualization
6. Product PerspectiveBusiness contextFindability suggestions
7. Report GenerationCompile findingsActionable report

阶段活动内容输出结果
1. 初始搜索使用Grep、Glob查找匹配内容文件位置
2. 内存检查搜索知识图谱已有上下文信息
3. 深度探索4个并行探索Agent多角度分析结果
4. 代码健康评估对找到的代码进行0-10分评分质量得分
5. 依赖热点映射识别高耦合代码热点可视化图
6. 产品视角补充业务上下文分析可发现性优化建议
7. 生成探索报告汇总所有发现可执行的报告

Phase 1: Initial Search

阶段1:初始搜索

python
undefined
python
undefined

PARALLEL - Quick searches

并行执行 - 快速搜索

Grep(pattern="$ARGUMENTS", output_mode="files_with_matches") Glob(pattern="**/$ARGUMENTS")
undefined
Grep(pattern="$ARGUMENTS", output_mode="files_with_matches") Glob(pattern="**/$ARGUMENTS")
undefined

Phase 2: Memory Check

阶段2:内存检查

python
mcp__memory__search_nodes(query="$ARGUMENTS")
mcp__memory__search_nodes(query="architecture")
python
mcp__memory__search_nodes(query="$ARGUMENTS")
mcp__memory__search_nodes(query="architecture")

Phase 3: Parallel Deep Exploration (4 Agents)

阶段3:并行深度探索(4个Agent)

Launch 4 specialized explorers in ONE message with
run_in_background: true
:
python
undefined
在一条消息中启动4个专业探索Agent,设置
run_in_background: true
python
undefined

PARALLEL - All 4 in ONE message

并行执行 - 4个Agent在同一条消息中

Task( subagent_type="Explore", prompt="""Code Structure: Find all files, classes, functions related to: $ARGUMENTS
Scope: ONLY read files directly relevant to the topic. Do NOT explore the entire codebase.
SUMMARY: End with: "RESULT: [N] files, [M] classes - [key location, e.g., 'src/auth/']" """, run_in_background=True, max_turns=25 ) Task( subagent_type="Explore", prompt="""Data Flow: Trace entry points, processing, storage for: $ARGUMENTS
Scope: ONLY read files directly relevant to the topic. Do NOT explore the entire codebase.
SUMMARY: End with: "RESULT: [entry] → [processing] → [storage] - [N] hop flow" """, run_in_background=True, max_turns=25 ) Task( subagent_type="backend-system-architect", prompt="""Backend Patterns: Analyze architecture patterns, integrations, dependencies for: $ARGUMENTS
Scope: ONLY read files directly relevant to the topic. Do NOT explore the entire codebase.
SUMMARY: End with: "RESULT: [pattern name] - [N] integrations, [M] dependencies" """, run_in_background=True, max_turns=25 ) Task( subagent_type="frontend-ui-developer", prompt="""Frontend Analysis: Find components, state management, routes for: $ARGUMENTS
Scope: ONLY read files directly relevant to the topic. Do NOT explore the entire codebase.
SUMMARY: End with: "RESULT: [N] components, [state lib] - [key route]" """, run_in_background=True, max_turns=25 )

**Explorer Roles:**
1. **Code Structure Explorer** - Files, classes, functions
2. **Data Flow Explorer** - Entry points, processing, storage
3. **Backend Architect** - Patterns, integration, dependencies
4. **Frontend Developer** - Components, state, routes
Task( subagent_type="Explore", prompt="""Code Structure: Find all files, classes, functions related to: $ARGUMENTS
Scope: ONLY read files directly relevant to the topic. Do NOT explore the entire codebase.
SUMMARY: End with: "RESULT: [N] files, [M] classes - [key location, e.g., 'src/auth/']" """, run_in_background=True, max_turns=25 ) Task( subagent_type="Explore", prompt="""Data Flow: Trace entry points, processing, storage for: $ARGUMENTS
Scope: ONLY read files directly relevant to the topic. Do NOT explore the entire codebase.
SUMMARY: End with: "RESULT: [entry] → [processing] → [storage] - [N] hop flow" """, run_in_background=True, max_turns=25 ) Task( subagent_type="backend-system-architect", prompt="""Backend Patterns: Analyze architecture patterns, integrations, dependencies for: $ARGUMENTS
Scope: ONLY read files directly relevant to the topic. Do NOT explore the entire codebase.
SUMMARY: End with: "RESULT: [pattern name] - [N] integrations, [M] dependencies" """, run_in_background=True, max_turns=25 ) Task( subagent_type="frontend-ui-developer", prompt="""Frontend Analysis: Find components, state management, routes for: $ARGUMENTS
Scope: ONLY read files directly relevant to the topic. Do NOT explore the entire codebase.
SUMMARY: End with: "RESULT: [N] components, [state lib] - [key route]" """, run_in_background=True, max_turns=25 )

**探索者角色:**
1. **代码结构探索者** - 负责文件、类、函数
2. **数据流探索者** - 负责入口点、处理流程、存储
3. **后端架构师** - 负责模式、集成、依赖
4. **前端开发者** - 负责组件、状态、路由

Phase 3 — Agent Teams Alternative

阶段3 — Agent Teams替代方案

In Agent Teams mode, form an exploration team where explorers share discoveries in real-time:
python
TeamCreate(team_name="explore-{topic}", description="Explore {topic}")

Task(subagent_type="Explore", name="structure-explorer",
     team_name="explore-{topic}",
     prompt="""Find all files, classes, and functions related to: {topic}
     When you discover key entry points, message data-flow-explorer so they
     can trace data paths from those points.
     When you find backend patterns, message backend-explorer.
     When you find frontend components, message frontend-explorer.""")

Task(subagent_type="Explore", name="data-flow-explorer",
     team_name="explore-{topic}",
     prompt="""Trace entry points, processing, and storage for: {topic}
     When structure-explorer shares entry points, start tracing from those.
     When you discover cross-boundary data flows (frontend→backend or vice versa),
     message both backend-explorer and frontend-explorer.""")

Task(subagent_type="backend-system-architect", name="backend-explorer",
     team_name="explore-{topic}",
     prompt="""Analyze backend architecture patterns for: {topic}
     When structure-explorer or data-flow-explorer share backend findings,
     investigate deeper — API design, database schema, service patterns.
     Share integration points with frontend-explorer for consistency.""")

Task(subagent_type="frontend-ui-developer", name="frontend-explorer",
     team_name="explore-{topic}",
     prompt="""Analyze frontend components, state, and routes for: {topic}
     When structure-explorer shares component locations, investigate deeper.
     When backend-explorer shares API patterns, verify frontend alignment.
     Share component hierarchy with data-flow-explorer.""")
Team teardown after report generation:
python
SendMessage(type="shutdown_request", recipient="structure-explorer", content="Exploration complete")
SendMessage(type="shutdown_request", recipient="data-flow-explorer", content="Exploration complete")
SendMessage(type="shutdown_request", recipient="backend-explorer", content="Exploration complete")
SendMessage(type="shutdown_request", recipient="frontend-explorer", content="Exploration complete")
TeamDelete()
Fallback: If team formation fails, use standard Phase 3 Task spawns above.

在Agent Teams模式下,组建探索团队,探索者可实时共享发现:
python
TeamCreate(team_name="explore-{topic}", description="Explore {topic}")

Task(subagent_type="Explore", name="structure-explorer",
     team_name="explore-{topic}",
     prompt="""Find all files, classes, and functions related to: {topic}
     When you discover key entry points, message data-flow-explorer so they
     can trace data paths from those points.
     When you find backend patterns, message backend-explorer.
     When you find frontend components, message frontend-explorer.""")

Task(subagent_type="Explore", name="data-flow-explorer",
     team_name="explore-{topic}",
     prompt="""Trace entry points, processing, and storage for: {topic}
     When structure-explorer shares entry points, start tracing from those.
     When you discover cross-boundary data flows (frontend→backend or vice versa),
     message both backend-explorer and frontend-explorer.""")

Task(subagent_type="backend-system-architect", name="backend-explorer",
     team_name="explore-{topic}",
     prompt="""Analyze backend architecture patterns for: {topic}
     When structure-explorer or data-flow-explorer share backend findings,
     investigate deeper — API design, database schema, service patterns.
     Share integration points with frontend-explorer for consistency.""")

Task(subagent_type="frontend-ui-developer", name="frontend-explorer",
     team_name="explore-{topic}",
     prompt="""Analyze frontend components, state, and routes for: {topic}
     When structure-explorer shares component locations, investigate deeper.
     When backend-explorer shares API patterns, verify frontend alignment.
     Share component hierarchy with data-flow-explorer.""")
报告生成后解散团队:
python
SendMessage(type="shutdown_request", recipient="structure-explorer", content="Exploration complete")
SendMessage(type="shutdown_request", recipient="data-flow-explorer", content="Exploration complete")
SendMessage(type="shutdown_request", recipient="backend-explorer", content="Exploration complete")
SendMessage(type="shutdown_request", recipient="frontend-explorer", content="Exploration complete")
TeamDelete()
降级方案:若团队创建失败,使用上述标准的阶段3 Task启动方式。

Phase 4: AI System Exploration (If Applicable)

阶段4:AI系统探索(如适用)

For AI/ML topics, add exploration of:
  • LangGraph workflows
  • Prompt templates
  • RAG pipeline
  • Caching strategies
针对AI/ML相关主题,需额外探索:
  • LangGraph工作流
  • 提示词模板
  • RAG流水线
  • 缓存策略

Phase 5: Code Health Assessment (NEW)

阶段5:代码健康评估(新增)

Goal: Rate found code quality 0-10 with specific dimensions.
python
Task(
  subagent_type="code-quality-reviewer",
  prompt="""CODE HEALTH ASSESSMENT for files related to: $ARGUMENTS

  Rate each dimension 0-10:

  1. READABILITY (0-10)
     - Clear naming conventions?
     - Appropriate comments?
     - Logical organization?

  2. MAINTAINABILITY (0-10)
     - Single responsibility?
     - Low coupling?
     - Easy to modify?

  3. TESTABILITY (0-10)
     - Pure functions where possible?
     - Dependency injection?
     - Existing test coverage?

  4. COMPLEXITY (0-10, inverted: 10=simple, 0=complex)
     - Cyclomatic complexity?
     - Nesting depth?
     - Function length?

  5. DOCUMENTATION (0-10)
     - API docs present?
     - Usage examples?
     - Architecture notes?

  Output:
  {
    "overall_score": N.N,
    "dimensions": {
      "readability": N,
      "maintainability": N,
      "testability": N,
      "complexity": N,
      "documentation": N
    },
    "hotspots": ["file:line - issue"],
    "recommendations": ["improvement suggestion"]
  }

  SUMMARY: End with: "HEALTH: [N.N]/10 - [best dimension] strong, [worst dimension] needs work"
  """,
  run_in_background=True,
  max_turns=25
)
目标:从多个维度对找到的代码进行0-10分评分。
python
Task(
  subagent_type="code-quality-reviewer",
  prompt="""CODE HEALTH ASSESSMENT for files related to: $ARGUMENTS

  Rate each dimension 0-10:

  1. READABILITY (0-10)
     - Clear naming conventions?
     - Appropriate comments?
     - Logical organization?

  2. MAINTAINABILITY (0-10)
     - Single responsibility?
     - Low coupling?
     - Easy to modify?

  3. TESTABILITY (0-10)
     - Pure functions where possible?
     - Dependency injection?
     - Existing test coverage?

  4. COMPLEXITY (0-10, inverted: 10=simple, 0=complex)
     - Cyclomatic complexity?
     - Nesting depth?
     - Function length?

  5. DOCUMENTATION (0-10)
     - API docs present?
     - Usage examples?
     - Architecture notes?

  Output:
  {
    "overall_score": N.N,
    "dimensions": {
      "readability": N,
      "maintainability": N,
      "testability": N,
      "complexity": N,
      "documentation": N
    },
    "hotspots": ["file:line - issue"],
    "recommendations": ["improvement suggestion"]
  }

  SUMMARY: End with: "HEALTH: [N.N]/10 - [best dimension] strong, [worst dimension] needs work"
  """,
  run_in_background=True,
  max_turns=25
)

Phase 6: Dependency Hotspot Map (NEW)

阶段6:依赖热点映射(新增)

Goal: Identify highly-coupled code and dependency bottlenecks.
python
undefined
目标:识别高耦合代码与依赖瓶颈。
python
undefined

Analyze imports and dependencies

分析导入与依赖关系

Task( subagent_type="backend-system-architect", prompt="""DEPENDENCY HOTSPOT ANALYSIS for: $ARGUMENTS
Analyze coupling and dependencies:
  1. IMPORT ANALYSIS
    • Which files import this code?
    • What does this code import?
    • Circular dependencies?
  2. COUPLING SCORE (0-10, 10=highly coupled)
    • How many files would break if this changes?
    • Fan-in (incoming dependencies)
    • Fan-out (outgoing dependencies)
  3. CHANGE IMPACT
    • Blast radius of modifications
    • Files that always change together
  4. HOTSPOT VISUALIZATION
    [Module A] --depends--> [Target] <--depends-- [Module B]
                               |
                               v
                          [Module C]
Output: { "coupling_score": N, "fan_in": N, "fan_out": N, "circular_deps": [], "change_impact": ["file - reason"], "hotspot_diagram": "ASCII diagram" }
SUMMARY: End with: "COUPLING: [N]/10 - [N] incoming, [M] outgoing deps - [key concern]" """, run_in_background=True, max_turns=25 )
undefined
Task( subagent_type="backend-system-architect", prompt="""DEPENDENCY HOTSPOT ANALYSIS for: $ARGUMENTS
Analyze coupling and dependencies:
  1. IMPORT ANALYSIS
    • Which files import this code?
    • What does this code import?
    • Circular dependencies?
  2. COUPLING SCORE (0-10, 10=highly coupled)
    • How many files would break if this changes?
    • Fan-in (incoming dependencies)
    • Fan-out (outgoing dependencies)
  3. CHANGE IMPACT
    • Blast radius of modifications
    • Files that always change together
  4. HOTSPOT VISUALIZATION
    [Module A] --depends--> [Target] <--depends-- [Module B]
                               |
                               v
                          [Module C]
Output: { "coupling_score": N, "fan_in": N, "fan_out": N, "circular_deps": [], "change_impact": ["file - reason"], "hotspot_diagram": "ASCII diagram" }
SUMMARY: End with: "COUPLING: [N]/10 - [N] incoming, [M] outgoing deps - [key concern]" """, run_in_background=True, max_turns=25 )
undefined

Phase 7: Product Perspective Agent (NEW)

阶段7:产品视角Agent(新增)

Goal: Add business context and findability suggestions.
python
Task(
  subagent_type="product-strategist",
  prompt="""PRODUCT PERSPECTIVE for: $ARGUMENTS

  Analyze from a product/business viewpoint:

  1. BUSINESS CONTEXT
     - What user problem does this code solve?
     - What feature/capability does it enable?
     - Who are the users of this code?

  2. FINDABILITY SUGGESTIONS
     - Better naming for discoverability?
     - Missing documentation entry points?
     - Where should someone look first?

  3. KNOWLEDGE GAPS
     - What context is missing for new developers?
     - What tribal knowledge exists?
     - What should be documented?

  4. SEARCH OPTIMIZATION
     - Keywords someone might use to find this
     - Alternative terms for the same concept
     - Related concepts to cross-reference

  Output:
  {
    "business_purpose": "description",
    "primary_users": ["user type"],
    "findability_issues": ["issue - suggestion"],
    "recommended_entry_points": ["file - why start here"],
    "search_keywords": ["keyword"],
    "documentation_gaps": ["gap"]
  }

  SUMMARY: End with: "FINDABILITY: [N] issues - start at [recommended entry point]"
  """,
  run_in_background=True,
  max_turns=25
)
目标:补充业务上下文与可发现性优化建议。
python
Task(
  subagent_type="product-strategist",
  prompt="""PRODUCT PERSPECTIVE for: $ARGUMENTS

  Analyze from a product/business viewpoint:

  1. BUSINESS CONTEXT
     - What user problem does this code solve?
     - What feature/capability does it enable?
     - Who are the users of this code?

  2. FINDABILITY SUGGESTIONS
     - Better naming for discoverability?
     - Missing documentation entry points?
     - Where should someone look first?

  3. KNOWLEDGE GAPS
     - What context is missing for new developers?
     - What tribal knowledge exists?
     - What should be documented?

  4. SEARCH OPTIMIZATION
     - Keywords someone might use to find this
     - Alternative terms for the same concept
     - Related concepts to cross-reference

  Output:
  {
    "business_purpose": "description",
    "primary_users": ["user type"],
    "findability_issues": ["issue - suggestion"],
    "recommended_entry_points": ["file - why start here"],
    "search_keywords": ["keyword"],
    "documentation_gaps": ["gap"]
  }

  SUMMARY: End with: "FINDABILITY: [N] issues - start at [recommended entry point]"
  """,
  run_in_background=True,
  max_turns=25
)

Phase 8: Generate Report

阶段8:生成报告

markdown
undefined
markdown
undefined

Exploration Report: $ARGUMENTS

Exploration Report: $ARGUMENTS

Quick Answer

Quick Answer

[1-2 sentence summary]
[1-2 sentence summary]

File Locations

File Locations

FilePurposeHealth Score
path/to/file.py
[description][N.N/10]
FilePurposeHealth Score
path/to/file.py
[description][N.N/10]

Code Health Summary

Code Health Summary

DimensionScoreNotes
Readability[N/10][note]
Maintainability[N/10][note]
Testability[N/10][note]
Complexity[N/10][note]
Documentation[N/10][note]
Overall[N.N/10]
DimensionScoreNotes
Readability[N/10][note]
Maintainability[N/10][note]
Testability[N/10][note]
Complexity[N/10][note]
Documentation[N/10][note]
Overall[N.N/10]

Architecture Overview

Architecture Overview

[ASCII diagram]
[ASCII diagram]

Dependency Hotspot Map

Dependency Hotspot Map

[Incoming deps] → [TARGET] → [Outgoing deps]
  • Coupling Score: [N/10]
  • Fan-in: [N] files depend on this
  • Fan-out: [M] dependencies
  • Circular Dependencies: [list or "None"]
[Incoming deps] → [TARGET] → [Outgoing deps]
  • Coupling Score: [N/10]
  • Fan-in: [N] files depend on this
  • Fan-out: [M] dependencies
  • Circular Dependencies: [list or "None"]

Data Flow

Data Flow

  1. [Entry] → 2. [Processing] → 3. [Storage]
  1. [Entry] → 2. [Processing] → 3. [Storage]

Findability & Entry Points

Findability & Entry Points

Entry PointWhy Start Here
path/to/file.py
[reason]
Search Keywords: [keyword1], [keyword2], [keyword3]
Entry PointWhy Start Here
path/to/file.py
[reason]
Search Keywords: [keyword1], [keyword2], [keyword3]

Product Context

Product Context

  • Business Purpose: [what problem this solves]
  • Primary Users: [who uses this]
  • Documentation Gaps: [what's missing]
  • Business Purpose: [what problem this solves]
  • Primary Users: [who uses this]
  • Documentation Gaps: [what's missing]

How to Modify

How to Modify

  1. [Step 1]
  2. [Step 2]
  1. [Step 1]
  2. [Step 2]

Recommendations

Recommendations

  1. [Health improvement]
  2. [Findability improvement]
  3. [Documentation improvement]
undefined
  1. [Health improvement]
  2. [Findability improvement]
  3. [Documentation improvement]
undefined

Common Exploration Queries

常见探索查询示例

  • "How does authentication work?"
  • "Where are API endpoints defined?"
  • "Find all usages of EventBroadcaster"
  • "What's the workflow for content analysis?"
  • "认证功能的实现逻辑是什么?"
  • "API端点定义在哪里?"
  • "查找EventBroadcaster的所有用法"
  • "内容分析的工作流是怎样的?"

Related Skills

相关技能

  • implement: Implement after exploration

Version: 2.1.0 (February 2026)
  • implement: 探索完成后进行功能实现

版本: 2.1.0(2026年2月)