Skip to content
intellij-plugin-builder logo

IntelliJ Plugin Builder

intellij-plugin-builder

Guide for creating IntelliJ Platform plugins using Gradle and Kotlin/Java. Use when users want to create, configure, or develop plugins for IntelliJ IDEA or other JetBrains IDEs.

SKILL.md

Full skill instructions

IntelliJ Plugin Builder

Overview

This skill provides templates, best practices, and reference documentation for building IntelliJ Platform plugins. It covers project setup, core components (Actions, Services, Listeners), and configuration using the IntelliJ Platform Gradle Plugin (2.x).

It includes the full official IntelliJ SDK documentation for offline reference.

Workflow

1. Project Setup

Use the provided initialization script to scaffold a new project with the correct structure and configuration.

python3 .claude/​skills/​intellij-plugin-builder/​scripts/​init_project.py "MyPlugin" "com.example.myplugin"

This will create:

  • A standard Gradle project structure (src/​main/​kotlin, src/​main/​resources).
  • build.gradle.kts configured with the IntelliJ Platform Gradle Plugin (2.x).
  • plugin.xml with your ID and name.
  • gradle.properties and .gitignore.

2. Core Development

Refer to references/​plugin_structure.md for details on:

  • Actions: Creating menu items and toolbar buttons.
  • Services: Managing state and logic.
  • Listeners: Reacting to IDE events.
  • Extensions: Integrating with the IDE (Tool Windows, Inspections, etc.).

3. Common Tasks & Tutorials

The skill includes the full IntelliJ SDK documentation. Here are quick links to common tasks:

  • Creating Actions: references/​intellij-sdk-docs/​topics/​tutorials/​actions_tutorial.md
  • Tool Windows: references/​intellij-sdk-docs/​topics/​basics/​plugin_structure/​plugin_tool_windows.md
  • Inspections: references/​intellij-sdk-docs/​topics/​tutorials/​code_inspections.md
  • Listeners: references/​intellij-sdk-docs/​topics/​basics/​plugin_structure/​plugin_listeners.md
  • Services: references/​intellij-sdk-docs/​topics/​basics/​plugin_structure/​plugin_services.md
  • Settings/​Config: references/​intellij-sdk-docs/​topics/​tutorials/​settings_tutorial.md

4. Building and Running

  • Run ./​gradlew runIde to start a sandbox IDE instance with your plugin installed.
  • Run ./​gradlew buildPlugin to package the plugin for distribution.
  • Run ./​gradlew test to run unit tests (JUnit 5 configured).

Resources

scripts/

  • init_project.py: Scaffolds a complete IntelliJ Plugin project structure.
  • add_action.py: Interactive script to scaffold a new Action class (Kotlin) and generate the XML registration snippet.

references/

  • plugin_structure.md: Detailed guide on project structure, key components (Actions, Services, Listeners), and Gradle configuration.
  • intellij-sdk-docs/: Full clone of the official IntelliJ SDK documentation.
    • topics/​basics/: Core concepts and architecture.
    • topics/​reference_guide/: API reference and specific features.
    • topics/​tutorials/: Step-by-step guides.

assets/

  • build.gradle.kts: A complete Gradle build script template configured for IntelliJ Plugin development (v2.x) with JUnit 5.
  • plugin.xml: A template for the plugin configuration file.
  • settings.gradle.kts: Gradle settings template.
  • gradle.properties: Standard properties for JVM and plugin versions.
  • .gitignore: Standard git ignore file for IntelliJ/​Gradle projects.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View