mps-aspect-accessories
Skill1.7k starsChanged 2 months agoApache-2.0View on GitHub
Wire MPS module and model dependencies, used languages, used devkits, extended languages, runtime solutions, accessory models, and language/dependency versions. Use when adding/removing module dependencies, importing languages or devkits into a model, declaring runtime solutions, or shipping accessory content visible to consumers without explicit import.
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-ide-pluginSkill
- 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-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
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Generator modules have their own dependency list: Add target-language deps to the generator, not the parent language.
- Very specific: line 23
Used languages auto-import: when nodes are inserted via mps_mcp_insert_root_node_from_json, mps_mcp_update_node.
- Very specific: line 28
If a concept is used in your language definition → add a usedLanguage.
- Very specific: line 29
If a Java class is referenced in hand-written code → add a dependency with the right scope.
≈ “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 Module and Model Dependencies, Accessory Models
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 the wiring layer of an MPS language — the module descriptor (.mpl) and the per-model imports — and the special role of accessory models and runtime solutions.
Note: accessory wiring does not introduce a new aspect model or stereotype; it edits the existing language descriptor and model imports. When you do need to create a new aspect or stereotyped model, see aspect-model-stereotypes.md for the canonical aspect IDs and @stereotype values.
Critical Directives
- Prefer MCP wiring tools over hand-editing
.mplXML. Hand-editing can silently corrupt the module descriptor. If you must hand-edit (e.g. foraccessoryModels, which has no dedicated MCP tool), make a backup, edit only the targeted block, and rebuild the module immediately afterwards so MPS re-reads the descriptor. - Don't hand-edit
languageVersions/dependencyVersions. These are the consumer-side stamps recording which version of another language a module was last migrated against; MPS maintains them. Use the MPS "Update language/dependency versions" action. - A language's OWN version is a different number, exposed as
languageVersionon every Language module inmps_mcp_get_project_structureand derived from the migration scripts bymps_mcp_update_module(operation = "SYNC_VERSION")(max(fromVersion) + 1, computed for you; there is no way to set it to an arbitrary value). It is the integer a migration script'sfromVersiongates on, and bothMigrationScriptandPureMigrationScriptget it from their node factory when created through a factory-running path — never set it by hand. Never hand-edit it in the.mpl, and never "fix" a migration by refreshing the consumer stamps instead — that marks the migration as already applied. See module-info-fields.md and themps-aspect-migrationsskill. - Generator modules have their own dependency list. Add target-language deps to the generator, not the parent language.
- Used languages auto-import when nodes are inserted via
mps_mcp_insert_root_node_from_json,mps_mcp_update_node. Manually add a used language only for hand-written code or implicit dependencies. - A runtime solution holds the stable part of generation (code that doesn't vary with the model). Generate thin code that calls it; don't regenerate it. No MCP tool wires the language's
<runtime>block — seereferences/runtime-solutions.md.
Rule of Thumb — Dependency vs. Used Language
- If a concept is used in your language definition → add a
usedLanguage. - If a Java class is referenced in hand-written code → add a
dependencywith the right scope.
MCP Tools Quick Reference
- Module-level:
mps_mcp_module_dependency,mps_mcp_get_project_structure. - Model-level:
mps_mcp_model_dependency,mps_mcp_model_used_language(kind =languageordevkit). - Module creation:
mps_mcp_create_module(type="solution", …)for a runtime solution.
Common Workflow
- Inspect existing wiring:
mps_mcp_get_project_structure(startingPoint=<module>)for the module descriptor,mps_mcp_get_project_structurefor traversal. - Diagnose the symptom against the pitfalls table (
references/pitfalls.md). - Apply the right MCP tool at the right layer (module vs. model vs. accessory).
- Rebuild the module so MPS re-reads the descriptor.
Related Skills
mps-language-inheritance— when you need the difference betweenextendedLanguagesandusedLanguagesin detail.mps-aspect-generator— generator-module dependencies are managed separately from the parent language.mps-language-aspects-overview— to know which aspects exist and where each one lives.
Reference Index
Start here — most common case: adding a module-level dependency, used language, extended language or devkit → read only references/module-level-deps.md; importing a language or model into one model → only references/model-level-imports.md; a concrete symptom ("Cannot resolve concept X", ClassNotFoundException, version mismatch) → only references/pitfalls.md.
- Open
references/module-level-deps.mdfor the full list of.mpldeclarations (dependencies, usedLanguages, usedDevKits, extendedLanguages, runtimeModules, generators, accessoryModels, version stamps), their scopes, and themps_mcp_module_dependencyscope-dispatch table. - Open
references/model-level-imports.mdfor per-modeldependencies, used languages, used devkits, and the auto-import behavior of node-insertion tools. - Open
references/accessory-models.mdwhen shipping a model that should be available to every consumer of the language without an explicit import — including the.mpl<accessoryModels>XML shape and the hand-edit caveat. - Open
references/runtime-solutions.mdfor runtime solutions — shipping the Java that generated programs call at run time (the generator's stable part, as MPS source or a prebuilt JAR): the Java-facet settings, the language<runtime>-block wiring, jar-as-stubs (java_classesmodel root + facet<library>), the no-MCP-tool caveat, and the Kaja/JavaKaja worked example. - Open
references/extends-vs-uses.mdfor the semantic difference betweenextendedLanguagesandusedLanguageswith examples. - Open
references/pitfalls.mdwhen you need to diagnose a symptom ("Cannot resolve concept X", "ClassNotFoundException", version mismatch, generator can't find target-language concept, devkit changes not picked up). - Open
references/module-creation.mdformps_mcp_create_module— supported types, language-only companions (withGenerator/withSandbox/withRuntime), and thefacetspolicy. - Open
references/module-rename.mdformps_mcp_update_module— what the rename cascades into, the "generator modules are not renameable" rule, and therenameWarnings/renameCriticalProblemssemantics. - Open
references/module-info-fields.mdfor the shared info envelope returned bymps_mcp_get_project_structure(startingPoint=<module>)/mps_mcp_create_module/mps_mcp_update_module—kind,facets,loadExtensions, DevKit-only fields.
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.

