跳到正文
cccskills
免费在 GitHub 公开中文介绍

plugin-model-analyzer

查询 IntelliJ Product DSL 模型中的模块、产品和插件关系。通过指定筛选条件查看依赖与路径、比较产品、检查加载规则,并查找验证问题或重构候选项;结果以结构化 JSON 返回。

原文查看原文说明

Query IntelliJ Product DSL modules, products, and plugin graphs.

JetBrains/intellij-community星标 20,684(GitHub 20,684 + cccskills 0)

实测评分 未实测

查看安装方法

适用场景

  • 查询模块依赖和所有者
  • 追踪依赖路径
  • 检查 DSL 配置和加载规则
  • 比较产品配置或模块集

中文介绍

功能

本技能通过查询 IntelliJ Product DSL 模型,检查模块、模块集、产品和插件之间的关系。可以查看模块依赖、依赖路径、使用该模块的产品及模块所有者,也可以比较产品、查找模块集重叠、检查嵌入式依赖闭包、验证放置位置和加载规则、搜索已弃用的 xi:include,并查看归并候选项。查询结果以 JSON 返回,可通过条件限定目标范围。

适用场景

修改 Product DSL 前后,可用它了解可能受影响的产品和依赖关系。查询某个模块在哪里使用、依赖路径包含哪些内容,或检查能否调整加载方式时也适用。可以从较小的查询开始,逐步检查模型,无需一次输出完整模型。

使用示例

  • “查询这个模块的依赖项和所有者。”
  • “检查这次 Product DSL 修改是否引入放置或加载问题。”
  • “比较这两个产品的配置。”

注意事项

在代码仓库根目录使用 Bazel 运行工具。不要调用已停用的 PluginModelAnalyzer MCP 服务器;应向 //platform/buildScripts:plugin-model-tool 提交 JSON 请求。查询前需要知道目标模块或产品的标识符。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
B部分不足资料要求运行 Bazel,但未说明是否会修改内容或向外发送数据。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足需要代码仓库、Bazel 和目标标识符,但未提供 Bazel 安装步骤。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月28日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(1)

  • SKILL.md9.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

<!-- Generated by community/.ai/render-guides.mjs; edit community/.agents/skills/plugin-model-analyzer/SKILL.md -->

Plugin Model Analyzer

Use the Product DSL analyzer directly through Bazel. Do not call the retired PluginModelAnalyzer MCP server.

Command Shape

Run from the repository root:

bazel run --ui_event_filters=-info --noshow_progress //platform/buildScripts:plugin-model-tool -- --json='<request-json>'

The output is JSON with a timestamp plus one result property named after the requested filter.

Prefer small, typed JSON requests. Avoid unfiltered --json: it emits the full model and is usually too large for agent context. Use JSON fields, not extra CLI flags, to describe the query. Treat the single top-level result property as the answer.

Transport options:

  • Short request: --json='{"filter":"summary","limit":5}'
  • Stdin request: --json=-
  • File request: --json=@/private/tmp/plugin-model-query.json

Common Requests

Module overview:

{"filter":"moduleInfo","module":"intellij.platform.vcs.impl","limit":20}

Module dependencies:

{"filter":"moduleDependencies","module":"intellij.platform.vcs.impl","includeTransitive":false,"includeTestDependencies":false}

Dependency path:

{"filter":"dependencyPath","fromModule":"intellij.platform.vcs.impl","toModule":"intellij.platform.projectModel.impl","includeTestDependencies":true,"includeScopes":true}

Module owners:

{"filter":"moduleOwners","module":"intellij.platform.vcs.impl","includeTestSources":true}

Module-set details or search:

{"filter":"moduleSetQuery","moduleSet":"ide.common","details":false,"limit":50}
{"filter":"moduleSetQuery","name":"vcs","location":"COMMUNITY","minModuleCount":3,"limit":20}

Product details or search:

{"filter":"productQuery","product":"idea","details":false,"limit":50}
{"filter":"productQuery","usesModuleSet":"ide.common","limit":30}

Product comparison and trace path:

{"filter":"productCompare","product":"idea","product2":"Idea","limit":50}
{"filter":"productTracePath","product":"idea","moduleSet":"ide.common","limit":20}

Embedded dependency closure:

{"filter":"embeddedDependencyClosure","value":"idea","moduleSet":"ide.common","pluginSourceOnly":true}

Merge or inline impact:

{"filter":"mergeImpact","source":"some.module.set","target":"target.module.set","operation":"merge"}
{"filter":"mergeImpact","source":"some.module.set","operation":"inline"}

Validation and loading-rule checks:

{"filter":"validation","check":"community_products"}
{"filter":"validation","check":"module_set_locations"}
{"filter":"validation","check":"loading_inconsistencies"}
{"filter":"validation","check":"embedded_dependency_closure","product":"idea","pluginSourceOnly":true}
{"filter":"moduleLoading","loading":"EMBEDDED","limit":100}

Refactoring candidates:

{"filter":"moduleSetOverlap","minOverlapPercent":70,"limit":20}
{"filter":"productSimilarity","threshold":0.8,"limit":20}
{"filter":"unificationSuggestions","strategy":"merge","limit":10}
{"filter":"redundantModuleSetRefs","product":"idea","limit":50}
{"filter":"suggestModuleSetsForModules","modules":["intellij.platform.vcs.impl","intellij.platform.vcs.log.impl"],"limit":20}

Deprecated xi:include usage:

{"filter":"deprecatedIncludes","product":"idea","limit":100}

Old MCP Operation Map

Use this map when a prompt or older instruction mentions the retired PluginModelAnalyzer MCP operation names.

Old operationJSON request
analyze_module_structure{"filter":"summary"}
module info{"filter":"moduleInfo","module":"<module>"}
module dependencies{"filter":"moduleDependencies","module":"<module>"}
module paths{"filter":"modulePaths","module":"<module>"}
module reachability{"filter":"moduleReachability","module":"<module>","moduleSet":"<set>"}
module find_by_loading{"filter":"moduleLoading","loading":"EMBEDDED","details":true}
module dependency_path{"filter":"dependencyPath","fromModule":"<from>","toModule":"<to>","includeScopes":true}
module-set info{"filter":"moduleSetQuery","moduleSet":"<set>"}
module-set search{"filter":"moduleSetQuery","name":"<name>","location":"COMMUNITY","limit":20}
module-set hierarchy{"filter":"moduleSetQuery","moduleSet":"<set>","details":true}
module-set overlap{"filter":"moduleSetOverlap","minOverlapPercent":70,"limit":20}
module-set graphNo ASCII graph output; use moduleSetQuery plus productTracePath or productUsage for structured edges.
module-set suggest_for_modules{"filter":"suggestModuleSetsForModules","modules":["<module>"]}
product info{"filter":"productQuery","product":"<product>"}
product search{"filter":"productQuery","name":"<name>","limit":20}
product compare{"filter":"productCompare","product":"<product1>","product2":"<product2>"}
product similar{"filter":"productSimilarity","threshold":0.8,"limit":20}
product composition{"filter":"composition"} for all products; use productQuery for one product.
product trace_path{"filter":"productTracePath","product":"<product>","moduleSet":"<set>"}
product deprecated_includes{"filter":"deprecatedIncludes","product":"<product>"}
product full_analysisAvoid unless explicitly needed; omit the filter only when the full raw model is required.
validation community_products{"filter":"validation","check":"community_products"}
validation module_set_locations{"filter":"validation","check":"module_set_locations"}
validation loading_inconsistencies{"filter":"validation","check":"loading_inconsistencies"}

Fast Recipes

Where is a module included?

{"filter":"moduleInfo","module":"<module>","limit":50}
{"filter":"modulePaths","module":"<module>"}

What depends on what, and why?

{"filter":"moduleDependencies","module":"<module>","includeTransitive":false,"includeTestDependencies":false}
{"filter":"dependencyPath","fromModule":"<from>","toModule":"<to>","includeTestDependencies":true,"includeScopes":true}

Who owns a module?

{"filter":"moduleOwners","module":"<module>","includeTestSources":true}

Which products or module sets use something?

{"filter":"moduleInfo","module":"<module>","limit":50}
{"filter":"productQuery","usesModuleSet":"<module-set>","limit":50}
{"filter":"productUsage","moduleSet":"<module-set>"}

Can a module stop being embedded?

{"filter":"moduleInfo","module":"<module>","limit":50}
{"filter":"moduleLoading","loading":"EMBEDDED","details":true,"limit":200}
{"filter":"validation","check":"embedded_dependency_closure","module":"<module>","pluginSourceOnly":true}

For the loading query, inspect moduleLoading.result.entries.items for the target module; moduleLoading filters by loading rule, not by module name. The embedded closure check answers whether an embedded source module has dependencies that are not also supplied by embedded sources in affected products.

Did a Product DSL edit introduce placement or loading problems?

{"filter":"validation","check":"community_products"}
{"filter":"validation","check":"module_set_locations"}
{"filter":"validation","check":"loading_inconsistencies"}
{"filter":"validation","check":"embedded_dependency_closure","pluginSourceOnly":true}

Which module set should contain these modules?

{"filter":"suggestModuleSetsForModules","modules":["<module1>","<module2>"],"limit":20}

Reading Output

  • Compact list fields use count, items, and truncated; increase limit or set details:true only when needed.
  • Some focused filters return an error field in JSON for missing selectors or unknown names; a successful process exit does not always mean the query matched.
  • For direct embeddedDependencyClosure, use value for the product selector. The validation wrapper accepts product or value.
  • location values are COMMUNITY or ULTIMATE. loading values are EMBEDDED, REQUIRED, OPTIONAL, ON_DEMAND, or UNSPECIFIED.

Request Fields

Use only fields relevant to the filter. Omit false, null, and default values unless they are semantically important.

Core selectors: filter, value, module, moduleSet, product, product2, name, location, usesModuleSet, modules, fromModule, toModule, source, target.

Options: operation, graph, check, loading, strategy, limit, minModuleCount, details, threshold, minOverlapPercent, includeTransitive, includeTestDependencies, includeTestSources, includeScopes, pluginSourceOnly.

Practical Rules

  • Start with summary, moduleInfo, moduleSetQuery, or productQuery when exploring.
  • Use details:false and a small limit until you know the exact module set or product.
  • Use the legacy precise filters (moduleDependencies, dependencyPath, moduleOwners, moduleReachability, productUsage, embeddedDependencyClosure, mergeImpact) when you need the full typed analysis for one target.
  • Use --json=- or --json=@file for complex requests instead of adding more CLI flags.
  • If the command fails before producing JSON, treat stderr as the source of truth; invalid JSON requests exit nonzero.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

actions

免费有简介

实现或修改 IntelliJ `AnAction`,并在 `plugin.xml` 中注册。将显示名称和说明写入消息资源文件,按需设置图标,并通过事件协程作用域启动挂起任务,避免同步处理阻塞 IDE。

  • 为 IDE 菜单添加操作
  • 修改操作注册或图标
  • 整理操作名称和说明
JetBrains/intellij-community2.1万2026年10月29日 更新

bazel-test-migration

免费有简介

将 IntelliJ JPS 测试模块迁移到 Bazel,并排查仅在 Bazel 中出现的失败。根据症状检查依赖、插件、测试数据和 runfiles,重新生成并验证目标。

  • 将 JPS 测试模块迁移到 Bazel
  • 排查仅在 Bazel 中失败的测试
  • 检查测试依赖和数据配置
JetBrains/intellij-community2.1万2026年10月29日 更新

code-style

免费有简介

按 IntelliJ 项目规范编写或审查 Kotlin 和 Java 代码,涵盖语言选择、格式、密封类型、线程注解及控制流异常处理。

  • 按 IntelliJ 规范编写 Kotlin
  • 审查 Java 代码
  • 检查异常处理和密封类型分支
JetBrains/intellij-community2.1万2026年10月29日 更新

commits

免费有简介

本指南帮助您按 IntelliJ 项目规则拆分更改并撰写提交信息:有工单时使用编号和变更说明,无工单时使用标签与子系统名,并在需要时说明原因和决定。

  • 按项目格式编写带工单号的提交信息
  • 整理测试或文档提交并选择合适标签
  • 按规则修改已有提交信息
JetBrains/intellij-community2.1万2026年10月29日 更新

使用多个 Python 类型检查器比较代码片段或文件的类型推断和报错判断,并汇总各工具的结论、耗时与诊断信息,可保存为 Markdown 报告。

  • 比较不同检查器的类型推断
  • 确认代码是否会被判为类型错误
  • 查看多个工具的诊断差异
JetBrains/intellij-community2.1万2026年10月29日 更新

整理 Compose Desktop 界面中的状态和副作用,让可组合函数负责绘制,由展示器或协调器处理应用决策。了解状态归属、Effect、可复用组件接口、延迟列表键、动画和性能,适用于单项界面修改。

  • 分离界面绘制与展示器决策
  • 整理界面状态的归属
  • 检查 Effect 键和协程用法
JetBrains/intellij-community2.1万2026年10月29日 更新

查看 JetBrains 的全部技能

报告此技能的问题