JetBrains/intellij-community / .agents/skills/actions
actions
VerifiedImplement or change IntelliJ `AnAction` actions and registrations.
SKILL.md
View on GitHub---
name: actions
description: Implement or change IntelliJ `AnAction` actions and registrations.
---
# Actions
Guidelines for implementing IntelliJ actions (`AnAction`).
## Documentation
- [Action System](../../../../docs/IntelliJ-Platform/4_man/Action-System.md) - Architecture and usage of the action system
## Best Practices
- **NEVER instantiate Presentation in action constructors** - Use no-argument constructors
- **Define text, description, and icon in plugin.xml** - Not in constructor parameters
- **Use AnActionEvent#getCoroutineScope** for launching suspending computations -
actionPerformed runs synchronously with event invocation and may freeze the IDE.
- **Follow the convention:**
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):
- `action.<action-id>.text=Translated Action Text`
- `action.<action-id>.description=Translated Action Description`
**Good example:**
Kotlin:
```kotlin
class MyAction : AnAction()
```
plugin.xml:
```xml
<action id="My.Action.Id"
class="my.package.MyAction"
icon="my.package.MyIcons.ICON"/>
```
Bundle.properties:
```properties
action.My.Action.Id.text=My Action
action.My.Action.Id.description=Description of my action
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |