mps-ide-plugin
Skill1.7k starsChanged 2 months agoApache-2.0View on GitHub
Use when authoring or modifying MPS IDE plugins — code that integrates with the MPS / IntelliJ host IDE shell. Covers ActionDeclaration, ActionGroupDeclaration, ToolDeclaration/TabbedToolDeclaration (dockable tool windows), KeymapChangesDeclaration (shortcuts), PreferencesComponentDeclaration (settings pages), EditorTab+Order (concept editor tabs), InterfaceGroup (bootstrap wrappers around external groups), NonDumbAwareActions, IdeaConfigurationXml, ApplicationPluginDeclaration/ProjectPluginDeclaration/StandalonePluginDescriptor (lifecycle hooks). Uses jetbrains.mps.lang.plugin and jetbrains.mps.lang.plugin.standalone. Trigger terms: action group, tool window, menu item, MainMenu, EditorPopup, NodeActions, ModelActions, ModuleActions, ProjectViewPopupMenu, MPS plugin solution, ActionInstance, ModificationStatement, DataKey, MPSCommonDataKeys, MPSDataKeys, dumb-aware, project.tool<...>, project.preferenceComponent<...>, application plugin<...>, project plugin<...>.
Trending
Quiet since October.thin dataabout the whole repository
Who's talking about JetBrains/MPS
- mbeddr/mps-gradle-plugin“Null pointer exception on generate”GitHub · May 18, 2020 · 1 reactions
- nebojsa-vuksic/skill-atlas“Scan every repository of an organization or user”GitHub · Oct 1, 2026
- modelix/modelix.editor“Implement MPS shortcuts”GitHub · Feb 21, 2023
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository83 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- actionsSkill
- bugfix-workflowSkill
- code-styleSkill
- commitsSkill
- debuggingSkill
- mps-aspect-accessoriesSkill
- mps-aspect-actionsSkill
- mps-aspect-behaviorSkill
- mps-aspect-constraintsSkill
- mps-aspect-dataflowSkill
- mps-aspect-editor-menus-and-keymapsSkill
- mps-aspect-editorSkill
- mps-aspect-generation-planSkill
- mps-aspect-generatorSkill
- mps-aspect-intentionsSkill
- mps-aspect-migrationsSkill
- mps-aspect-structure-conceptsSkill
- mps-aspect-textgenSkill
- mps-aspect-typesystemSkill
- mps-baselanguageSkill
- mps-build-languageSkill
- mps-consoleSkill
- mps-distribution-buildSkill
- mps-dsl-memorySkill
- mps-lang-core-xmlSkill
- mps-language-analysisSkill
- mps-language-aspects-overviewSkill
- mps-language-inheritanceSkill
- mps-language-modularitySkill
- mps-mcp-workflowSkill
- mps-model-manipulationSkill
- mps-node-editingSkill
- mps-project-managementSkill
- mps-quotationsSkill
- mps-run-configurationsSkill
- mps-testsSkill
- registrySkill
- skill-optimization-studySkill
- ssrSkill
- teamcity-cliSkill
- actionsSkill
- bugfix-workflowSkill
- code-styleSkill
- commitsSkill
- debuggingSkill
- mps-aspect-accessoriesSkill
- mps-aspect-actionsSkill
- mps-aspect-behaviorSkill
- mps-aspect-constraintsSkill
- mps-aspect-dataflowSkill
- mps-aspect-editor-menus-and-keymapsSkill
- mps-aspect-editorSkill
- mps-aspect-generation-planSkill
- mps-aspect-generatorSkill
- mps-aspect-intentionsSkill
- mps-aspect-migrationsSkill
- mps-aspect-structure-conceptsSkill
- mps-aspect-textgenSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Add a model dependency on
jetbrains.mps.ide.actions: before referencing built-in groups (MainMenu, EditorPopup, NodeActions, … - Very specific: line 29
After edits, rebuild the module (mps_mcp_alter_nodes MAKE) so generated Java is current, then Reload All in MPS for hot-load.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MPS IDE Plugin Language
Loading companion skills
Companion names in this skill are lazy dependencies: load only those relevant to the current task. If this skill came from an MCP server, use the host's skill loader to resolve the companion's unique discovered entry URI on the same host-assigned originating server. If the host has no server-backed skill loader, stop and report that limitation; do not silently fall back to a filesystem copy. If this skill came from a filesystem catalog, load the named sibling from that same catalog at <skills-root>/<skill-name>/SKILL.md, even if remote skill loaders are also available. Do not invent a tool name or server endpoint.
This skill covers IDE plugins: code that integrates with the MPS/IntelliJ host IDE — menu actions, tool windows, shortcuts, settings panels. Plugin code lives in a regular Solution module (compilation mode: "Regular MPS module contributing extensions to MPS") with model(s) using jetbrains.mps.lang.plugin and jetbrains.mps.lang.plugin.standalone. The canonical model name is <solution_name>.plugin — MPS auto-registers it on that convention.
Official documentation: https://www.jetbrains.com/help/mps/plugin.html
Critical Directives
- Disambiguate the overloaded vocabulary first. "Plugin", "tool", "action group" each mean two or three different things. See
references/terminology.mdbefore naming anything. - A plugin solution is NOT an IntelliJ plugin jar. The solution contains MPS models; the jar is what the MPS Build Language packages from it. Don't conflate.
- A
Toolis a tool window — a dockable panel — not a CLI tool or an action. - Use MPS MCP tools for edits.
mps_mcp_insert_root_node_from_json,mps_mcp_update_node,mps_mcp_print_node. Resolve concept names withmps_mcp_search_concepts/mps_mcp_get_concept_details; never guess. ModificationStatement.modifiedGroupis a node reference (r:...), not a concept reference (c:...). Look up the target group viamps_mcp_search_root_node_by_nameto obtain the node ref.- Add a model dependency on
jetbrains.mps.ide.actionsbefore referencing built-in groups (MainMenu,EditorPopup,NodeActions,ModelActions,ModuleActions,MainToolbar,ProjectViewPopupMenu). - Pick
requiredAccessdeliberately:none(no model touch),read(safe traversal),command(mutates with undo + write lock — never open modal dialogs from here),editorCommand(correct undo scope for editor-driven edits). - Don't call
project.tool<…>fromdispose. The lookup can fail during teardown. - Mac keymap trap: with
Keymap = Default, MPS translatesctrl→cmdon macOS. If you specifically wantctrlon Mac, add a separateMac_OS_XKeymapChangesDeclaration. - After edits, rebuild the module (
mps_mcp_alter_nodesMAKE) so generated Java is current, then Reload All in MPS for hot-load. - Validate every new root with
mps_mcp_check_root_node_problems.
Required Used Languages (on the Model)
jetbrains.mps.lang.plugin— core concepts (Action, Group, Tool, …).jetbrains.mps.lang.plugin.standalone— ApplicationPlugin / ProjectPlugin,project.tool<...>,project.preferenceComponent<...>,StandalonePluginDescriptor.jetbrains.mps.baseLanguage(+.classifiers,.collections,.closures) — for code bodies.jetbrains.mps.lang.smodelif you touch nodes/models.jetbrains.mps.lang.resourcesfor icons.
Common-Path Workflow
For a typical "add a menu item that does X on the selected node":
- Identify the context — which IDE menu/toolbar should it appear in? (
MainMenu,EditorPopup,NodeActions,ProjectViewPopupMenu, …). - Locate the target group.
mps_mcp_search_root_node_by_namefor the group name. Inspect withmps_mcp_print_nodeto discover theGroupAnchors you can target. - Decide plugin solution location. Reuse an existing
*.pluginSolutionmodule if one fits; otherwise create a new solution and a<name>.pluginmodel with the used languages above. - Author an
ActionDeclaration— seereferences/actions.md. Set name, caption, parameters (MPSCommonDataKeys.MPS_PROJECT/.NODEetc.),requiredAccess, isApplicable, execute body. - Author an
ActionGroupDeclaration— seereferences/action-groups.md. Owns your action(s) viaElementListContents→ActionInstance. Add aModificationStatementundermodifiertargeting the existing group + an anchor. - Add a keybinding (optional) — new
KeymapChangesDeclarationreferencing the action — seereferences/keymaps.md. - Rebuild the solution via
mps_mcp_alter_nodesMAKE; reload MPS. - Validate with
mps_mcp_check_root_node_problemson each new root.
For other task families: tool window → references/tools.md; settings page → references/preferences.md; editor tabs → references/editor-tabs.md; bespoke startup → references/lifecycle-plugins.md.
Reference Examples in This Repository
Seed mps_mcp_print_node / mps_mcp_query_nodes (FIND_USAGES) with these:
| Concept | Example nodes | Model |
ActionDeclaration | ShowHelpForNode, ShowDefaultHelp, ShowHelpForRoot, ShowHelpForAspect | jetbrains.mps.lang.structure.pluginSolution.plugin |
ActionGroupDeclaration | ShowHelp (contributes to Structure and ModelActions) | jetbrains.mps.lang.structure.pluginSolution.plugin |
ToolDeclaration | TodoViewer | jetbrains.mps.ide.tools.todo |
PreferencesComponentDeclaration | BehaviorDialogsPersistentOptions | jetbrains.mps.ide.actions |
InterfaceGroup | IDEAWindows, IDEAGoTo, IDEAEdit, IDEAFile, IDEAView, IDEATools, IDEAVCS | jetbrains.mps.ide.actions |
EditorTab | Actions, Behavior, Constraints, Data Flow, Editor, Feedback, Find Usages, Generator, Intentions, Refactorings, Structure, Textgen, Typesystem | jetbrains.mps.ide.devkit.editor |
EditorTab (alt) | Run Configuration, Executor, Producer | jetbrains.mps.execution.configurations.pluginSolution.plugin |
Order (editor tabs) | Order root | jetbrains.mps.ide.devkit.editor |
Related Skills
mps-aspect-actions— node factories, unrelated to IDE actions despite the name.mps-aspect-intentions— Alt+Enter context actions inside the projectional editor.mps-aspect-editor-menus-and-keymaps— editor cell actions, substitute menus, side transforms (a different layer from the IDE shell).mps-build-language— packaging a plugin solution into a distributable MPS/IDEA plugin (the build script must copystartup.propertiesfrom the solution's resources).mps-quotations/mps-model-manipulation— writing the base-language bodies insideexecute/isApplicable/init/disposeblocks. These bodies do not already hold a model lock the way a rule or behavior body does, so open onlyreferences/concurrent-access.mdin themps-model-manipulationskill root after loading that companion skill from the same origin — thecommand/read action/execute command in EDTwrappers.mps-baselanguage— mechanics of building BaseLanguage JSON.
Reference Index
- Open
references/terminology.mdwhen starting any plugin task — disambiguates "plugin solution" vs "IntelliJ plugin",ApplicationPlugin/ProjectPluginvs the deployable jar,Tool(tool window) vs "CLI tool",ActionGroupvsBootstrapGroup/InterfaceGroup, anchor (->),EditorMenu/SubstituteMenu(different aspect), Intention (different aspect), Node Factory (different language). - Open
references/concept-catalog.mdwhen looking up a concept FQN — every rootable concept (ActionDeclaration,ActionGroupDeclaration,InterfaceGroup,ToolDeclaration,TabbedToolDeclaration,KeymapChangesDeclaration,PreferencesComponentDeclaration,EditorTab,Order,NonDumbAwareActions,IdeaConfigurationXml,IdeaInitializerDescriptor,ApplicationPluginDeclaration,ProjectPluginDeclaration,StandalonePluginDescriptor) plus every non-root concept you reference (blocks, parameters, instances, anchors, separators, keystrokes, shortcut changes, preference pages, persistent properties, etc.). - Open
references/actions.mdwhen declaring or modifying anActionDeclaration— all fields (name,caption,description,mnemonic,ID,overrides,isAlwaysVisible,requiredAccess,outsideCommandExecution,updateInBackground,fillActionContext,nativeLanguage,updateBlock,executeFunction,icon,parameter,constructionParameter,methodDeclaration,places), the two parameter kinds (ActionDataParameterDeclarationsimple-from-DataKey vsActionParameterDeclarationcomplex-typed),RequiredConditionvsisOptional, how to refer to parameters inside bodies (ActionParameterReferenceOperation/ActionDataParameterReferenceOperation), theShowHelpForNodeblueprint with typicalMPSCommonDataKeys.MPS_PROJECT+MPSCommonDataKeys.NODE, and therequiredAccesstable (none/read/command/editorCommand) with the dialog-from-commanddeadlock warning. - Open
references/action-groups.mdwhen assembling menus / toolbars / popups —ActionGroupDeclarationfields (name,caption,mnemonic,isPopup,isInvisibleWhenDisabled,isInternal,isPluginXmlGroup,updateInBackground,modifier,contents), the threecontentsvariants (ElementListContentsstatic /BuildGroupBlockonce /UpdateGroupBlockevery open),ActionGroupMemberinterface,ActionInstancewithactualParameterfor construction parameters,GroupAnchor(named slots),Separator,InterfaceExtentionPoint(bootstrap ->),ModificationStatementto plug intoMainMenu/EditorPopup/NodeActions/ etc., and theShowHelpblueprint. - Open
references/tools.mdwhen building a tool window —ToolDeclarationfields (name,caption,positionenum,isAvailableOnStartup,numberdeprecated,icondeprecated,toolIcon,getComponentBlock,toolInitBlock,toolDisposeBlock,fieldDeclaration,methodDeclaration,shortcut), the lifecycle (BaseProjectTool, init once, dispose on close, never callproject.tool<…>from dispose), retrieval viaproject.tool<MyTool>(GetToolInProjectOperation), theTodoViewerblueprint, andTabbedToolDeclarationdifferences (nogetComponentBlock, tabs added from init). - Open
references/keymaps.mdwhen adding shortcuts —KeymapChangesDeclarationfields (name,keymapenum:Default/Mac_OS_X/Mac_OS_X_Plus/XWin/GNOME/KDE,isPluginXmlKeymap,shortcutChange),SimpleShortcutChangewith action ref + orderedKeyMapKeystrokesequence (chords),KeyMapKeystrokefields (modifiersspace-separated string,keycodeJava-style likeVK_F9,changeenumreplace_all/remove), theDefault→cmd-on-Mac translation, blueprint forHelpKeymapwithCtrl-F1. - Open
references/preferences.mdwhen creating a Settings dialog page —PreferencesComponentDeclarationfields (name,persistenPropertyDeclaration,afterReadBlock,beforeWriteBlock,preferencePage),PreferencePagefields (name,helpTopic,icon,component,isModifiedBlock,resetBlock,commitBlock), how to retrieve from code (project.preferenceComponent<MyPrefs>), persistence toworkspace.xml, theMyPluginPrefsskeleton. - Open
references/editor-tabs.mdwhen adding tabs to a concept editor (e.g. the language-definition editor'sStructure/Editor/Behaviortabs) —EditorTabfields (name,shortcutChar,commandOnCreatedeprecated,baseNodeConcept,icon,orderlegacy,listenBlock,baseNodeBlock,isApplicableBlock,nodesBlock,createTabBlock),Orderroot +EditorTabReferencefor left-to-right ordering, theBehaviortab blueprint. - Open
references/interface-group.mdwhen targeting an external (IDEA / platform) action group —InterfaceGroupfields (name,groupID,contents,modifier), thegroupIDexpression pattern (IdeActions.GROUP_FILEetc.), theIDEAFileblueprint, andInterfaceExtentionPoint(bootstrap ->) for external extension-point ids inside anElementListContents. - Open
references/non-dumb-aware.mdwhen opting actions out of dumb mode —NonDumbAwareActionsroot, one per plugin model, listing actions that must not run while indexing is in progress. - Open
references/idea-configuration-xml.mdwhen the higher-level concepts can't express something —IdeaConfigurationXml(outputPath,actionschild ofIdeaActionsDescriptor) for emitting rawMETA-INF/IdeaComponents.xml. Use sparingly. - Open
references/lifecycle-plugins.mdwhen needing bespoke application or project lifecycle hooks —ApplicationPluginDeclaration(app scope) vsProjectPluginDeclaration(project scope,initBlock/disposeBlockreceiveproject),fieldDeclarationfor private state, retrieval viaapplication plugin<Name>/project plugin<Name>, theProjectPluginskeleton, when to addStandalonePluginDescriptor(model not following<solution>.pluginconvention;needInitConfigUI toggle). - Open
references/common-failures.mdwhen a plugin feature misbehaves — "Group X not found" (missingjetbrains.mps.ide.actionsdep); concept-ref-vs-node-ref confusion onmodifiedGroup; action doesn't appear (modifier missing / required param unresolved /isAlwaysVisiblenot set); deadlock when opening dialog from execute (requiredAccess = commandholds write lock — compute inputs first, thenproject.modelAccess.executeCommand { ... });TabbedToolmissinggetComponentBlock(by design); ctrl shortcut works on Win but not Mac (Defaulttranslates tocmd);constructionParameterwithouttoString()causes generated-ID collisions; IDE doesn't see edits (rebuild + Reload All).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

