From code-analyzer
模块深度分析。当用户要求"分析 XX 模块"、"深入分析 XX"、"XX 模块的结构和依赖"时触发。 对指定模块进行结构和关键流程的综合分析,包括目录结构、类关系、依赖和关键流程。
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-analyzer:module-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
对指定模块执行结构 + 流程的综合深度分析,一次输出完整的模块画像。
对指定模块执行结构 + 流程的综合深度分析,一次输出完整的模块画像。
定位:模块级深度分析。 深入模块内部,识别子模块边界、类关系、依赖网络和关键业务流程。
与 full-scan 的区别:full-scan 是项目级宏观概览(模块分布和层级),本 Skill 深入单个模块内部做详细分析。
本 Skill 接收以下参数(由 analyst agent 传递):
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
scope | string | 是 | 要分析的模块路径(如 ./src/battle) |
output_file | string | 是 | 输出文件路径,由调用方指定 |
focus | string | 否 | 用户指定的重点关注事项 |
开始执行
[module-analyzer] 开始执行模块分析,scope=${scope}, output=${output_file}加载领域知识
${CLAUDE_PLUGIN_ROOT}/docs/game-glossary.md,辅助理解目录命名、中间件识别和模块功能分类目录结构分析
Glob 扫描目录层级(遵循 .claudeignore 忽略规则)Glob 识别代码文件分布game-glossary.md 命名映射表理解目录职责子模块/功能块识别
game-glossary.md 目录命名映射确定功能分类类/接口关系分析
classDiagram 图呈现classDiagram 图呈现子模块依赖分析
Grep 分析文件间的 include/import 关系graph LR)外部模块关系分析
Grep 在当前分析范围之外搜索对本模块的 include/import 引用,确定哪些外部模块依赖本模块full-scan 文档,参照其模块分布表将路径映射为模块名graph LR),展示上下游依赖关键流程分析
game-glossary.md 判断),选择合适的分析重点:
Grep 识别入口函数,用 Read + Grep 追踪调用链graph TD 呈现关键流程汇总架构健康度评估
生成分析报告(强制执行)
警告:必须严格遵循以下模板结构,不得自由发挥。任何偏离模板的行为都是错误的。
要求:
output_file[📄 描述](路径#L行号) 格式模板文件:${CLAUDE_PLUGIN_ROOT}/docs/templates/module-analyzer-template.md
output_filenpx claudepluginhub hproof/claude-market-gamedev --plugin code-analyzer分析指定模块目录的单一职责原则遵守情况,生成三维度得分与违规报告的JSON。适用于检查模块内聚性、检测职责混杂问题。
Runs a 7-phase codebase analysis using typegraph-mcp tools, producing a detailed architectural report. Useful when onboarding to an unfamiliar codebase or before making significant changes.
Deeply explores existing codebases to map architecture, data flow, domain model, API surface, dependencies, and code health using read-only SubAgents.