Actions

From JetBrains/intellij-community · View interactive version

Actions is an AI agent skill from the GitHub repository JetBrains/intellij-community. Implement or change IntelliJ `AnAction` actions and registrations.

How to use this skill

Skill file

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

Actions

Documentation

Best Practices

actionPerformed runs synchronously with event invocation and may freeze the IDE.

1. Set the id attribute for the action in plugin.xml

2. Optionally set the icon attribute if an icon is needed

3. Set text and description in the message bundle (e.g., GitBundle.properties):

Good example:

Kotlin:

class MyAction : AnAction()

plugin.xml:

<action id="My.Action.Id"
        class="my.package.MyAction"
        icon="my.package.MyIcons.ICON"/>
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.