Entry point for authoring or modifying an MPS language — index of all aspects (structure, editor, constraints, behavior, typesystem, intentions, actions, generator, textgen, accessories, generation plans), the recommended authoring order, cross-aspect call patterns, dependency/rebuild rules, and validation flow. Start here when defining a new language or when you do not know which aspect-specific skill applies.
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
—
The risk profile of this skill
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.
An MPS language is a collection of aspects, each a separate model inside the language module. Together they define syntax, semantics, UI, and output. Edit each aspect through its own language (its DSL). This skill is the router; each aspect names a dedicated companion skill.
.mps XML. Hand edits can silently corrupt model files.mps-language-modularity.| Aspect | Aspect ID / Stereotype | Model file | Language DSL | Detailed skill |
|---|---|---|---|---|
| Structure | structure | models/structure.mps | jetbrains.mps.lang.structure | mps-aspect-structure-concepts |
| Editor | editor | models/editor.mps | jetbrains.mps.lang.editor | mps-aspect-editor, mps-aspect-editor-menus-and-keymaps |
| Constraints | constraints | models/constraints.mps | jetbrains.mps.lang.constraints | mps-aspect-constraints |
| Behavior | behavior | models/behavior.mps | jetbrains.mps.lang.behavior | mps-aspect-behavior |
| Typesystem & Checking | typesystem | models/typesystem.mps | jetbrains.mps.lang.typesystem | mps-aspect-typesystem |
| Intentions | intentions | models/intentions.mps | jetbrains.mps.lang.intentions | mps-aspect-intentions |
| Actions | actions | models/actions.mps | jetbrains.mps.lang.actions | mps-aspect-actions |
| Generator | @generator (stereotype) | generator/template/main@generator.mps | jetbrains.mps.lang.generator | mps-aspect-generator |
| TextGen | textGen | models/textGen.mps | jetbrains.mps.lang.textGen | mps-aspect-textgen |
| Dataflow | dataFlow (camelCase) | models/dataFlow.mps | jetbrains.mps.lang.dataFlow | mps-aspect-dataflow |
| Migrations | migration | models/migration.mps | jetbrains.mps.lang.migration | mps-aspect-migrations |
| Enhancement scripts | scripts | models/scripts.mps | jetbrains.mps.lang.script | mps-aspect-migrations |
| Find Usages | findUsages (camelCase) | models/findUsages.mps | jetbrains.mps.lang.findUsages | — |
| Refactorings | refactorings | models/refactorings.mps | jetbrains.mps.lang.refactoring | — |
| IDE plugin | plugin | models/plugin.mps | jetbrains.mps.lang.plugin | mps-ide-plugin |
| Feedback | feedback | models/feedback.mps | jetbrains.mps.lang.feedback | — |
| Accessories / Dependencies | — (no model created) | .mpl and per-model | — | mps-aspect-accessories |
| Code inside bodies | — | any aspect that holds BL | baseLanguage, smodel, collections, closures | mps-model-manipulation (smodel), mps-collections-and-closures (collections, closures) |
| Inline node literals | — | any aspect using quotations | jetbrains.mps.lang.quotation | mps-quotations |
Aspect IDs are case-sensitive and create models named <langModule>.<aspectId> with no @ suffix. Stereotypes (@generator, @genplan, @tests, @descriptor) are a separate mechanism for non-aspect models. Authoritative table with usage notes and pitfalls: aspect-model-stereotypes.md.
Additional aspects exist (Find Usages, Refactorings, Scopes Provider, Plugin). They follow the same "per-concept rule root + body" pattern — load an applicable companion skill or consult the MPS user guide when needed.
Generation Plans (cross-cutting, not an aspect of a single language) are covered by mps-aspect-generation-plan. Use when you need to control generator ordering, enable cross-model reference resolution with checkpoints, fork generation into parallel branches, or conditionally contribute plans via PlanContribution.
.mpl, ensure consumers can find everything.Most iteration is circular: structure ↔ editor ↔ constraints ↔ typesystem.
node.m(...)).error ... fix { ... } or by referencing QuickFix roots.Keep logic in behavior methods; keep aspect rules thin and declarative.
mps_mcp_get_project_structure, mps_mcp_search_concepts, mps_mcp_get_concept_details, mps_mcp_print_node.mps_mcp_create_root_node, mps_mcp_insert_root_node_from_json, mps_mcp_update_node, mps_mcp_parse_java_and_insert.mps_mcp_alter_structure (CREATE_CONCEPTS, CREATE_ENUM, UPDATE_CONCEPT_*), mps_mcp_query_structure (inheritance/aspect queries); example nodes of a concept via mps_mcp_query_nodes (FIND_INSTANCES).mps_mcp_create_module, mps_mcp_create_model, mps_mcp_model_dependency, mps_mcp_model_used_language, mps_mcp_module_dependency.mps_mcp_check_root_node_problems, language/module build via IDE MCP.After adding/changing:
MAKE, rebuild:true); runtimeReady:true means the runtime registry is fresh.mps_mcp_check_root_node_problems on edited roots / aspect models, or on the language module to sweep every aspect (and its generator) in one call — catches concept-level problems.mps_mcp_alter_nodes MAKE, rebuild:true; runtimeReady:true means MPS has reloaded it) — catches compile errors in generated descriptors.mps_mcp_check_root_node_problems, mps_mcp_query_nodes GET_TYPE, mps_mcp_query_types IS_SUBTYPE / EXPLAIN_TYPE) instead of inspecting it in the MPS UI — catches typing and checking issues; mps-aspect-typesystem Common-Path step 9 has the scratch-model recipe. Editor / usability issues still need a look in MPS.When something in a consumer is wrong, always re-check the root cause on the language side (structure / generator / typesystem) before patching generated Java.
JetBrains/MPS
2ae351c
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.