mps-aspect-generation-plan
Skill1.7k starsChanged 2 months agoApache-2.0View on GitHub
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/ConceptListSelector 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.
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-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-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
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Do not hand-edit serialized
.mpsgenplan files: Use MPS MCP node tools. - Very specific: line 36
Create a solution; add a model with stereotype genplan (file like MyPlan@genplan.mps).
- Very specific: line 37
Add used languages jetbrains.mps.lang.generator.plan and jetbrains.mps.lang.smodel.
- Very specific: line 38
Create a Plan root node with a descriptive name.
- Very specific: line 39
Add Transform steps in order (one per phase).
- Very specific: line 41
Add Fork steps for any output variant requiring its own branch (e.g.
- Very specific: line 43
Verify with MPS UI Show generation plan and mps_mcp_check_root_node_problems.
≈ “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 Generation Plans
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.
A generation plan (Plan) is an ordered script that controls which generators run, in what sequence, and with what synchronization points. Without a plan, MPS determines order from mutual generator priorities and dependencies. A plan lets language designers specify that ordering once, in a single place, without requiring all involved languages to know about each other.
Language: jetbrains.mps.lang.generator.plan (id 7ab1a6fa-0a11-4b95-9e48-75f363d6cb00, version 3)
Also requires: jetbrains.mps.lang.smodel (for LanguageId / LanguageIdentity nodes)
When to use a generation plan
- You need a guaranteed ordering of generators across languages that must not depend on each other.
- You are doing cross-model generation and need mapping labels from one model to be available when generating another (requires checkpoints).
- You want to fork the generation of certain models into a separate branch (e.g., generate both
.javafiles and XML descriptors from the same input). - You want a conditional contribution added to a base plan without modifying it (
PlanContribution).
Critical Directives
- Genplan models use the
genplanstereotype. File name pattern:<name>@genplan.mps. PassmoduleName: "<hosting module>"andmodelName: "<name>@genplan"tomps_mcp_create_model. See aspect-model-stereotypes.md for all model identifiers. SetdoNotGenerate=true(MPS adds this automatically). - Only one DevKit per model may carry a genplan. Assigning multiple genplan-bearing DevKits to the same model is unsupported.
Plan.stepsis1..n. A plan with no steps is invalid.LanguageEntry.language(LanguageId) andGeneratorModulePointer.module(ModulePointer) are each cardinality 1 — missing them is a validation error.- Checkpoints persist transient state. Cross-phase reference resolution works only when phases share a plan AND a
Checkpointsits between them. - Do not hand-edit serialized
.mpsgenplan files. Use MPS MCP node tools.
Common-Path Workflow
- Create a solution; add a model with stereotype
genplan(file likeMyPlan@genplan.mps). - Add used languages
jetbrains.mps.lang.generator.planandjetbrains.mps.lang.smodel. - Create a
Planroot node with a descriptivename. - Add
Transformsteps in order (one per phase); group parallel-safe languages in oneTransformwith multipleLanguageEntrychildren. - Insert
Checkpointsteps wherever downstream generators must resolve cross-model references. - Add
Forksteps for any output variant requiring its own branch (e.g. XML alongside Java); or add a separatePlanContributionroot for conditional activation. - Attach the plan to models via a DevKit (production) or the Custom generation facet (prototyping).
- Verify with MPS UI Show generation plan and
mps_mcp_check_root_node_problems.
Related Skills
mps-aspect-generator— for the generator rules and templates that the plan orchestrates.mps-aspect-textgen— for the text serialization that consumes generated models.mps-aspect-accessories— for DevKit setup, used languages, and runtime solutions that ship with a plan.mps-node-editing— generic JSON-blueprint node creation workflow.
Reference Index
Start here — most common case: creating a plan and wiring it into a DevKit → read only references/plan-setup.md, plus references/step-catalog.md for the exact step concepts; cross-phase label resolution → only references/checkpoints.md; composing or branching plans → only references/composition-and-fork.md.
- Plan setup and DevKit attachment — open when creating a new genplan model, wiring it into a DevKit, or switching between DevKit and Custom generation facet attachment. See references/plan-setup.md.
- Step concept catalog — open when you need exact concept names, properties, cardinalities, and the meanings of
Transform,ApplyGenerators,Checkpoint,IncludePlan,Fork,CheckpointDeclaration,CheckpointSynchronization,DocumentationStep. See references/step-catalog.md. TransformandApplyGenerators— open when wiring languages by identity (LanguageEntry.kind= Transform / TargetAt / Extend) or naming specific generator modules. Includes the verified "the plan" and "WithCompiledGenerator" JSON examples. See references/transform-and-applygenerators.md.- Checkpoints and cross-model resolution — open when phases need to share mapping labels, when a downstream plan must read another plan's checkpoint, or when picking among
InPlaceCheckpointSpec,DeclaredCheckpointSpec,InPlaceCheckpointRefSpec. See references/checkpoints.md. IncludePlan,Fork, andPlanContribution— open when composing plans from smaller pieces, splitting branches, or activating a conditional contribution without modifying the base plan. Includes "GenPlanWithFork", "LangConstraintsPlan", and "DocumentationPlan" JSON examples. See references/composition-and-fork.md.- Fork selectors and parameters — open when conditionally activating forks via
ParameterEqualsorConceptListSelector, or defining aParameterDeclaration. See references/fork-selectors.md. - Model attributes (
InitModelAttributes,targetFacet) — open when routing the output of a branch to a specific facet such as documentation generation. Includes the verifiedModelAttributeAssignmentblueprint. See references/model-attributes.md. - Concept quick reference — open when assembling JSON that requires
conceptReferencestrings or qualified concept names. See references/concept-quick-reference.md. - Verification and discovery — open to find existing plans (
FIND_INSTANCES, search by name) or to validate a plan using MPS UI and MCP tools. See references/verification-and-discovery.md. - Authoring checklist — open at the end of an authoring session for a final scan before merging. See references/authoring-checklist.md.
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.

