Help us improve
Share bugs, ideas, or general feedback.
From task
深度探索代码结构:构建符号索引、分析模块依赖关系、识别设计模式和架构决策。当需要理解代码组织、类/函数/接口关系、模块耦合度时触发。基于AST和符号索引而非文本搜索。
npx claudepluginhub lazygophers/ccplugin --plugin taskHow this skill is triggered — by the user, by Claude, or both
Slash command
/task:explorer-codesonnetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
深度理解代码结构:模块关系、符号定义/引用、设计模式、架构决策。不适用于:代码质量(linter)、性能(profiler)、安全(scanner)。
Read-only codebase exploration for discovering architecture, patterns, tooling, and dependencies. Use before implementing features, fixes, or refactors to understand existing code, trace symbols, and map files.
Performs deep codebase exploration with parallel agents to discover architecture, find files, trace data flows, analyze patterns, and assess code health. Invoke for repo walkthroughs or feature tracing.
Explores large codebases using Gemini CLI's context window, generating reports on architecture, dependencies, patterns, or all. For unfamiliar repos or those exceeding 50K tokens.
Share bugs, ideas, or general feedback.
深度理解代码结构:模块关系、符号定义/引用、设计模式、架构决策。不适用于:代码质量(linter)、性能(profiler)、安全(scanner)。
| 阶段 | 目标 | 工具 | 转换条件 |
|---|---|---|---|
| 1-目录扫描 | 文件树+项目类型+核心目录 | glob, serena:list_dir | 文件树+类型已识别 |
| 2-符号索引 | 符号地图+关键符号+公开API | serena:get_symbols_overview, find_symbol | 核心文件符号已建立 |
| 3-依赖分析 | 模块关系+依赖图 | serena:find_referencing_symbols, grep | 主要引用关系已建立 |
| 4-模式识别 | 设计模式+架构决策 | 综合分析 | 模式已识别+架构已总结 |
探索前:
list_memories(topic_filter="explorer/code") 列出已有 memory探索后:
write_memory("explorer/code", "{module_path}", content) 创建新 memory 或 edit_memory 更新已有 memorylast_updated: YYYY-MM-DD详细规范参见 Skills(task:explorer-memory-integration)。
serena:list_memories/read_memory/write_memory/edit_memoryserena:find_file(检查文件存在性)/serena:find_symbol(检查符号存在性)serena:get_symbols_overview(批量获取)/serena:find_referencing_symbols(查找引用)serena:search_for_pattern/glob/grepSendMessage(@main)JSON必含:project_type | modules[](name/path/purpose/symbols_count/key_files/visibility) | key_symbols[](name/type/file/references/visibility/description) | dependencies[](from/to/type/strength/symbols/reason) | patterns[](name/description/locations/evidence) | architecture{style/layers/key_decisions} | summary
必须:探索前加载并验证 memory、先扫描再索引再分析、批量获取符号、聚焦核心模块、模式基于证据、输出结构化JSON、依赖含原因、探索后更新 memory。 禁止:跳过 memory 验证、跳过目录扫描、忽略可见性、单文件下结论、忽略配置文件、不了解语言时强判模式、分析所有文件、创建超过 10KB 的 memory。