IntelliJ `AnAction` 클래스를 구현하거나 수정하고 `plugin.xml`에 등록하도록 안내합니다. 표시 이름과 설명은 메시지 번들에 두고, 필요하면 아이콘을 설정하며, 이벤트 코루틴 범위에서 중단 함수를 실행해 동기식 처리로 IDE가 멈추는 일을 방지합니다.
- IDE 메뉴에 새 동작 추가
- 동작 등록이나 아이콘 변경
- 동작 이름과 설명 정리
Product DSL `ModuleSet`에 묶인 플랫폼 모듈을 독립된 번들 플러그인으로 옮기도록 구성과 의존 관계 정리를 안내합니다. 래퍼 설정, 제품 레이아웃 변경, 생성 파일과 테스트 검증을 다루며 IntelliJ Platform 빌드 구성을 위한 스킬입니다.
Convert Product DSL module sets into bundled wrapper plugins.
실행 점수 미검증
설치 방법 보기이 스킬은 Product DSL의 집계 ModuleSet에 포함된 플랫폼 모듈을 독립된 번들 플러그인으로 옮기는 작업을 안내합니다. 기능 모듈 옆에 직접 작성하는 JPS 래퍼 모듈을 만들고 plugin.xml에 콘텐츠 모듈을 등록하는 구성을 다룹니다. 제품 레이아웃에서 이전 대상 모듈을 제거하고 번들 플러그인을 추가하는 절차, 모듈 설명자와 사용하는 쪽의 의존성을 점검하는 관점, 생성 파일과 테스트에서 확인할 사항도 설명합니다. 플러그인 로딩 조건과 테스트 실행 중 누락된 의존성을 조사하는 방법도 포함합니다.
ModuleSet 안의 모듈 그룹을 독립 플러그인으로 배포하려는 경우에 유용합니다. 이전으로 달라지는 제품별 레이아웃, 모듈 의존성, 생성 파일의 범위를 확인할 때도 사용할 수 있습니다. IntelliJ Platform 빌드 구성을 다루는 개발자를 위한 절차입니다.
문서에 적힌 절차는 JPS, Bazel, ./tests.cmd 등을 포함한 저장소 내 빌드 및 테스트 환경을 전제로 합니다.
이 소개문은 공개된 SKILL.md를 바탕으로 AI(OpenAI Codex)가 작성했습니다. 정확한 사양은 아래 원문을 확인하세요.
AI가 SKILL.md의 내용에서 주의가 필요한 작업과 도입 전제를 확인했습니다. 점수는 실제로 실행한 결과(실행 검증)만으로 매깁니다.
점수에는 넣지 않았습니다. 2026년 10월 28일 기준으로 AI(OpenAI Codex)가 판정했습니다. 참고용이므로 설치 전에 원문도 확인해 주세요.
설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Use this workflow when a group of platform modules that currently live inside an aggregate Product DSL ModuleSet (typically essential, one of the feature sets that essential nests, or ide.common) should become a standalone bundled plugin wrapper.
New canonical pattern: the wrapper is a hand-written JPS module placed next to the feature modules — not auto-generated under community/module-set-plugins/generated/. Auto-generation is being phased out; legacy wrappers stay in place until migrated. Reference example: community/platform/navbar/plugin/ (IJPL-245430, commit 9d61ae6803221).
community/platform/navbar/plugin/ as the reference: a sibling plugin/ directory of the feature modules with its own .iml and resources/META-INF/plugin.xml.intellij.moduleSets.<name>.xml and become a bundled plugin instead.visibility="private" on the library descriptor and register the module as unnamed <content> in each consuming plugin, so each copy lives in that plugin's implicit private namespace.Create a new JPS module at <feature-root>/plugin/, e.g. community/platform/<feature>/plugin/:
intellij.platform.<feature>.plugin.iml under community/platform/ — resources-only JAVA_MODULE inheriting JDK; for example:
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
After creating the .iml, register it with the project-file helper instead of editing modules.xml by hand:
bun build/jps-module.mjs register community/platform/<feature>/plugin/intellij.platform.<feature>.plugin.iml --fix-iml-eof
resources/META-INF/plugin.xml — a minimal <idea-plugin> listing the content modules. Mirror the wrapper shape from navbar and use the canonical com.intellij.* plugin id (replace FEATURE with the actual short name; the description must be at least 40 characters):
<idea-plugin>
<id>com.intellij.platform.FEATURE</id>
<name>FEATURE</name>
<description>Provides FEATURE platform modules for the IDE.</description>
<vendor>JetBrains</vendor>
<content namespace="jetbrains">
<module name="intellij.platform.FEATURE" loading="required"/>
<module name="intellij.platform.FEATURE.backend"/>
<module name="intellij.platform.FEATURE.frontend"/>
<module name="intellij.platform.FEATURE.monolith"/>
</content>
</idea-plugin>
Naming: the plugin id follows the com.intellij.* scheme and is not the JPS module name. Use com.intellij.platform.FEATURE when the wrapper is platform infrastructure that does nothing on its own and other plugins build on top of it (for example com.intellij.platform.vcs, com.intellij.platform.ssh, com.intellij.platform.testRunner), and com.intellij.FEATURE when it is a self-sufficient user-facing feature (for example com.intellij.bookmarks, com.intellij.todo, com.intellij.navbar). Check that the id is free first, it could've been used for another plugin. Do not use module-name-style ids (intellij.platform.FEATURE.plugin, intellij.FEATURE.plugin). Once an id has shipped in a release, any rename must keep the old id as an alias. Do not reuse the legacy com.intellij.moduleSet.FEATURE prefix — that is the auto-generated wrapper convention being phased out, kept only on existing wrappers under community/module-set-plugins/generated/. The plugin name is a short human-readable label (e.g. Tasks and Contexts).
No wrapper-specific descriptor marker is needed. Add the JPS wrapper module name to HAND_WRITTEN_MODULE_SET_PLUGIN_MODULES in community/platform/build-scripts/product-dsl/src/ModuleSetPlugins.kt. Generation intersects that build-time registry with each product's ProductModulesLayout.bundledPluginModules, avoiding changes to the runtime plugin descriptor model while keeping complete generated dependencies for wrapper content.
Mark only the shared/anchor module (the one that loads in every product mode) as loading="required" — intellij.platform.FEATURE in the example. Plugin-XML inspection requires at least one required/embedded/required-if-available content module per wrapper, so the anchor satisfies that. Do not add loading="required" to backend / frontend / monolith modules: in frontend product mode (JetBrains Client) the platform's backend module is unavailable, so a required FEATURE.backend excludes itself and takes the whole wrapper plugin down — producing a confusing cascade like "Plugin 'FEATURE' depends on plugin 'IDEA CORE' which failed to load".
No JAR-layout file. The dev distribution derives each member's jar from the plugin's <content>. It uses the loading rule, and the member's package attribute. A conventional wrapper needs no separate packaging file. After you register the module, run ./build/jpsModelToBazel.cmd, then bazel run //platform/buildScripts:plugin-model-tool.
The tool derives the platform layout and compatible published plugins from sources. It writes the plugin's jars, members, and libraries into the dev section of the plugin's BUILD.bazel. Do not edit generated sections or plan files. AllProductsPackagingTest compares the derivation with the build layout and packed jars. Closed-product dist-file observations live in ultimate build/dev-dist/packaging/<product>.yaml. Packaging tests report changes as patches for review. These YAML files are test expectations, not generator or assembly inputs.
Suppress SplitModeMixedDependencies and PluginXmlPluginLogo in plugin.xml only if the inspection actually flags the wrapper.
Remove the now-pluginized modules from the aggregate ModuleSet:
community/platform/build-scripts/src/org/jetbrains/intellij/build/productLayout/CommunityModuleSets.kt (and any product-specific layout file that listed them), delete the module("intellij.platform.<feature>.…") / embeddedModule(...) calls that the wrapper now owns.DEFAULT_BUNDLED_PLUGINS in community/platform/build-scripts/src/org/jetbrains/intellij/build/productLayout/ProductModulesLayout.kt, e.g. "intellij.platform.<feature>.plugin".HAND_WRITTEN_MODULE_SET_PLUGIN_MODULES in community/platform/build-scripts/product-dsl/src/ModuleSetPlugins.kt.ReSharperExternalProductProperties, Gateway, JetBrains Client product-modules XML under remote-dev/, etc.) and add the wrapper module name where appropriate.Do not create a new plugin("<feature>") DSL block under the old generator path. The wrapper exists as a standalone JPS module instead.
Pluginization is a good moment to verify that each former direct module declares only the dependencies it really needs:
intellij.platform.<feature>.<backend|frontend|monolith>.xml so it declares the actual runtime dependencies (e.g. intellij.platform.backend, intellij.platform.frontend, the shared intellij.platform.<feature> module).<extensionPoint …> reference accordingly.<plugin id="com.intellij.platform.<feature>"/> instead of <module name="intellij.platform.<feature>.frontend"/>. Existing references to legacy com.intellij.moduleSet.<feature> ids stay valid for the auto-generated wrappers that have not yet been migrated.After the source edits, run the generators so the platform descriptors, Bazel files, and .idea/modules.xml are updated to match:
./build/jpsModelToBazel.cmd
bazel run //platform/buildScripts:plugin-model-tool
Expected diffs:
community/platform/platform-resources/generated/META-INF/intellij.moduleSets.essential.xml, …ide.common.xml, and licenseCommon/generated/META-INF/intellij.moduleSets.ide.ultimate.xml no longer list the pluginized modules.community/.idea/modules.xml and .idea/modules.xml gain the new intellij.platform.<feature>.plugin.iml module in helper-generated canonical order.build/bazel-generated-file-list.txt and community/build/bazel-generated-file-list.txt gain the new plugin directory.BUILD.bazel gains a dev section with its dev_dist_plugin call, written by plugin-model-tool. The platform layout derives from sources; no platform jar table needs an update.tests/ideaProjectStructure/testResources/com/intellij/ideaProjectStructure/fast/available-in-idea-free-mode.txt gains the new module if it is free-mode available.community/module-set-plugins/generated/intellij.moduleSet.plugin.<name>/ are unrelated — do not touch them unless you are migrating one to the new pattern.Hand-written wrappers usually do not hit the pre-generation-on-disk ordering trap, since the descriptor exists in source from the first build. The cache path remains relevant only for the legacy generated wrappers:
PluginContentCache injects PluginContentInfo objects for already-generated wrappers during the model-building stage. If you migrate one of those to the new pattern, drop the corresponding cache entry along with the generated directory.Pluginization can break narrow test modules even when product packaging tests pass. Test runtime classpaths may still include a plugin module whose extracted platform dependency is no longer embedded. Catch this from idea.log, not from test assertion text alone.
Plugin set resolution and Problems found loading plugins in local or TeamCity test logs.intellij.platform.structureView.impl, intellij.platform.execution.serviceView, or intellij.platform.navbar.frontend as a missing wrapper-plugin runtime dependency (intellij.moduleSet.plugin.structureView, intellij.moduleSet.plugin.servicesView, or the new intellij.platform.<feature>.plugin).scope="RUNTIME". Do not add it to broad shared modules such as intellij.platform.testFramework or aggregate/global test infrastructure..iml, run ./build/jpsModelToBazel.cmd and verify the generated BUILD.bazel runtime deps are updated./app/rest/builds/id:<buildId>/artifacts/content/testlog.zip!.../idea.log.Run this suite before relying on TeamCity after pluginization or plugin dependency changes. Run the listed commands in parallel when resources allow; the order is diagnostic priority, not execution order. Fix failures in checks 1-6 before interpreting downstream canary failures.
./bazel.cmd run //platform/buildScripts:plugin-model-tool -- --json='{"filter":"embeddedDependencyClosure","pluginSourceOnly":true}'./tests.cmd --module intellij.platform.buildScripts.productDsl.tests --test org.jetbrains.intellij.build.productLayout.validator.ProductModuleSetValidatorTest./tests.cmd --module intellij.projectStructureTests --test com.intellij.ideaProjectStructure.fast.IntelliJProjectPackageNamesTest./bazel.cmd test //build:all-products-packaging_test./tests.cmd --module intellij.clion.build.tests --test org.jetbrains.intellij.build.clion.CLionPackagingTest./tests.cmd --module intellij.rider.build.tests --test com.jetbrains.rider.build.RiderPackagingTest./tests.cmd --module intellij.database.tests --test com.intellij.database.DatabaseTestSuite
./tests.cmd --module intellij.database.sql.tests --test com.intellij.sql.SqlFileStructureViewTest
./tests.cmd --module intellij.database.sql.tests --test com.intellij.sql.editor.SqlMultiLineTodoTest./tests.cmd --module intellij.codeServer.db.sql.tests --test com.intellij.database.SqlCompletionTest
./tests.cmd --module intellij.codeServer.db.csv.datagrid.tests --test com.intellij.codeServer.db.csv.datagrid.tests.CsvCoreGridTest./tests.cmd --module intellij.packageChecker.tests --test com.intellij.packageChecker.model.VulnerabilitiesRepositoryServerTest./community/tests.cmd --module intellij.grazie.tests --test com.intellij.grazie.spellchecker.inspector.SuggestionTest
./community/tests.cmd --module intellij.grazie.tests --test com.intellij.grazie.spellchecker.inspection.CommentsWithMistakesInspectionTest./community/tests.cmd --module intellij.sh.tests --test com.intellij.sh.highlighting.ShHighlightUsagesInMarkdownTest./tests.cmd --module intellij.ruby.tests --test org.jetbrains.plugins.ruby.gem.GemsProviderTest
./tests.cmd --module intellij.ruby.tests --test org.jetbrains.plugins.ruby.ruby.psi.RubyHeredocInjectorTest#testSqlHeredoc./tests.cmd --module intellij.rustrover.core.test --test org.rust.ide.structure.RsStructureViewModelTest
./tests.cmd --module intellij.rustrover.sql.tests --test com.jetbrains.rust.sql.SqlInjectorTest./tests.cmd --module intellij.resharper.external.services.test.cases.rd --test com.jetbrains.resharper.external.services.test.cases.ReSharperDataGripRdTest./tests.cmd --module intellij.ml.llm.chat.tests --test com.intellij.ml.llm.core.chat.ui.chat.navigation.FilePathMatcherTest
./tests.cmd --module intellij.ml.llm.completion.tests --test com.intellij.ml.llm.completion.cloud.context.mainEditor.RecentLocationsContextCollectorTest
./tests.cmd --module intellij.ml.llm.devkit.tests --test com.intellij.ml.llm.devkit.context.DevKitChatContextProviderTest
./tests.cmd --module intellij.ml.llm.java.embeddings.tests --test com.intellij.ml.llm.java.embeddings.JavaEmbeddingParsingTest
./tests.cmd --module intellij.ml.llm.java.inlinePromptDetector.tests --test com.intellij.ml.llm.java.inlinePromptDetector.JavaInlinePromptHighlightingTest
./tests.cmd --module intellij.ml.llm.nextEdits.tests --test 'com.intellij.ml.llm.nextEdits.tests.history.NextEditFileHistoryTest;com.intellij.ml.llm.nextEdits.tests.diff.CheckFileRangesSyntaxCorrectTest'
./tests.cmd --module intellij.ml.llm.ruby.test --test com.intellij.ml.llm.ruby.testGeneration.RubyLLMGenerateTestsSupportPromptTest
./tests.cmd --module intellij.ml.llm.ruby.test --test com.intellij.ml.llm.ruby.testGeneration.rails.RailsGenerateTestsPromptTest
./tests.cmd --module intellij.ml.llm.sql.tests --test com.intellij.ml.llm.sql.SqlObjectChatInputTestRun lint_files() on every changed Kotlin source and test file.
Run the Pre-TeamCity Canary Suite after generated files and narrow test dependencies are updated.
Keep CLion and Rider packaging tests in the standard suite: wrapper plugins and DEFAULT_BUNDLED_PLUGINS changes can affect those product baselines even when AllProductsPackagingTest is green.
Run at least one representative test from each affected test module via ./tests.cmd --module <module> --test <FQN or FQN#method>. Prefer a small smoke test that exercises plugin loading without external fixtures.
If the original CI test needs unavailable data or services, run a nearby smoke test and document the local blocker. Confirm idea.log no longer reports the original missing wrapper plugin.
Re-render the skill mirrors:
bazel run //.ai:render-guides
The renderer copies this file to community/.claude/skills/module-set-pluginization/SKILL.md, .agents/skills/module-set-pluginization/SKILL.md, .claude/skills/module-set-pluginization/SKILL.md, and .junie/skills/module-set-pluginization/SKILL.md. Confirm git status shows only this source file and those generated mirrors diverging.
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
IntelliJ `AnAction` 클래스를 구현하거나 수정하고 `plugin.xml`에 등록하도록 안내합니다. 표시 이름과 설명은 메시지 번들에 두고, 필요하면 아이콘을 설정하며, 이벤트 코루틴 범위에서 중단 함수를 실행해 동기식 처리로 IDE가 멈추는 일을 방지합니다.
IntelliJ JPS 테스트 모듈을 Bazel로 옮기고 Bazel에서만 발생하는 실패를 조사하는 안내서입니다. 의존성, 플러그인, 테스트 데이터와 runfiles 문제를 확인하고 생성된 대상과 이전된 테스트를 검증합니다.
IntelliJ 프로젝트 규칙에 맞춰 Kotlin과 Java 코드를 작성하거나 검토합니다. 언어 선택, 서식, 봉인 타입, 스레드 주석, 제어 흐름 예외 처리를 확인합니다.
이 가이드는 IntelliJ 프로젝트의 변경 사항을 목적별로 나누고 프로젝트 형식에 맞는 커밋 메시지를 작성하도록 돕습니다. 티켓이 있으면 번호와 변경 설명을, 없으면 레이블과 하위 시스템명을 사용하며 필요에 따라 이유와 판단을 본문에 담습니다.
여러 Python 타입 검사기로 코드 조각이나 파일의 타입 추론과 오류 판정을 비교합니다. 도구별 결과, 실행 시간, 진단 내용을 Markdown 보고서로 모아 저장할 수 있습니다.
Compose Desktop 화면을 구성할 때 컴포저블은 렌더링을 맡고 프레젠터나 코디네이터는 앱 결정을 맡도록 구조를 정리합니다. 상태 소유권, Effect, 재사용 컴포넌트 API, 지연 목록 키, 애니메이션과 성능을 개별 UI 변경에 맞춰 살펴봅니다.