[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-jetbrains-mps-aspect-migrations":3,"mdc-2mkh22-key":32,"related-org-jetbrains-mps-aspect-migrations":843,"related-repo-jetbrains-mps-aspect-migrations":964},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":19,"repoUrl":20,"updatedAt":21,"license":22,"forks":23,"topics":24,"repo":27,"sourceUrl":30,"mdContent":31},"mps-aspect-migrations","author and debug MPS migration scripts","Use when authoring or debugging MPS migration scripts that upgrade user models after a language definition changes — covers jetbrains.mps.lang.migration (MigrationScript class-based, PureMigrationScript declarative, MoveConcept\u002FMoveContainmentLink\u002FMoveReferenceLink\u002FMoveProperty, ordering via OrderDependency, data exchange via putData\u002FgetData, RefactoringLog, ConceptMigrationReference) and jetbrains.mps.lang.script Enhancement Scripts (MigrationScript with MigrationScriptPart_Instance, ExtractInterfaceMigration, FactoryMigrationScriptPart, CommentMigrationScriptPart) — when a model needs version-gated upgrade, concept rename or removal, link or property rename, instance-level transformation, or composition of migration steps.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},"jetbrains","JetBrains","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fjetbrains.png",[12,16],{"name":13,"slug":14,"type":15},"Migration","migration","tag",{"name":17,"slug":18,"type":15},"Debugging","debugging",1650,"https:\u002F\u002Fgithub.com\u002FJetBrains\u002FMPS","2026-07-13T06:45:20.372122",null,311,[25,26],"domain-specific-language","dsl",{"repoUrl":20,"stars":19,"forks":23,"topics":28,"description":29},[25,26],"JetBrains Meta programming System","https:\u002F\u002Fgithub.com\u002FJetBrains\u002FMPS\u002Ftree\u002FHEAD\u002Fplugins\u002Fmcp-tools\u002Fresources\u002Fjetbrains\u002Fmps\u002Fagents\u002Fmcp\u002Fskills\u002Fmps-aspect-migrations","---\nname: mps-aspect-migrations\ndescription: Use when authoring or debugging MPS migration scripts that upgrade user models after a language definition changes — covers jetbrains.mps.lang.migration (MigrationScript class-based, PureMigrationScript declarative, MoveConcept\u002FMoveContainmentLink\u002FMoveReferenceLink\u002FMoveProperty, ordering via OrderDependency, data exchange via putData\u002FgetData, RefactoringLog, ConceptMigrationReference) and jetbrains.mps.lang.script Enhancement Scripts (MigrationScript with MigrationScriptPart_Instance, ExtractInterfaceMigration, FactoryMigrationScriptPart, CommentMigrationScriptPart) — when a model needs version-gated upgrade, concept rename or removal, link or property rename, instance-level transformation, or composition of migration steps.\ntype: reference\n---\n\n# MPS Migrations Aspect\n\nTwo complementary languages upgrade user models when language definitions change:\n\n- **`jetbrains.mps.lang.migration`** (`l:90746344-04fd-4286-97d5-b46ae6a81709`) — core migration language with `MigrationScript` (class-based, programmatic) and `PureMigrationScript` (declarative, structural).\n- **`jetbrains.mps.lang.script`** (`l:0eddeefa-c2d6-4437-bc2c-de50fd4ce470`) — Enhancement Scripts that apply concept-instance transformations, used for richer per-node updates.\n\nThese address the same problem at different abstraction levels: `lang.migration` handles structural language refactorings (concept moves\u002Frenames, removed concepts); `lang.script` handles content transformations (modifying properties, children, references of existing instances).\n\n## Critical Directives\n\n- **Do not confuse the two `MigrationScript` concepts.** One is in `lang.migration` (BL ClassConcept, version-gated). The other (alias \"Enhancement Script\") is in `lang.script` (instance-level transformer). Always disambiguate by language ref.\n- **`fromVersion` is the version migrated FROM**, not to. Bump the language's `version` integer in the `.mpl` solution manifest whenever you add a migration step.\n- **Model naming is convention-driven and load-bearing.** `lang.migration` scripts live in `\u003Clanguage.fqn>.migration`. `lang.script` Enhancement Scripts live in `\u003Clanguage.fqn>.scripts`. MPS discovers them by these names at startup.\n- **Migration scripts run in dependency order**, determined by `OrderDependency` \u002F `ExecuteAfterDeclaration`. Always declare ordering when the result of one script feeds the next.\n- **Do not hand-edit serialized `.mps` migration files.** Use MPS MCP node tools.\n\n## Workflow\n\n1. Decide form: `PureMigrationScript` for structural moves\u002Frenames\u002Fremovals; `MigrationScript` for programmatic transforms; Enhancement Script for instance-level updates. See [references\u002Fform-selection.md](references\u002Fform-selection.md).\n2. Create or locate the migration model with `mps_mcp_create_model`: `\u003Clanguage.fqn>.migration` for `lang.migration` (aspect ID `migration`); `\u003Clanguage.fqn>.scripts` for Enhancement Scripts (aspect ID `scripts`). Both aspect IDs are case-sensitive and carry no `@` suffix — see [aspect-model-stereotypes.md](..\u002Fmps-mcp-workflow\u002Freferences\u002Faspect-model-stereotypes.md). Add the used languages required for that form.\n3. Bump the language `version` integer in the `.mpl` and set `fromVersion` on the new script to the previous version.\n4. Build the script body (declarative parts, BL `execute()` method, or `MigrationScriptPart_Instance` updater) using the JSON blueprints in [references\u002Fjson-blueprints.md](references\u002Fjson-blueprints.md).\n5. Wire ordering (`OrderDependency` \u002F `ExecuteAfterDeclaration`) and data flow (`putData` \u002F `getData`) if needed.\n6. Validate via `mps_mcp_check_root_node_problems`, then run the migration on a test model.\n\n## Related Skills\n\n- `mps-aspect-typesystem`, `mps-aspect-constraints` — when a migration depends on or alters typesystem rules.\n- `mps-aspect-generator` — when version changes also touch generator templates.\n- `mps-quotations` — for `QuotationConsequence` consequence bodies inside `MigrationScript.execute()`.\n- `mps-model-manipulation` — BL + smodel constructs used inside `MigrationScript.execute()` and Enhancement Script updaters.\n\n## Reference Index\n\n- Form selection guide — open before authoring to pick between `PureMigrationScript`, `MigrationScript`, and Enhancement Script for the change at hand. Covers ordering, data flow, and model setup. See [references\u002Fform-selection.md](references\u002Fform-selection.md).\n- `lang.migration` concept reference — open when you need exact members, cardinalities, properties, or concept IDs for `MigrationScript`, `PureMigrationScript`, `IMigrationUnit`, ordering and data-exchange concepts, and `RefactoringLog`. See [references\u002Flang-migration-reference.md](references\u002Flang-migration-reference.md).\n- `PureMigrationPart`, node references, and move specializations — open when defining concept\u002Flink\u002Fproperty renames or composing migration units via `IncludeMigrationPart`. See [references\u002Fpure-migration-parts.md](references\u002Fpure-migration-parts.md).\n- `MigrationScript` execute-body constructs — open when writing the BL body of a programmatic `MigrationScript`: pattern variable references, `ConsequenceFunction` vs `QuotationConsequence`, `ConceptMigrationReference`. See [references\u002Fmigration-script-body.md](references\u002Fmigration-script-body.md).\n- `lang.script` Enhancement Scripts — open when iterating over concept instances to update properties\u002Fchildren\u002Freferences, or when wiring `ExtractInterfaceMigration`, `FactoryMigrationScriptPart`, or `CommentMigrationScriptPart`. See [references\u002Fenhancement-scripts.md](references\u002Fenhancement-scripts.md).\n- Verified JSON blueprints — open when constructing a real migration as JSON for MCP tools. Includes `MigrateReferences`, `SNodeTypeCastExpression_completelyRemoved`, and `Migrate_ParametrizedIntentions`. See [references\u002Fjson-blueprints.md](references\u002Fjson-blueprints.md).\n- Concept ID quick reference — open when assembling JSON that requires `conceptReference` strings for `lang.migration` and `lang.script`. See [references\u002Fconcept-ids.md](references\u002Fconcept-ids.md).\n- `FIND_INSTANCES` recipes — open to enumerate existing migration scripts or enhancement scripts in the project. See [references\u002Ffind-instances.md](references\u002Ffind-instances.md).\n",{"data":33,"body":35},{"name":4,"description":6,"type":34},"reference",{"type":36,"children":37},"root",[38,47,53,119,140,147,297,303,497,503,580,586],{"type":39,"tag":40,"props":41,"children":43},"element","h1",{"id":42},"mps-migrations-aspect",[44],{"type":45,"value":46},"text","MPS Migrations Aspect",{"type":39,"tag":48,"props":49,"children":50},"p",{},[51],{"type":45,"value":52},"Two complementary languages upgrade user models when language definitions change:",{"type":39,"tag":54,"props":55,"children":56},"ul",{},[57,98],{"type":39,"tag":58,"props":59,"children":60},"li",{},[61,72,74,80,82,88,90,96],{"type":39,"tag":62,"props":63,"children":64},"strong",{},[65],{"type":39,"tag":66,"props":67,"children":69},"code",{"className":68},[],[70],{"type":45,"value":71},"jetbrains.mps.lang.migration",{"type":45,"value":73}," (",{"type":39,"tag":66,"props":75,"children":77},{"className":76},[],[78],{"type":45,"value":79},"l:90746344-04fd-4286-97d5-b46ae6a81709",{"type":45,"value":81},") — core migration language with ",{"type":39,"tag":66,"props":83,"children":85},{"className":84},[],[86],{"type":45,"value":87},"MigrationScript",{"type":45,"value":89}," (class-based, programmatic) and ",{"type":39,"tag":66,"props":91,"children":93},{"className":92},[],[94],{"type":45,"value":95},"PureMigrationScript",{"type":45,"value":97}," (declarative, structural).",{"type":39,"tag":58,"props":99,"children":100},{},[101,110,111,117],{"type":39,"tag":62,"props":102,"children":103},{},[104],{"type":39,"tag":66,"props":105,"children":107},{"className":106},[],[108],{"type":45,"value":109},"jetbrains.mps.lang.script",{"type":45,"value":73},{"type":39,"tag":66,"props":112,"children":114},{"className":113},[],[115],{"type":45,"value":116},"l:0eddeefa-c2d6-4437-bc2c-de50fd4ce470",{"type":45,"value":118},") — Enhancement Scripts that apply concept-instance transformations, used for richer per-node updates.",{"type":39,"tag":48,"props":120,"children":121},{},[122,124,130,132,138],{"type":45,"value":123},"These address the same problem at different abstraction levels: ",{"type":39,"tag":66,"props":125,"children":127},{"className":126},[],[128],{"type":45,"value":129},"lang.migration",{"type":45,"value":131}," handles structural language refactorings (concept moves\u002Frenames, removed concepts); ",{"type":39,"tag":66,"props":133,"children":135},{"className":134},[],[136],{"type":45,"value":137},"lang.script",{"type":45,"value":139}," handles content transformations (modifying properties, children, references of existing instances).",{"type":39,"tag":141,"props":142,"children":144},"h2",{"id":143},"critical-directives",[145],{"type":45,"value":146},"Critical Directives",{"type":39,"tag":54,"props":148,"children":149},{},[150,181,213,253,279],{"type":39,"tag":58,"props":151,"children":152},{},[153,165,167,172,174,179],{"type":39,"tag":62,"props":154,"children":155},{},[156,158,163],{"type":45,"value":157},"Do not confuse the two ",{"type":39,"tag":66,"props":159,"children":161},{"className":160},[],[162],{"type":45,"value":87},{"type":45,"value":164}," concepts.",{"type":45,"value":166}," One is in ",{"type":39,"tag":66,"props":168,"children":170},{"className":169},[],[171],{"type":45,"value":129},{"type":45,"value":173}," (BL ClassConcept, version-gated). The other (alias \"Enhancement Script\") is in ",{"type":39,"tag":66,"props":175,"children":177},{"className":176},[],[178],{"type":45,"value":137},{"type":45,"value":180}," (instance-level transformer). Always disambiguate by language ref.",{"type":39,"tag":58,"props":182,"children":183},{},[184,195,197,203,205,211],{"type":39,"tag":62,"props":185,"children":186},{},[187,193],{"type":39,"tag":66,"props":188,"children":190},{"className":189},[],[191],{"type":45,"value":192},"fromVersion",{"type":45,"value":194}," is the version migrated FROM",{"type":45,"value":196},", not to. Bump the language's ",{"type":39,"tag":66,"props":198,"children":200},{"className":199},[],[201],{"type":45,"value":202},"version",{"type":45,"value":204}," integer in the ",{"type":39,"tag":66,"props":206,"children":208},{"className":207},[],[209],{"type":45,"value":210},".mpl",{"type":45,"value":212}," solution manifest whenever you add a migration step.",{"type":39,"tag":58,"props":214,"children":215},{},[216,221,223,228,230,236,238,243,245,251],{"type":39,"tag":62,"props":217,"children":218},{},[219],{"type":45,"value":220},"Model naming is convention-driven and load-bearing.",{"type":45,"value":222}," ",{"type":39,"tag":66,"props":224,"children":226},{"className":225},[],[227],{"type":45,"value":129},{"type":45,"value":229}," scripts live in ",{"type":39,"tag":66,"props":231,"children":233},{"className":232},[],[234],{"type":45,"value":235},"\u003Clanguage.fqn>.migration",{"type":45,"value":237},". ",{"type":39,"tag":66,"props":239,"children":241},{"className":240},[],[242],{"type":45,"value":137},{"type":45,"value":244}," Enhancement Scripts live in ",{"type":39,"tag":66,"props":246,"children":248},{"className":247},[],[249],{"type":45,"value":250},"\u003Clanguage.fqn>.scripts",{"type":45,"value":252},". MPS discovers them by these names at startup.",{"type":39,"tag":58,"props":254,"children":255},{},[256,261,263,269,271,277],{"type":39,"tag":62,"props":257,"children":258},{},[259],{"type":45,"value":260},"Migration scripts run in dependency order",{"type":45,"value":262},", determined by ",{"type":39,"tag":66,"props":264,"children":266},{"className":265},[],[267],{"type":45,"value":268},"OrderDependency",{"type":45,"value":270}," \u002F ",{"type":39,"tag":66,"props":272,"children":274},{"className":273},[],[275],{"type":45,"value":276},"ExecuteAfterDeclaration",{"type":45,"value":278},". Always declare ordering when the result of one script feeds the next.",{"type":39,"tag":58,"props":280,"children":281},{},[282,295],{"type":39,"tag":62,"props":283,"children":284},{},[285,287,293],{"type":45,"value":286},"Do not hand-edit serialized ",{"type":39,"tag":66,"props":288,"children":290},{"className":289},[],[291],{"type":45,"value":292},".mps",{"type":45,"value":294}," migration files.",{"type":45,"value":296}," Use MPS MCP node tools.",{"type":39,"tag":141,"props":298,"children":300},{"id":299},"workflow",[301],{"type":45,"value":302},"Workflow",{"type":39,"tag":304,"props":305,"children":306},"ol",{},[307,334,399,424,451,484],{"type":39,"tag":58,"props":308,"children":309},{},[310,312,317,319,324,326,332],{"type":45,"value":311},"Decide form: ",{"type":39,"tag":66,"props":313,"children":315},{"className":314},[],[316],{"type":45,"value":95},{"type":45,"value":318}," for structural moves\u002Frenames\u002Fremovals; ",{"type":39,"tag":66,"props":320,"children":322},{"className":321},[],[323],{"type":45,"value":87},{"type":45,"value":325}," for programmatic transforms; Enhancement Script for instance-level updates. See ",{"type":39,"tag":327,"props":328,"children":330},"a",{"href":329},"references\u002Fform-selection.md",[331],{"type":45,"value":329},{"type":45,"value":333},".",{"type":39,"tag":58,"props":335,"children":336},{},[337,339,345,347,352,354,359,361,366,368,373,375,381,383,389,391,397],{"type":45,"value":338},"Create or locate the migration model with ",{"type":39,"tag":66,"props":340,"children":342},{"className":341},[],[343],{"type":45,"value":344},"mps_mcp_create_model",{"type":45,"value":346},": ",{"type":39,"tag":66,"props":348,"children":350},{"className":349},[],[351],{"type":45,"value":235},{"type":45,"value":353}," for ",{"type":39,"tag":66,"props":355,"children":357},{"className":356},[],[358],{"type":45,"value":129},{"type":45,"value":360}," (aspect ID ",{"type":39,"tag":66,"props":362,"children":364},{"className":363},[],[365],{"type":45,"value":14},{"type":45,"value":367},"); ",{"type":39,"tag":66,"props":369,"children":371},{"className":370},[],[372],{"type":45,"value":250},{"type":45,"value":374}," for Enhancement Scripts (aspect ID ",{"type":39,"tag":66,"props":376,"children":378},{"className":377},[],[379],{"type":45,"value":380},"scripts",{"type":45,"value":382},"). Both aspect IDs are case-sensitive and carry no ",{"type":39,"tag":66,"props":384,"children":386},{"className":385},[],[387],{"type":45,"value":388},"@",{"type":45,"value":390}," suffix — see ",{"type":39,"tag":327,"props":392,"children":394},{"href":393},"..\u002Fmps-mcp-workflow\u002Freferences\u002Faspect-model-stereotypes.md",[395],{"type":45,"value":396},"aspect-model-stereotypes.md",{"type":45,"value":398},". Add the used languages required for that form.",{"type":39,"tag":58,"props":400,"children":401},{},[402,404,409,410,415,417,422],{"type":45,"value":403},"Bump the language ",{"type":39,"tag":66,"props":405,"children":407},{"className":406},[],[408],{"type":45,"value":202},{"type":45,"value":204},{"type":39,"tag":66,"props":411,"children":413},{"className":412},[],[414],{"type":45,"value":210},{"type":45,"value":416}," and set ",{"type":39,"tag":66,"props":418,"children":420},{"className":419},[],[421],{"type":45,"value":192},{"type":45,"value":423}," on the new script to the previous version.",{"type":39,"tag":58,"props":425,"children":426},{},[427,429,435,437,443,445,450],{"type":45,"value":428},"Build the script body (declarative parts, BL ",{"type":39,"tag":66,"props":430,"children":432},{"className":431},[],[433],{"type":45,"value":434},"execute()",{"type":45,"value":436}," method, or ",{"type":39,"tag":66,"props":438,"children":440},{"className":439},[],[441],{"type":45,"value":442},"MigrationScriptPart_Instance",{"type":45,"value":444}," updater) using the JSON blueprints in ",{"type":39,"tag":327,"props":446,"children":448},{"href":447},"references\u002Fjson-blueprints.md",[449],{"type":45,"value":447},{"type":45,"value":333},{"type":39,"tag":58,"props":452,"children":453},{},[454,456,461,462,467,469,475,476,482],{"type":45,"value":455},"Wire ordering (",{"type":39,"tag":66,"props":457,"children":459},{"className":458},[],[460],{"type":45,"value":268},{"type":45,"value":270},{"type":39,"tag":66,"props":463,"children":465},{"className":464},[],[466],{"type":45,"value":276},{"type":45,"value":468},") and data flow (",{"type":39,"tag":66,"props":470,"children":472},{"className":471},[],[473],{"type":45,"value":474},"putData",{"type":45,"value":270},{"type":39,"tag":66,"props":477,"children":479},{"className":478},[],[480],{"type":45,"value":481},"getData",{"type":45,"value":483},") if needed.",{"type":39,"tag":58,"props":485,"children":486},{},[487,489,495],{"type":45,"value":488},"Validate via ",{"type":39,"tag":66,"props":490,"children":492},{"className":491},[],[493],{"type":45,"value":494},"mps_mcp_check_root_node_problems",{"type":45,"value":496},", then run the migration on a test model.",{"type":39,"tag":141,"props":498,"children":500},{"id":499},"related-skills",[501],{"type":45,"value":502},"Related Skills",{"type":39,"tag":54,"props":504,"children":505},{},[506,525,536,562],{"type":39,"tag":58,"props":507,"children":508},{},[509,515,517,523],{"type":39,"tag":66,"props":510,"children":512},{"className":511},[],[513],{"type":45,"value":514},"mps-aspect-typesystem",{"type":45,"value":516},", ",{"type":39,"tag":66,"props":518,"children":520},{"className":519},[],[521],{"type":45,"value":522},"mps-aspect-constraints",{"type":45,"value":524}," — when a migration depends on or alters typesystem rules.",{"type":39,"tag":58,"props":526,"children":527},{},[528,534],{"type":39,"tag":66,"props":529,"children":531},{"className":530},[],[532],{"type":45,"value":533},"mps-aspect-generator",{"type":45,"value":535}," — when version changes also touch generator templates.",{"type":39,"tag":58,"props":537,"children":538},{},[539,545,547,553,555,561],{"type":39,"tag":66,"props":540,"children":542},{"className":541},[],[543],{"type":45,"value":544},"mps-quotations",{"type":45,"value":546}," — for ",{"type":39,"tag":66,"props":548,"children":550},{"className":549},[],[551],{"type":45,"value":552},"QuotationConsequence",{"type":45,"value":554}," consequence bodies inside ",{"type":39,"tag":66,"props":556,"children":558},{"className":557},[],[559],{"type":45,"value":560},"MigrationScript.execute()",{"type":45,"value":333},{"type":39,"tag":58,"props":563,"children":564},{},[565,571,573,578],{"type":39,"tag":66,"props":566,"children":568},{"className":567},[],[569],{"type":45,"value":570},"mps-model-manipulation",{"type":45,"value":572}," — BL + smodel constructs used inside ",{"type":39,"tag":66,"props":574,"children":576},{"className":575},[],[577],{"type":45,"value":560},{"type":45,"value":579}," and Enhancement Script updaters.",{"type":39,"tag":141,"props":581,"children":583},{"id":582},"reference-index",[584],{"type":45,"value":585},"Reference Index",{"type":39,"tag":54,"props":587,"children":588},{},[589,612,656,680,724,762,794,826],{"type":39,"tag":58,"props":590,"children":591},{},[592,594,599,600,605,607,611],{"type":45,"value":593},"Form selection guide — open before authoring to pick between ",{"type":39,"tag":66,"props":595,"children":597},{"className":596},[],[598],{"type":45,"value":95},{"type":45,"value":516},{"type":39,"tag":66,"props":601,"children":603},{"className":602},[],[604],{"type":45,"value":87},{"type":45,"value":606},", and Enhancement Script for the change at hand. Covers ordering, data flow, and model setup. See ",{"type":39,"tag":327,"props":608,"children":609},{"href":329},[610],{"type":45,"value":329},{"type":45,"value":333},{"type":39,"tag":58,"props":613,"children":614},{},[615,620,622,627,628,633,634,640,642,648,650,655],{"type":39,"tag":66,"props":616,"children":618},{"className":617},[],[619],{"type":45,"value":129},{"type":45,"value":621}," concept reference — open when you need exact members, cardinalities, properties, or concept IDs for ",{"type":39,"tag":66,"props":623,"children":625},{"className":624},[],[626],{"type":45,"value":87},{"type":45,"value":516},{"type":39,"tag":66,"props":629,"children":631},{"className":630},[],[632],{"type":45,"value":95},{"type":45,"value":516},{"type":39,"tag":66,"props":635,"children":637},{"className":636},[],[638],{"type":45,"value":639},"IMigrationUnit",{"type":45,"value":641},", ordering and data-exchange concepts, and ",{"type":39,"tag":66,"props":643,"children":645},{"className":644},[],[646],{"type":45,"value":647},"RefactoringLog",{"type":45,"value":649},". See ",{"type":39,"tag":327,"props":651,"children":653},{"href":652},"references\u002Flang-migration-reference.md",[654],{"type":45,"value":652},{"type":45,"value":333},{"type":39,"tag":58,"props":657,"children":658},{},[659,665,667,673,674,679],{"type":39,"tag":66,"props":660,"children":662},{"className":661},[],[663],{"type":45,"value":664},"PureMigrationPart",{"type":45,"value":666},", node references, and move specializations — open when defining concept\u002Flink\u002Fproperty renames or composing migration units via ",{"type":39,"tag":66,"props":668,"children":670},{"className":669},[],[671],{"type":45,"value":672},"IncludeMigrationPart",{"type":45,"value":649},{"type":39,"tag":327,"props":675,"children":677},{"href":676},"references\u002Fpure-migration-parts.md",[678],{"type":45,"value":676},{"type":45,"value":333},{"type":39,"tag":58,"props":681,"children":682},{},[683,688,690,695,697,703,705,710,711,717,718,723],{"type":39,"tag":66,"props":684,"children":686},{"className":685},[],[687],{"type":45,"value":87},{"type":45,"value":689}," execute-body constructs — open when writing the BL body of a programmatic ",{"type":39,"tag":66,"props":691,"children":693},{"className":692},[],[694],{"type":45,"value":87},{"type":45,"value":696},": pattern variable references, ",{"type":39,"tag":66,"props":698,"children":700},{"className":699},[],[701],{"type":45,"value":702},"ConsequenceFunction",{"type":45,"value":704}," vs ",{"type":39,"tag":66,"props":706,"children":708},{"className":707},[],[709],{"type":45,"value":552},{"type":45,"value":516},{"type":39,"tag":66,"props":712,"children":714},{"className":713},[],[715],{"type":45,"value":716},"ConceptMigrationReference",{"type":45,"value":649},{"type":39,"tag":327,"props":719,"children":721},{"href":720},"references\u002Fmigration-script-body.md",[722],{"type":45,"value":720},{"type":45,"value":333},{"type":39,"tag":58,"props":725,"children":726},{},[727,732,734,740,741,747,749,755,756,761],{"type":39,"tag":66,"props":728,"children":730},{"className":729},[],[731],{"type":45,"value":137},{"type":45,"value":733}," Enhancement Scripts — open when iterating over concept instances to update properties\u002Fchildren\u002Freferences, or when wiring ",{"type":39,"tag":66,"props":735,"children":737},{"className":736},[],[738],{"type":45,"value":739},"ExtractInterfaceMigration",{"type":45,"value":516},{"type":39,"tag":66,"props":742,"children":744},{"className":743},[],[745],{"type":45,"value":746},"FactoryMigrationScriptPart",{"type":45,"value":748},", or ",{"type":39,"tag":66,"props":750,"children":752},{"className":751},[],[753],{"type":45,"value":754},"CommentMigrationScriptPart",{"type":45,"value":649},{"type":39,"tag":327,"props":757,"children":759},{"href":758},"references\u002Fenhancement-scripts.md",[760],{"type":45,"value":758},{"type":45,"value":333},{"type":39,"tag":58,"props":763,"children":764},{},[765,767,773,774,780,782,788,789,793],{"type":45,"value":766},"Verified JSON blueprints — open when constructing a real migration as JSON for MCP tools. Includes ",{"type":39,"tag":66,"props":768,"children":770},{"className":769},[],[771],{"type":45,"value":772},"MigrateReferences",{"type":45,"value":516},{"type":39,"tag":66,"props":775,"children":777},{"className":776},[],[778],{"type":45,"value":779},"SNodeTypeCastExpression_completelyRemoved",{"type":45,"value":781},", and ",{"type":39,"tag":66,"props":783,"children":785},{"className":784},[],[786],{"type":45,"value":787},"Migrate_ParametrizedIntentions",{"type":45,"value":649},{"type":39,"tag":327,"props":790,"children":791},{"href":447},[792],{"type":45,"value":447},{"type":45,"value":333},{"type":39,"tag":58,"props":795,"children":796},{},[797,799,805,807,812,814,819,820,825],{"type":45,"value":798},"Concept ID quick reference — open when assembling JSON that requires ",{"type":39,"tag":66,"props":800,"children":802},{"className":801},[],[803],{"type":45,"value":804},"conceptReference",{"type":45,"value":806}," strings for ",{"type":39,"tag":66,"props":808,"children":810},{"className":809},[],[811],{"type":45,"value":129},{"type":45,"value":813}," and ",{"type":39,"tag":66,"props":815,"children":817},{"className":816},[],[818],{"type":45,"value":137},{"type":45,"value":649},{"type":39,"tag":327,"props":821,"children":823},{"href":822},"references\u002Fconcept-ids.md",[824],{"type":45,"value":822},{"type":45,"value":333},{"type":39,"tag":58,"props":827,"children":828},{},[829,835,837,842],{"type":39,"tag":66,"props":830,"children":832},{"className":831},[],[833],{"type":45,"value":834},"FIND_INSTANCES",{"type":45,"value":836}," recipes — open to enumerate existing migration scripts or enhancement scripts in the project. See ",{"type":39,"tag":327,"props":838,"children":840},{"href":839},"references\u002Ffind-instances.md",[841],{"type":45,"value":839},{"type":45,"value":333},{"items":844,"total":963},[845,861,870,879,889,899,912,921,930,939,948,953],{"slug":846,"name":846,"fn":847,"description":848,"org":849,"tags":850,"stars":19,"repoUrl":20,"updatedAt":860},"mps-aspect-accessories","configure JetBrains MPS module dependencies","Wire MPS module and model dependencies, used languages, used devkits, extended languages, runtime solutions, accessory models, and language\u002Fdependency versions. Use when adding\u002Fremoving module dependencies, importing languages or devkits into a model, declaring runtime solutions, or shipping accessory content visible to consumers without explicit import.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[851,854,857],{"name":852,"slug":853,"type":15},"Architecture","architecture",{"name":855,"slug":856,"type":15},"Configuration","configuration",{"name":858,"slug":859,"type":15},"Engineering","engineering","2026-07-17T06:06:57.311661",{"slug":862,"name":862,"fn":863,"description":864,"org":865,"tags":866,"stars":19,"repoUrl":20,"updatedAt":869},"mps-aspect-actions","define and edit MPS node factories","Use when defining or editing MPS node factories (the \"actions\" aspect) — `NodeFactories` roots, per-concept `NodeFactory` setup functions that initialize a freshly created node and optionally copy data from a replaced `sampleNode`, plus the actions aspect's `CopyPasteHandlers` and `PasteWrappers` roots. Reach for this skill when a substitution, side transform, completion replacement, or `add new initialized(...)` should preserve fields from the node it is replacing, or when defaults set in a constructor are not enough.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[867,868],{"name":852,"slug":853,"type":15},{"name":858,"slug":859,"type":15},"2026-07-17T06:04:48.066901",{"slug":871,"name":871,"fn":872,"description":873,"org":874,"tags":875,"stars":19,"repoUrl":20,"updatedAt":878},"mps-aspect-behavior","define and edit MPS concept behavior","Use when defining or editing MPS `ConceptBehavior` — per-concept methods (non-virtual \u002F virtual \u002F abstract \u002F static \u002F virtual static), constructors, virtual dispatch (MRO), super and interface-default calls (`super\u003CInterface>.method`), overriding methods from `lang.core.behavior` interfaces such as `ScopeProvider.getScope` \u002F `INamedConcept.getName` \u002F `BaseConcept.getPresentation`, calling sibling methods (`LocalBehaviorMethodCall`) and behavior methods from other aspects via `node.method(...)`. Reach for this skill whenever the task involves authoring or modifying `\u003Clang>\u002FlanguageModels\u002Fbehavior.mps`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[876,877],{"name":852,"slug":853,"type":15},{"name":858,"slug":859,"type":15},"2026-07-13T06:45:21.757084",{"slug":522,"name":522,"fn":880,"description":881,"org":882,"tags":883,"stars":19,"repoUrl":20,"updatedAt":888},"define JetBrains MPS language constraints","Use when defining or editing MPS language constraints — property validators \u002F setters \u002F getters, referent search scopes (imperative or inherited via `ScopeProvider.getScope`), `referentSetHandler` side effects, default-scope blocks, `canBeChild` \u002F `canBeParent` \u002F `canBeAncestor` \u002F `canBeRoot` placement rules, `defaultConcreteConcept` for abstract concepts, `set \u003Cread-only>` and `{name}` aliasing, and scope helpers (`SimpleRoleScope`, `ListScope`, `CompositeScope`, `HidingByNameScope`). Reach for this skill whenever the task involves authoring or modifying `\u003Clang>\u002FlanguageModels\u002Fconstraints.mps`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[884,885],{"name":852,"slug":853,"type":15},{"name":886,"slug":887,"type":15},"Code Analysis","code-analysis","2026-07-23T05:41:33.639365",{"slug":890,"name":890,"fn":891,"description":892,"org":893,"tags":894,"stars":19,"repoUrl":20,"updatedAt":898},"mps-aspect-dataflow","define and debug MPS dataflow builders","Use when defining or debugging MPS dataflow builders for a concept — control\u002Fdata flow declarations that drive reachability analysis and variable-use checking. Covers DataFlowBuilderDeclaration, BuilderBlock, emit instructions (code for, jump, ifjump, label, read, write, ret, mayBeUnreachable), positions (AfterPosition, BeforePosition, LabelPosition), the jetbrains.mps.lang.dataFlow language, the NodeParameter implicit, BL+smodel usage inside builder bodies, and IBuilderMode for advanced analyses such as nullable\u002Fnon-null tracking.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[895],{"name":896,"slug":897,"type":15},"Data Analysis","data-analysis","2026-07-13T06:45:19.114674",{"slug":900,"name":900,"fn":901,"description":902,"org":903,"tags":904,"stars":19,"repoUrl":20,"updatedAt":911},"mps-aspect-editor","define MPS editor layouts","Use when creating or changing MPS editor definitions — the overall workflow from scaffolding a `ConceptEditorDeclaration` through componentizing reusable `EditorComponentDeclaration`s, refining cell models and cell layouts, applying style sheets and indent-layout style items, wiring smart references, leveraging inheritance via super-concepts and interfaces, inspecting (`print_node_json`, `show_node_representation`) and validating (`check_root_node_problems`). Covers `jetbrains.mps.lang.editor` cell models (`CellModel_RefNode`\u002F`CellModel_RefNodeList`\u002F`CellModel_RefCell`\u002F`CellModel_Property`\u002F`CellModel_Constant`), layout choices, and JSON blueprints for common editor shapes. For the non-layout side (action maps, keymaps, transformation\u002Fsubstitute menus) use `mps-aspect-editor-menus-and-keymaps`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[905,908],{"name":906,"slug":907,"type":15},"Design","design",{"name":909,"slug":910,"type":15},"UI Components","ui-components","2026-07-23T05:41:56.638151",{"slug":913,"name":913,"fn":914,"description":915,"org":916,"tags":917,"stars":19,"repoUrl":20,"updatedAt":920},"mps-aspect-editor-menus-and-keymaps","author MPS editor menus and keymaps","Use when authoring the **non-layout** parts of the MPS editor aspect — what happens when the user types, presses a key, triggers completion, pastes, or invokes a context action. Covers action maps (`CellActionMapDeclaration`), cell keymaps (`CellKeyMapDeclaration`), transformation menus (`TransformationMenu_Default` \u002F `_Named` \u002F `_Contribution`), substitute menus (`SubstituteMenu_Default` \u002F `SubstituteMenu` \u002F contributions), side transforms (LEFT\u002FRIGHT), legacy cell menus, paste wrappers and copy-paste handlers (in the actions language), completion styling, reference presentation, two-step deletion, and the editor selection API. Trigger terms: `actionMap`, `keyMap`, `delete_action_id`, `transformationMenu`, `substituteMenu`, `Ctrl+Space`, `Ctrl+Alt+B`, side transform, paste wrapper, completion styling, `PasteWrappers`, `CopyPasteHandlers`. For the **layout** side (cells, layouts, style sheets) use `mps-aspect-editor` instead.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[918,919],{"name":858,"slug":859,"type":15},{"name":909,"slug":910,"type":15},"2026-07-23T05:41:49.666535",{"slug":922,"name":922,"fn":923,"description":924,"org":925,"tags":926,"stars":19,"repoUrl":20,"updatedAt":929},"mps-aspect-generation-plan","modify MPS generation plans","Use when defining or modifying an MPS generation plan — explicit ordering of generators, checkpoints for cross-model reference resolution, forks for parallel branches, IncludePlan composition, conditional PlanContribution activation, ParameterEquals\u002FConceptListSelector fork selectors, and InitModelAttributes for targetFacet routing. Apply when working with @genplan models, the jetbrains.mps.lang.generator.plan language, attaching plans via DevKits or the Custom generation facet, or debugging cross-model mapping label resolution.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[927,928],{"name":852,"slug":853,"type":15},{"name":858,"slug":859,"type":15},"2026-07-13T06:44:59.507855",{"slug":533,"name":533,"fn":931,"description":932,"org":933,"tags":934,"stars":19,"repoUrl":20,"updatedAt":938},"define JetBrains MPS generator rules","Use when defining or modifying MPS generators — author a generator module, add or edit root\u002Freduction\u002Fweaving\u002Fpattern mapping rules, attach template macros ($COPY_SRC, $LOOP, $IF, $PROPERTY, $REF, $SWITCH, $MAP_SRC, $WEAVE, $INSERT, $LABEL, $TRACE, $VAR), wire mapping labels, build template switches, write pre\u002Fpost mapping scripts, navigate `genContext`, or debug \"rule didn't fire\", missing references, empty output, infinite reduction loops, and generated-Java compile failures.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[935,936,937],{"name":852,"slug":853,"type":15},{"name":886,"slug":887,"type":15},{"name":858,"slug":859,"type":15},"2026-07-17T06:06:58.042999",{"slug":940,"name":940,"fn":941,"description":942,"org":943,"tags":944,"stars":19,"repoUrl":20,"updatedAt":947},"mps-aspect-intentions","define and edit MPS intentions","Use when defining or editing MPS intentions (the Alt+Enter context-action aspect) — adding `IntentionDeclaration` roots, parameterized or surround-with variants, description\u002FisApplicable\u002Fexecute blocks, child-filter functions, factory-initialized AST splicing, or debugging why an intention is not offered. Lives in the language's `intentions` model and uses `jetbrains.mps.lang.intentions`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[945,946],{"name":852,"slug":853,"type":15},{"name":858,"slug":859,"type":15},"2026-07-23T05:41:48.692899",{"slug":4,"name":4,"fn":5,"description":6,"org":949,"tags":950,"stars":19,"repoUrl":20,"updatedAt":21},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[951,952],{"name":17,"slug":18,"type":15},{"name":13,"slug":14,"type":15},{"slug":954,"name":954,"fn":955,"description":956,"org":957,"tags":958,"stars":19,"repoUrl":20,"updatedAt":962},"mps-aspect-structure-concepts","define concepts in MPS structure aspect","Define concepts, interface concepts, enumerations, and constrained data types in an MPS language's `structure` aspect. Covers smart-reference detection, alias rules, cardinality, INamedConcept usage, bulk creation, and the full `mps_mcp_alter_structure` \u002F `mps_mcp_query_structure` reference. Use when authoring or modifying a language's structure model.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[959],{"name":960,"slug":961,"type":15},"Data Modeling","data-modeling","2026-07-23T05:41:30.705975",188,{"items":965,"total":1001},[966,972,977,982,987,991,996],{"slug":846,"name":846,"fn":847,"description":848,"org":967,"tags":968,"stars":19,"repoUrl":20,"updatedAt":860},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[969,970,971],{"name":852,"slug":853,"type":15},{"name":855,"slug":856,"type":15},{"name":858,"slug":859,"type":15},{"slug":862,"name":862,"fn":863,"description":864,"org":973,"tags":974,"stars":19,"repoUrl":20,"updatedAt":869},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[975,976],{"name":852,"slug":853,"type":15},{"name":858,"slug":859,"type":15},{"slug":871,"name":871,"fn":872,"description":873,"org":978,"tags":979,"stars":19,"repoUrl":20,"updatedAt":878},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[980,981],{"name":852,"slug":853,"type":15},{"name":858,"slug":859,"type":15},{"slug":522,"name":522,"fn":880,"description":881,"org":983,"tags":984,"stars":19,"repoUrl":20,"updatedAt":888},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[985,986],{"name":852,"slug":853,"type":15},{"name":886,"slug":887,"type":15},{"slug":890,"name":890,"fn":891,"description":892,"org":988,"tags":989,"stars":19,"repoUrl":20,"updatedAt":898},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[990],{"name":896,"slug":897,"type":15},{"slug":900,"name":900,"fn":901,"description":902,"org":992,"tags":993,"stars":19,"repoUrl":20,"updatedAt":911},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[994,995],{"name":906,"slug":907,"type":15},{"name":909,"slug":910,"type":15},{"slug":913,"name":913,"fn":914,"description":915,"org":997,"tags":998,"stars":19,"repoUrl":20,"updatedAt":920},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[999,1000],{"name":858,"slug":859,"type":15},{"name":909,"slug":910,"type":15},31]