IntelliJ `AnAction` 클래스를 구현하거나 수정하고 `plugin.xml`에 등록하도록 안내합니다. 표시 이름과 설명은 메시지 번들에 두고, 필요하면 아이콘을 설정하며, 이벤트 코루틴 범위에서 중단 함수를 실행해 동기식 처리로 IDE가 멈추는 일을 방지합니다.
- IDE 메뉴에 새 동작 추가
- 동작 등록이나 아이콘 변경
- 동작 이름과 설명 정리
IntelliJ의 `.iml` 파일에서 모듈 의존성을 추가하거나 변경하고 관련 생성 파일과 빌드 정보를 동기화하는 절차를 안내합니다. 모듈 등록, Bazel 파일, 라이브러리 버전 갱신, 테스트의 Kotlin 내부 선언 접근을 다룹니다.
Add or modify IntelliJ module dependencies in `.iml` files.
실행 점수 미검증
설치 방법 보기이 스킬은 IntelliJ JPS 모듈의 .iml 파일에서 의존성을 추가하거나 변경하고, 관련 등록 정보와 생성 파일을 일관되게 유지하는 절차를 안내합니다. 모듈을 만들거나 편집한 뒤 jps-module.mjs로 등록 상태를 확인하고, jpsModelToBazel.cmd로 .iml을 바탕으로 Bazel BUILD 파일을 다시 생성합니다. 라이브러리 버전을 갱신할 때는 전용 대시보드 명령으로 POM과 아티팩트 구성이 일치하는지 확인하고, Fleet에 복사된 버전과 Bazel 잠금 파일도 갱신하는 흐름을 다룹니다. 테스트 모듈에서 Kotlin internal 선언을 참조하는 설정과 자동 생성 영역의 처리도 설명합니다.
빠진 의존성을 추가하거나 .iml을 바꾼 뒤 빌드 정의가 오래된 상태인지 확인할 때 사용할 수 있습니다. 라이브러리 버전을 갱신하거나 다른 모듈의 테스트에서 내부 선언을 사용하도록 설정할 때도 유용합니다.
internal 선언을 참조할 수 있게 해 주세요.”IntelliJ 저장소 구조에 맞춘 절차를 대상으로 합니다. 라이브러리 해석을 재현하는 downloadLibraries.cmd를 실행하려면 Space 인증 정보가 필요합니다.
이 소개문은 공개된 SKILL.md를 바탕으로 AI(OpenAI Codex)가 작성했습니다. 정확한 사양은 아래 원문을 확인하세요.
AI가 SKILL.md의 내용에서 주의가 필요한 작업과 도입 전제를 확인했습니다. 점수는 실제로 실행한 결과(실행 검증)만으로 매깁니다.
점수에는 넣지 않았습니다. 2026년 10월 28일 기준으로 AI(OpenAI Codex)가 판정했습니다. 참고용이므로 설치 전에 원문도 확인해 주세요.
설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
This document describes how to manage module dependencies when working with IntelliJ IDEA codebase.
The repository uses a hybrid build system:
build/jpsModelToBazel.cmd after changing .iml filesWhen creating or editing a JPS module .iml, use the helper instead of hand-editing project module lists:
bun build/jps-module.mjs register <path-to-iml> --fix-iml-eof
The helper:
.idea/modules.xmlcommunity/... modules in community/.idea/modules.xml.iml basename without the .iml suffix, matching org.jetbrains.intellij.build.ModulesXml.iml files when --fix-iml-eof is passedUse bun build/jps-module.mjs check <path-to-iml> --fix-iml-eof to verify without writing.
To manually run the converter that generates Bazel BUILD files from .iml files:
./build/jpsModelToBazel.cmd
This is useful when:
Bump a library with the dashboard tool, not by hand: bun community/build/libraries-dashboard/libraries-dashboard.mjs bump <groupId:artifactId>=<version> --kind=wrapper. It rewrites the maven-id, the jar URLs and every <sha256sum>, and prints the follow-up commands.
JPS resolves a repository library from its POM and requires the <verification> artifact set to equal the resolved jar set. Bazel downloads the listed URLs instead, so a mismatch passes every local Bazel build and fails the first JPS step on TeamCity ("Library 'x': not found expected artifacts"). Two rules follow:
community/libraries/mockk/jvm/intellij.libraries.mockk.jvm.iml excludes byte-buddy-agent and depends on intellij.libraries.byte.buddy.agent.The bump command checks a multi-artifact library against the direct dependencies of the new POM and fails on a mismatch. After a manual edit of a library block, run the same check:
bun community/build/libraries-dashboard/libraries-dashboard.mjs check <groupId:artifactId>
The check reads one POM without its parents and compares direct dependencies only. To reproduce the JPS resolution that TeamCity runs before every build, run ./build/downloadLibraries.cmd. It needs Space credentials.
After you change the version of a repository library in an *.iml or in .idea/libraries/*.xml, run the Fleet generator in the monorepo checkout:
./fleet/build/generateProjectModel.cmd dump
The Fleet generator copies the JPS library versions into fleet/build/jps-library-mappings.tsv and both fleet/kmp.MODULE.bazel files. Its check mode fails on drift.
When the dump changes a kmp.MODULE.bazel, update both Bazel lockfiles:
./bazel.cmd mod deps --lockfile_mode=update
(cd community && ./bazel.cmd mod deps --lockfile_mode=update)
The kmp module extension records its artifact list in the MODULE.bazel.lock of each module, and CI runs Bazel with --lockfile_mode=error, so a stale lockfile fails the build. bun community/build/libraries-dashboard/libraries-dashboard.mjs bump prints these commands after a bump.
Some files outside the JPS model copy a library version, and the project structure tests check each copy:
community/platform/jps-bootstrap/pom.xml copies every library that jps-bootstrap uses (JpsBoostrapStructureTest).JetBrainsAnnotationsExternalLibraryResolver.VERSION copies org.jetbrains:annotations (IdeaUltimateProjectStructureTest).The bump command rewrites these copies and reports a copy that still differs. After a manual version change, edit them by hand. Then run the tests that gate the Smoke Tests build:
./tests.cmd --module intellij.projectStructureTests --test 'com.intellij.ideaProjectStructure.fast.*'
These tests also check the Kotlin, Compose and LanguageTool version alignment and the unused project libraries.
BUILD.bazel files have auto-generated sections marked with comments:
### auto-generated section `build module.name` start
... generated content ...
### auto-generated section `build module.name` end
### auto-generated section `test module.name` start
... generated content ...
### auto-generated section `test module.name` end
Key rules:
To prevent auto-generation of a section (so you can provide custom content):
### skip generation section `test module.name`
Example - Custom test target with preserved content:
load("@community//build:tests-options.bzl", "jps_test")
# Custom test target (before auto-generated sections)
jps_test(
name = "my-tests_test",
runtime_deps = [
":my-tests_test_lib",
"//:main_test_lib",
],
)
### skip generation section `test my.module.name`
### auto-generated section `build my.module.name` start
... (let generator handle the build section)
Product layouts can include content modules directly. If production runtime already gets a dependency from a content module in the product layout, that content-module dependency can be enough and does not automatically require adding a wrapper plugin dependency to a production .iml or plugin descriptor.
Test plugin resolution is different because tests often do not run with the full production product layout or flat classpath. If a test module loads a plugin whose dependencies include content modules owned by a wrapper plugin, add the wrapper plugin as a test/runtime dependency in the test module .iml instead of broadening the production module dependency. For example, a test that needs Problems View content modules may need intellij.platform.problemView.plugin as a runtime dependency even when the production module only depends on Problems View content modules.
internal DeclarationsA Kotlin internal declaration is visible to a test only when the test module is a friend of the
production module.
The same module. A test source root of a module sees the internal declarations of the
production sources. Nothing to configure. The generator adds the production target to the
associates attribute of the _test_lib target.
A separate test module. Add the TestModuleProperties component to the test module .iml:
<component name="TestModuleProperties" production-module="intellij.platform.configurationStore.impl" />
Then run ./build/jpsModelToBazel.cmd. The generator moves the production module from deps to
associates, and the Kotlin compiler gets it as a friend path. For a complete example, see
community/notebooks/visualization/intellij.notebooks.visualization.tests.iml.
The component holds one module. A test module cannot be a friend of two production modules, and the friendship is not transitive.
Java. Java has no internal modifier. Put the test class in the same package as a
package-private declaration. For a member that carries @ApiStatus.Internal, add
@VisibleForTesting or @TestOnly, because the compiler makes no check here.
When you need to fix missing dependencies:
.iml with the repo-approved edit tool.bun build/jps-module.mjs register <path-to-iml> --fix-iml-eof for every changed module file../build/jpsModelToBazel.cmd so generated BUILD.bazel files match the .iml source of truth.아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
IntelliJ `AnAction` 클래스를 구현하거나 수정하고 `plugin.xml`에 등록하도록 안내합니다. 표시 이름과 설명은 메시지 번들에 두고, 필요하면 아이콘을 설정하며, 이벤트 코루틴 범위에서 중단 함수를 실행해 동기식 처리로 IDE가 멈추는 일을 방지합니다.
IntelliJ JPS 테스트 모듈을 Bazel로 옮기고 Bazel에서만 발생하는 실패를 조사하는 안내서입니다. 의존성, 플러그인, 테스트 데이터와 runfiles 문제를 확인하고 생성된 대상과 이전된 테스트를 검증합니다.
IntelliJ 프로젝트 규칙에 맞춰 Kotlin과 Java 코드를 작성하거나 검토합니다. 언어 선택, 서식, 봉인 타입, 스레드 주석, 제어 흐름 예외 처리를 확인합니다.
이 가이드는 IntelliJ 프로젝트의 변경 사항을 목적별로 나누고 프로젝트 형식에 맞는 커밋 메시지를 작성하도록 돕습니다. 티켓이 있으면 번호와 변경 설명을, 없으면 레이블과 하위 시스템명을 사용하며 필요에 따라 이유와 판단을 본문에 담습니다.
여러 Python 타입 검사기로 코드 조각이나 파일의 타입 추론과 오류 판정을 비교합니다. 도구별 결과, 실행 시간, 진단 내용을 Markdown 보고서로 모아 저장할 수 있습니다.
Compose Desktop 화면을 구성할 때 컴포저블은 렌더링을 맡고 프레젠터나 코디네이터는 앱 결정을 맡도록 구조를 정리합니다. 상태 소유권, Effect, 재사용 컴포넌트 API, 지연 목록 키, 애니메이션과 성능을 개별 UI 변경에 맞춰 살펴봅니다.