본문으로 건너뛰기
cccskills
무료GitHub에 공개한국어 소개

poly-symbols

JetBrains IDE의 언어나 프레임워크 통합에 PolySymbols를 추가하는 방법을 안내합니다. 심볼을 코드 완성, 참조 해결, 사용처 검색, 문서, 이름 변경에 연결하고 기존 PSI 처리와의 공존을 다룹니다.

원문원문 설명 보기

Implement PolySymbols completion, references, and rename.

JetBrains/intellij-community스타 20,685(GitHub 20,685 + cccskills 0)

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • 언어 플러그인에 코드 완성 추가
  • 심볼 참조 해결 구현
  • 이름 변경과 사용처 검색 지원
  • 기존 PSI 처리와의 공존 방안 수립

한국어 소개

할 수 있는 일

JetBrains IDE의 언어나 프레임워크 통합에 PolySymbols를 연결하는 방법을 안내합니다. 심볼 정의를 코드 완성, 참조 해결, 사용처 검색, 문서, 탐색, 이름 변경 기능에 연결하는 절차를 설명합니다. 범위 등록, 참조 및 선언 제공자 구현, 코드 완성 연결도 다룹니다. 심볼 종류와 데이터는 구체 구현 클래스로 변환해 읽는 대신 공통 속성을 통해 다루도록 안내합니다.

이럴 때 유용합니다

새 언어나 프레임워크 플러그인에 PolySymbols 지원을 추가할 때 유용합니다. 기존 PSI 기반 코드 완성과 참조 처리와 어떻게 함께 사용할지 검토할 때도 활용할 수 있습니다. 기존 통합 사례를 바탕으로 어떤 기능을 PolySymbols에 맡길지, 겹치는 처리를 어떻게 다룰지 정리할 수 있습니다.

사용 예시

  • “이 언어 플러그인에 PolySymbols 참조 해결과 코드 완성을 추가하는 절차를 정리해 주세요.”
  • “기존 PSI 참조 처리와 PolySymbols 기능이 중복되지 않도록 통합 방안을 검토해 주세요.”

주의 사항

PolySymbols는 실험적 기능으로 설명되어 있습니다. 구체적인 변경에 대해 사용자가 명시적으로 허가하지 않으면 공유 PolySymbols 플랫폼 소스를 수정하지 않습니다.

이 소개문은 공개된 SKILL.md를 바탕으로 AI(OpenAI Codex)가 작성했습니다. 정확한 사양은 아래 원문을 확인하세요.

문서 점검

AI가 SKILL.md의 내용에서 주의가 필요한 작업과 도입 전제를 확인했습니다. 점수는 실제로 실행한 결과(실행 검증)만으로 매깁니다.

안전성전송·삭제·명령 실행 등을 명시하고 있는가
A양호공유 플랫폼 소스를 변경하기 전에 구체적인 명시적 허가를 요구합니다.
도입의 용이성필요한 도구나 API 키가 적고 적혀 있는가
B일부 부족JetBrains 플러그인 환경을 전제로 하지만 설정 절차는 제공하지 않습니다.

점수에는 넣지 않았습니다. 2026년 10월 28일 기준으로 AI(OpenAI Codex)가 판정했습니다. 참고용이므로 설치 전에 원문도 확인해 주세요.

평가가 다르다고 생각되면 재검토를 요청하기

어느 항목이 왜 다르다고 생각하는지 적어 주세요. 로그인은 필요 없습니다. SKILL.md와 대조해 평가를 다시 만들고 이곳에 반영합니다.

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

포함된 파일(7)

  • SKILL.md16.8 KB
  • references/case-studies.md23.6 KB
  • references/migration.md11.7 KB
  • references/patterns.md8.7 KB
  • references/query-model.md43.7 KB
  • references/testing.md15.3 KB
  • references/web-types.md6.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

<!-- Generated by community/.ai/render-guides.mjs; edit community/.agents/skills/poly-symbols/SKILL.md -->

PolySymbols

PolySymbols is a framework built on top of the platform's Symbol API (PolySymbol : Symbol) for sharing symbol definitions and code-insight features (completion, references, documentation, navigation, rename, find-usages, semantic highlighting) across languages and frameworks. It was called "Web Symbols" in 2022.3–2025.1 and is still marked experimental. Core modules: community/platform/polySymbols/ (shared, backend, web).

Do not modify PolySymbols platform source

Never edit anything under community/platform/polySymbols/** without the user's explicit, one-time permission for that specific change — not even a small, purely-additive generalization that looks obviously safe. This is shared framework code consumed by every PolySymbols integration in the repo (Angular, Vue, CSS, JS, GDScript, mermaid, etc.); a "safe-looking" generalization made to fix one integration's test can silently change behavior for all the others. If you hit a real gap or limitation in platform behavior while integrating a language/framework, the default response is to report it and ask, not to patch the platform — the right fix is almost always something owned by your own plugin (a plugin-registered EP implementation, e.g. its own UsageSearcher/ RenameUsageSearcher/CustomUsageSearcher, not a platform-file edit). This was learned the hard way: a session generalized PolySymbolUsageSearcher's PsiLinkedPolySymbol-only raw-PSI-reference bridge to also cover PolySymbolDeclaredInPsi, when the actual, documented platform design is that PolySymbolDeclaredInPsi intentionally does not provide that bridge (see references/query-model.md) — the fix should have stopped at "ask the user," not at "patch the framework."

Implementing a new integration typically means: build declaration/reference/completion providers on the platform side as usual, plus a handful of PolySymbols contributor classes — find-usages, documentation, and rename then work automatically through reference resolution to a PolySymbol.

Consumer code must not cast to a concrete symbol class

Code that consumes PolySymbols (annotators, inspections, completion/line-marker/parameter-info providers — and a language integration's own customizers/scopes, not just downstream callers) should never cast a PolySymbol to a concrete implementation class to detect its kind or read its data. This is explicitly documented in PolySymbol.kt's own "## Properties" doc comment ("when you get results from a PolySymbolQueryExecutor query, you should avoid casting symbols to specialized interfaces... a query may return symbols of unexpected classes contributed by some 3rd party plugins") — it is a platform convention every consumer is expected to follow, not a one-off rule:

  • Kind detection → check the kind property (symbol.kind == SomeKind), which is always available on the plain PolySymbol interface. Never is ConcreteLeafSymbolClass.
  • Any other data (a type, a signature, a navigable element, a boolean flag not expressible via kind) → define a PolySymbolProperty<T> object and annotate the concrete class's real member with @PolySymbol.Property(TheProperty::class), then read it via symbol[TheProperty] (the PolySymbol.get operator) — never (symbol as? ConcreteLeafSymbolClass)?.someMember.
  • Package the property behind a PolySymbol.xxx extension, so consumer call sites read symbol.xxx and never see the property object or a cast at all — mirror plugins/JavaScriptLanguage/web-platform/src/com/intellij/polySymbols/js/JSSymbolUtils.kt's PolySymbol.jsType/jsKind/toPropertySignature, the reference example cited in PolySymbol.kt itself. Note toPropertySignature's fallback branch (when the property is absent) builds its result purely from other plain PolySymbol members (name, modifiers, jsType) — it never casts, not even as a fallback.
  • A shared, uniformly-implemented interface across a framework's own symbol kinds (e.g. GDScript's GdClassSymbol, exposing directMemberScope/resolveSuperClassSymbol() identically from both PSI- and SDK-backed class symbols) is not what this rule targets — that's legitimate polymorphic dispatch within a framework's own resolution machinery, not "cast down to read hidden, kind/backing-specific data" in consumer code. The anti-pattern is casting to a leaf class (GdPsiMethodSymbol, GdSdkClassSymbol) or a backing-specific base (GdPsiPolySymbol vs. GdSdkPolySymbol) from outside the symbol-definition package.
  • Reflection technique worth knowing: a @PolySymbol.Property-annotated member declared once on a shared abstract base class is found by every subclass automatically — PolySymbolPropertyGetter walks superclasses/interfaces when building its per-concrete-class accessor map, and Java/Kotlin generate a bridge method (matching the base class's erased signature) for any subclass override with a covariant return type, which is exactly what Method.invoke() resolves against. So you don't need to repeat the annotation on every leaf subclass when the member is inherited unchanged.

Interface cheat sheet

Interface / classPurpose
PolySymbolCore element — kind (namespace + kindName) + name, plus optional icon/priority/modifiers/apiStatus/pattern
PolySymbolScopeA symbol that contains other symbols (an HTML element containing attributes, a JS class containing members)
PolySymbolQueryExecutor / FactoryRuns nameMatchQuery/listSymbolsQuery/codeCompletionQuery against contributed scopes
PolySymbolQueryScopeContributorRegisters PolySymbolScopes for a PSI location — the main extension point you implement
PolySymbolQueryConfiguratorSupplies PolyContext rules + symbol name-conversion rules
PsiPolySymbolReferenceProviderResolves a host PsiElement to a referenced PolySymbol — registered via EP, produces external references
PolySymbolOwnReferencesAlternative to PsiPolySymbolReferenceProvider: builds references to return from PsiElement.getOwnReferences() directly — a language's own canonical resolve, not EP-registered. Requires the host element to implement the PolySymbolOwnReferenceHost marker interface
PolySymbolDeclarationProviderSupplies PolySymbolDeclarations for a PsiElement (skip if PsiLinkedPolySymbol covers your case)
PolySymbolsCompletionProviderBaseBase class for a CompletionProvider that runs a codeCompletionQuery
PolySymbolWithPatternA symbol expanded via a microsyntax pattern into a PolySymbolMatch
PsiLinkedPolySymbolA symbol backed 1:1 by a real PsiElement — gets declarations/navigation/find-usages "for free"
ReferencingPolySymbolUtility: makes one symbol kind stand in for/alias another kind
PolyContextGates scopes/configurators here, but is a general-purpose, performance-optimized context API usable well beyond PolySymbols — see poly-context
Web TypesStatic JSON symbol definitions — see references/web-types.md

See references/query-model.md for the full query/scope/declaration/ reference/completion wiring, and references/patterns.md for the pattern DSL and microsyntax matching.

The rule: PolySymbols is additive, not automatically authoritative

Every real integration studied in this repo keeps legacy PSI-based reference/completion code running alongside PolySymbols — none resolve entirely through it. This is not a migration artifact you can ignore; it is the load-bearing design fact for anyone adding a new integration. See references/case-studies.md for full detail, but the pattern repeats everywhere:

  • JS/TS/HTML/CSS (the platform's own built-in support) grafts PolySymbols onto pre-existing extension points (XmlElementDescriptorProvider, css.elementDescriptorProvider, JSReferenceExpression.resolve()) and explicitly steps aside for standard/spec symbols — e.g. HtmlElementSymbolDescriptorsProvider.getElementDescriptor() returns null when the query result hasOnlyStandardHtmlSymbols(), deferring to the bundled RelaxNG HTML5 schema; the legacy CssElementDescriptorProviderImpl is kept registered with order="last" as the CSS fallback; TypeScriptReferenceExpressionResolver only consults PolySymbols for unqualified references inside injected/embedded expression hosts. Standard tag/attribute/property lists are not Web Types data — they're the pre-existing RelaxNG schema and webref CSS XML.
  • Vue and Angular — the docs' own "heaviest adopters" — are close to fully PolySymbols-driven for their template/markup surface (components, directives/selectors, props/inputs, slots, events, modifiers), but Vuex, <style src>/ref=/file-path references, and CSS v-bind() bindings (Vue), and the Angular2 expression-language layer, templateUrl/pipe-name references (Angular) all still run through plain PsiReferenceContributor/CompletionContributor code with no PolySymbols involvement at all.
  • GDScript, the newest integration, is explicitly dual-track by its own admission — its in-tree README (dotnet/Plugins/godot-support/gdscript/.../polySymbols/README.md) states the PSI and PolySymbols implementations both run today and produce duplicate Find Usages results until the legacy path is deleted. Local variables, parameters, for-loop bindings, resource-path references, and the entire TSCN language have no PolySymbols coverage yet.

Actionable takeaway: for every new integration or feature, decide explicitly whether PolySymbols is the resolution path of record for that PSI element/feature, or merely a supplementary layer contributing extra symbols on top of an existing mechanism. If a legacy PsiReferenceContributor/CompletionContributor and a new PolySymbols registration can both fire on the same host PsiElement, either gate one off (a feature flag, a context check, an early return null/empty-list from whichever should defer) or accept and document the overlap — don't assume the platform will pick one for you.

Wiring checklist — adding PolySymbol support

  1. Opt the language in: register polySymbols.enableInLanguage language="..." (EP com.intellij.polySymbols.enableInLanguage) so PsiExternalReferenceHosts in that language are eligible for PolySymbols reference resolution at all.
  2. Contribute scopes: implement PolySymbolQueryScopeContributor (EP com.intellij.polySymbols.queryScopeContributor) — map PSI locations to PolySymbolScopes via the registrar DSL. This is almost always the first and most important class you write. Details: references/query-model.md.
  3. Resolve references: implement PsiPolySymbolReferenceProvider per host PsiElement type (EP com.intellij.polySymbols.psiReferenceProvider, one registration per hostElementClass). Alternative: implement PsiElement.getOwnReferences() directly via the PolySymbolOwnReferences builder when PolySymbols should be the language's own canonical resolve rather than an EP-contributed layer (e.g. replacing a legacy PsiReferenceContributor) — see references/query-model.md. Don't register both for the same host — own references pre-empt external ones. Either way, the host element's own type must implement PsiExternalReferenceHost (external) or PolySymbolOwnReferenceHost (own) — PolySymbolHighlightingAnnotator only looks at elements implementing one of the two, so skipping this isn't just a missed nicety, it's silently no highlighting/diagnostics at all (own references also won't compile against the DSL without it).
  4. Supply declarations: if a symbol maps 1:1 onto a real PsiElement and lives purely in the PolySymbols model, implement PolySymbolDeclaredInPsi plus a PolySymbolDeclarationProvider (EP com.intellij.polySymbols.declarationProvider) that builds the symbol — this is the default. The provider is pure dispatch: decide which symbol(s) a PsiElement backs, instantiate them, and return symbol.declaration (the interface's own default). Don't hand-roll a PolySymbolDeclaration implementation or thread a range through the provider — a non-default declaration range is a textRangeInSourceElement override on the symbol class itself; the symbol represents itself, the provider only knows which symbol to build. Reach for PsiLinkedPolySymbol + polySymbols.psiLinkedSymbol host="..." only when that same PsiElement must also keep working as a target for a legacy, non-PolySymbols find-usages/rename mechanism you're running alongside (a bridge for partial migrations, not a general shortcut — see references/query-model.md). For symbols with no backing PsiElement at all (synthetic/SDK symbols), write a PolySymbolDeclarationProvider by hand.
  5. Wire completion: register an ordinary completion.contributor whose provider extends PolySymbolsCompletionProviderBase and calls queryExecutor.codeCompletionQuery(...).
  6. Optional: PolySymbolQueryConfigurator for context rules/name-conversion rules; PolySymbolQueryResultsCustomizerFactory to post-filter/remap query results; polySymbols.webTypes if standard-library symbols can be shipped as static JSON instead of code (see references/web-types.md); a PolySymbolFramework (polySymbols.framework) + PolyContextProvider (polySymbols.context) if you're introducing a new framework identity (see poly-context).
  7. Use PolySymbolWithPattern/the pattern DSL when the language/framework layers a microsyntax on top of base syntax (directive-style attribute names, event-modifier chains). See references/patterns.md.

Case studies

Four real integrations in this repo, each ending in an explicit PolySymbols-vs-legacy verdict — read references/case-studies.md for the full writeup with file:line evidence.

IntegrationWhereOne-line verdict
GDScriptdotnet/Plugins/godot-support/gdscript/.../polySymbols/Dual-track: SDK/engine symbols are PolySymbols-first; user-code locals, resource refs, and TSCN are legacy-only, both paths run concurrently on some elements
JS/TS, HTML, CSSplugins/JavaScriptLanguage/web-platform/, community/xml, plugins/cssPolySymbols is grafted onto legacy extension points and steps aside for anything standard/spec-defined
Vuecontrib/vuejs/vuejs-backend/src/org/jetbrains/vuejs/web/Template/markup surface (components/directives/props/slots/events) is ~fully PolySymbols; Vuex, refs, CSS bindings are not
Angularcontrib/Angular/angular-backend/src/org/angular2/web/Markup/selector surface is ~fully PolySymbols; the Angular2 expression-language layer and some file/pipe-name refs are not

Related skills

Supporting files

Load only when needed:

  • Query model — query executor, scopes, contributors, configurators, declarations, references, completion, search/rename/nav hookups.
  • Patterns — the pattern DSL, PolySymbolMatch/name segments, ReferencingPolySymbol, the Vue directive worked example.
  • Case studies — GDScript, JS/TS/HTML/CSS, Vue, Angular, in depth.
  • Web Types — static JSON symbol definitions.
  • Testing — writing tests for a PolySymbols integration: the PolySymbolsTestCase hierarchy, the PolySymbolsTestUtil.kt cheat sheet, feature-by-feature recipes.
  • Migration — migrating a PSI-based feature to PolySymbols, tests-first: the preliminary-tests-migration recipe, forbidden CodeInsightTestFixture methods, the per-kind production migration unit.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 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일 업데이트

compare-python-typecheckers

무료요약 있음

여러 Python 타입 검사기로 코드 조각이나 파일의 타입 추론과 오류 판정을 비교합니다. 도구별 결과, 실행 시간, 진단 내용을 Markdown 보고서로 모아 저장할 수 있습니다.

  • 검사기별 타입 추론 비교
  • 코드가 타입 오류로 판정되는지 확인
  • 여러 도구의 진단 결과 비교
JetBrains/intellij-community2.1만2026년 10월 29일 업데이트

compose-ui-architecture

무료요약 있음

Compose Desktop 화면을 구성할 때 컴포저블은 렌더링을 맡고 프레젠터나 코디네이터는 앱 결정을 맡도록 구조를 정리합니다. 상태 소유권, Effect, 재사용 컴포넌트 API, 지연 목록 키, 애니메이션과 성능을 개별 UI 변경에 맞춰 살펴봅니다.

  • 화면 렌더링과 프레젠터 판단 분리
  • UI 상태를 둘 위치 정리
  • Effect 키와 코루틴 사용 검토
JetBrains/intellij-community2.1만2026년 10월 29일 업데이트

JetBrains의 스킬 모두 보기

이 스킬의 문제 신고