JetBrains MPS is a development environment for creating domain-specific languages, which are programming languages designed for a particular field or task. It provides editors with features such as completion, semantic checks, and type checking, and can generate code in languages including Java and XML.
Borrowing it
Nothing to install: this file belongs to JetBrains/MPS. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/JetBrains/MPS/master/.agents/skills/mps-aspect-migrations/SKILL.mdgit clone --depth 1 https://github.com/JetBrains/MPSWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jetbrains/mps/mps-aspect-migrations)<a href="https://agentmods.dev/skills/jetbrains/mps/mps-aspect-migrations"><img src="https://agentmods.dev/badge/skills/jetbrains/mps/mps-aspect-migrations/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jetbrains/mps/mps-aspect-migrations"><img src="https://agentmods.dev/badge/skills/jetbrains/mps/mps-aspect-migrations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00186 | $0.02870 |
| Opus 5.5 | $0.00074 | $0.01148 |
| Sonnet 5.5 | $0.00037 | $0.00574 |
| Haiku 4.5 | $0.00019 | $0.00287 |
Grade A, and why
mps-aspect-migrations scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MPS Migrations Aspect
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.
Two complementary languages upgrade user models when language definitions change:
jetbrains.mps.lang.migration(l:90746344-04fd-4286-97d5-b46ae6a81709) — core migration language withMigrationScript(class-based, programmatic) andPureMigrationScript(declarative, structural).jetbrains.mps.lang.script(l:0eddeefa-c2d6-4437-bc2c-de50fd4ce470) — Enhancement Scripts that apply concept-instance transformations, used for richer per-node updates.
These address the same problem at different abstraction levels: lang.migration handles structural language refactorings (concept moves/renames, removed concepts); lang.script handles content transformations (modifying properties, children, references of existing instances).
Critical Directives
- Before deleting, tightening or retyping an element of a language that is published or has instances, read references/language-evolution.md. A language is published unless the user or the task says it is local. Such changes break existing models although the structure tools answer
ok:true. A published language deprecates and replaces instead, with a migration; a local one migrates its values with the Console. - Do not confuse the two
MigrationScriptconcepts. One is inlang.migration(BL ClassConcept, version-gated). The other (alias "Enhancement Script") is inlang.script(instance-level transformer). Always disambiguate by language ref. fromVersionis the version migrated FROM, not to — and both forms get it from a node factory. BothMigrationScriptandPureMigrationScripthave a node factory: creating either through a factory-running path (mps_mcp_create_root_node,mps_mcp_insert_root_node_from_json, the IDE's New root,replace with new initialized) setsfromVersionto the language's current version and bumps that version by 1 — do not setfromVersionyourself. Paths that skip factories —dryRun, copies (COPY_NODE, copy/paste,.copy),SNodeBuilder/quotations/plainnew node<>()/add new root, andupdate_root_node_from_jsonon an existing root — do not bump, so a copied script duplicates its source'sfromVersion("Multiple scripts for version N"); fix the copy'sfromVersion, thenSYNC_VERSION. The language version is never set by hand:SYNC_VERSIONderives it from the scripts, is idempotent, and is safe to repeat. Do not hand-edit the.mpl: MPS holds the descriptor in memory and would overwrite the edit.- Any "language version" mismatch from the checker or the generator →
SYNC_VERSION. The mismatch error also carries a "Set correct language version" quick fix (FixLanguageVersion), attached to the script(s) with the highestfromVersionin both directions — but it is not auto-applicable, socheck_root_node_problems(autoApplyQuickFixes = true)will not apply it; apply it explicitly withmps_mcp_apply_intentionwhen you want that route instead ofSYNC_VERSION. Duplicate or missing versions carry no quick fix:SYNC_VERSIONreports them inmigrationProblemswithout fixing them — correct the offending script'sfromVersion, then sync again. - A version change is not effective for migration execution until the language module is rebuilt. The checker compares against the descriptor, but the migration executor reads the version off the generated
LanguageRuntime, so a bumped-but-unbuilt language silently never offers the migration.SYNC_VERSIONreports this asruntimeStale: truewith aruntimeRecoveryAction(the factory's bump needs the same make); clear it withmps_mcp_alter_nodesMAKE(rebuild=true) on the language module. - The language's own version is not the
languageVersionsstamp.usedLanguages[].version/dependencyVersionsin a module descriptor record which version of another language that module was last migrated against.SYNC_VERSIONdeliberately leaves them alone — refreshing them marks pending migrations as already applied. - Model naming is convention-driven and load-bearing.
lang.migrationscripts live in<language.fqn>.migration.lang.scriptEnhancement Scripts live in<language.fqn>.scripts. MPS discovers them by these names at startup. - Migration scripts run in dependency order, determined by
OrderDependency/ExecuteAfterDeclaration. Always declare ordering when the result of one script feeds the next. - Do not hand-edit serialized
.mpsmigration files. Use MPS MCP node tools.
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/aspect-model-stereotypes.md 8.6 KB
- references/check-method.md 5.9 KB
- references/concept-ids.md 2.7 KB
- references/enhancement-scripts.md 4.4 KB
- references/find-instances.md 799 B
- references/form-selection.md 8.6 KB
- references/json-blueprints.md 8.0 KB
- references/lang-migration-reference.md 5.8 KB
- references/language-evolution.md 12 KB
- references/migration-script-body.md 8.3 KB
- references/pure-migration-parts.md 2.1 KB
- references/run-migrations.md 5.6 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago Changed · +3 lines · +41 tokens per session b869ff6f6ac9
- 11d ago Changed · +2 lines cda70559805e
- 1mo ago Changed · +9 lines 3cfaa74b3c8e
- 2mo ago First seen · 50 lines · 145 tokens per session scan A 68798358304c
mps-aspect-migrations is a skill published in the GitHub repository JetBrains/MPS (1,666 stars, last pushed yesterday), licensed Apache-2.0. It adds 186 tokens to every session and 2,870 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
mps-aspect-migrations compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mps-aspect-migrationsJetBrains/MPS | Skill | 1.7k | yesterday | Apache-2.0 | A | 186 | Claude Code, Codex |
| langiumeclipse-langium/langium-ai | Skill | 31 | 4d ago | MIT | A | 33 | Claude Code |
| lai-gen-descriptoreclipse-langium/langium-ai | Skill | 31 | 4d ago | MIT | A | 49 | Claude Code |
| lai-gen-mcpeclipse-langium/langium-ai | Skill | 31 | 4d ago | MIT | A | 43 | Claude Code |
| lai-gen-language-skilleclipse-langium/langium-ai | Skill | 31 | 4d ago | MIT | A | 33 | Claude Code |
| no-bare-castsprisma/orm | Skill | 48k | yesterday | Apache-2.0 | A | 52 | Claude Code, Codex |
| azure-resource-manager-postgresql-dotnetmicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 97 | Claude Code |