From backend-skills
Generates JetBrains IDE VM options for version-specific GC selection and memory/performance tuning (JDK 17/21, IDE 222+). Useful for IDE freezes, slow indexing, and OOM errors.
How this skill is triggered — by the user, by Claude, or both
Slash command
/backend-skills:jetbrains-vmoptionsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate `.vmoptions` configurations for JetBrains IDEs. Output as Markdown code blocks (one option per line, `#` comments). Do not generate files directly.
Generate .vmoptions configurations for JetBrains IDEs. Output as Markdown code blocks (one option per line, # comments). Do not generate files directly.
Read prerequisite-check.md for validation logic. IDE version determines the JDK (17 vs 21), which controls which GC collectors and flags are available. Never skip this step — wrong version means wrong recommendations.
Match the user's problem to a tuning strategy:
| User says | Primary goal | Start with |
|---|---|---|
| "freezes", "hangs", "lag", "UI stutter" | Low GC pause times | gc-options.md → ZGC/Shenandoah |
| "slow indexing", "build is slow" | Throughput | gc-options.md → G1GC/Parallel |
| "out of memory", "OOM", "large project" | Memory capacity | memory-options.md → heap sizing |
| "startup is slow" | Fast startup | common-options.md → tiered compilation |
| "general tuning", "optimize" | Balanced | All references as needed |
Read only the relevant reference files. Each reference includes flag descriptions, defaults, usage notes, and example configurations.
| File | Content | Read when |
|---|---|---|
| prerequisite-check.md | IDE version validation, JDK mapping | Always (step 1) |
| gc-options.md | GC selection and tuning flags | GC-related goals |
| memory-options.md | Heap, code cache, metaspace, large pages | Memory-related goals |
| common-options.md | Compiler, strings, diagnostics, threads | Performance/startup goals |
Show the final .vmoptions block with:
# JetBrains IDE VM Options
# IntelliJ IDEA 2024.3 (version 243, JDK 21)
# Memory
-Xms2g
-Xmx4g
# Garbage Collector: Generational ZGC
-XX:+UseZGC
-XX:+ZGenerational
# Performance
-XX:ReservedCodeCacheSize=512m
-XX:+UseStringDeduplication
-XX:SoftRefLRUPolicyMSPerMB=50
# Diagnostics
-XX:+HeapDumpOnOutOfMemoryError
-XX:CICompilerCount=2
npx claudepluginhub buyoung/skills --plugin devops-skillsProvides IntelliJ Platform SDK knowledge for writing, debugging, and migrating JetBrains IDE plugins — covers plugin.xml, services, actions, PSI/VFS, threading, custom languages, code insight, Kotlin UI DSL v2, tool windows, run configs, Gradle plugin, dynamic reload, verifier, signing, and Marketplace publishing.
Guides debugging Java applications via IntelliJ debugger: breakpoints, stepping, expression evaluation, and runtime state inspection. Includes preflight checks for MCP tool availability.
Provides expert guidance on Java 21+ features (virtual threads, pattern matching), Spring Boot 3.x, GraalVM, and cloud-native enterprise patterns.