From code-analyzer
跨模块功能分析。当用户要求"分析 XX 功能"、"追踪 XX 流程"、"XX 是怎么实现的"时触发。 追踪某个功能跨多个模块的实现,分析调用链、数据流和模块间交互关系。
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-analyzer:feature-analyzerThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
对指定功能或系统进行跨模块分析,追踪其在多个模块中的实现和交互。
对指定功能或系统进行跨模块分析,追踪其在多个模块中的实现和交互。
定位:跨模块功能分析。 关注功能如何跨越模块边界,识别调用链、数据流和模块间依赖关系。
与 module 的区别:module 深入单个模块内部,feature 横向追踪跨模块的功能实现。
本 Skill 接收以下参数(由 analyst agent 传递):
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
scope | string | 是 | 功能名称或主路径(如"子弹系统"或"./src/bullet") |
output_file | string | 是 | 输出文件路径,由调用方指定 |
key_modules | string[] | 否 | 用户指定的关键模块路径,优先分析 |
notes | string | 否 | 用户指定的重点关注事项 |
开始执行
[feature-analyzer] 开始执行功能分析,scope=${scope}, output=${output_file}功能边界识别
scope 和上下文识别功能名称(如"子弹系统"、"战斗初始化")scope 是路径,自动发现该路径下与功能相关的代码scope 是功能名称,通过 Grep 搜索功能关键词定位相关文件和模块功能入口识别
跨模块调用链追踪
Grep 追踪函数调用链数据流分析
模块职责归纳
汇总功能级架构健康度评估
生成分析报告(强制执行)
警告:必须严格遵循以下模板结构,不得自由发挥。任何偏离模板的行为都是错误的。
要求:
output_file[📄 描述](路径#L行号) 格式模板文件:${CLAUDE_PLUGIN_ROOT}/docs/templates/feature-analyzer-template.md
output_filenpx claudepluginhub hproof/claude-market-gamedev --plugin code-analyzerTraces real code paths and data flow to deeply explain how complex systems work across many files. Use for architectural analysis or understanding multi-file implementations.
Traces feature, request, or data flows through codebase from entry points (API routes, UI handlers, jobs) to storage, documenting layers, transformations, side effects, and dependencies via graphs or grep.
Investigates code by tracing execution paths, mapping data flow, and diagnosing root causes. Outputs an analysis report with architecture overview and findings.