modelscope.cn

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.

Installation

$ npx skills add https://modelscope.cn

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from modelscope.cn · top by installs.

npx skills add https://modelscope.cn

Browse all from modelscope.cn

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,402 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

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/pluginstructure/plugintool_windows.md
  • Inspections: references/intellij-sdk-docs/topics/tutorials/code_inspections.md
  • Listeners: references/intellij-sdk-docs/topics/basics/pluginstructure/pluginlisteners.md
  • Services: references/intellij-sdk-docs/topics/basics/pluginstructure/pluginservices.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.