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.svg" alt="Measured on agentmods" 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.00145 | $0.01369 |
| Opus 5 | $0.00072 | $0.00685 |
| Sonnet 5 | $0.00029 | $0.00274 |
| Haiku 4.5 | $0.00015 | $0.00137 |
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 8d 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 — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MPS Migrations Aspect
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
- 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. Bump the language'sversioninteger in the.mplsolution manifest whenever you add a migration step.- 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.
Workflow
- Decide form:
PureMigrationScriptfor structural moves/renames/removals;MigrationScriptfor programmatic transforms; Enhancement Script for instance-level updates. See references/form-selection.md. - Create or locate the migration model with
mps_mcp_create_model:<language.fqn>.migrationforlang.migration(aspect IDmigration);<language.fqn>.scriptsfor Enhancement Scripts (aspect IDscripts). Both aspect IDs are case-sensitive and carry no@suffix — see aspect-model-stereotypes.md. Add the used languages required for that form. - Bump the language
versioninteger in the.mpland setfromVersionon the new script to the previous version. - Build the script body (declarative parts, BL
execute()method, orMigrationScriptPart_Instanceupdater) using the JSON blueprints in references/json-blueprints.md. - Wire ordering (
OrderDependency/ExecuteAfterDeclaration) and data flow (putData/getData) if needed. - Validate via
mps_mcp_check_root_node_problems, then run the migration on a test model.
What ships with it
8 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/concept-ids.md 2.7 KB
- references/enhancement-scripts.md 4.4 KB
- references/find-instances.md 799 B
- references/form-selection.md 3.0 KB
- references/json-blueprints.md 5.2 KB
- references/lang-migration-reference.md 5.8 KB
- references/migration-script-body.md 1.9 KB
- references/pure-migration-parts.md 2.1 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.
- 8d 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,657 stars, last pushed today), licensed Apache-2.0. It adds 145 tokens to every session and 1,369 once invoked, about $0.0007 per session on Opus 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.
Other skills, from other repositories
langium
A comprehensive skill to understanding how Langium-based projects work — from grammar definition through code generation, runtime parsing, linking, validation, and LSP integration.
lai-gen-mcp
Generate a Model Context Protocol (MCP) server that exposes a Langium DSL's parser and validator as an MCP tool, allowing any MCP-compatible client to validate DSL code and receive diagnostics.
lai-gen-descriptor
Generate or refine a language descriptor for a Langium DSL project. Bootstraps a new descriptor via lai gen descriptor if none exists, then guides refinement of paths, services, examples, documentation, and structure.
lai-gen-language-skill
Skill for generating a skill for understanding a specific Langium-based DSL. Used in cooperation with the lai & langium skills for understanding.
no-bare-casts
Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.
azure-resource-manager-postgresql-dotnet
Azure PostgreSQL Flexible Server SDK for .NET. Database management for PostgreSQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "PostgreSQL", "PostgreSqlFlexibleServer", "PostgreSQL Flexible Server", "Azure Database for…