mps-dsl-memory
Skill1.7k starsChanged 2 months agoApache-2.0View on GitHub
Create or refresh project-local DSL skills under `.agents/skills/<dsl-name>-dsl/` for one or more MPS languages after discovering concepts, sandbox examples, JSON blueprints, references, or gotchas.
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-generation-planSkill
- 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-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
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 5 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Use MPS MCP tools for discovery and model edits.
- Very specific: line 22
Discover languages: Call mps_mcp_get_project_structure with includeModels: false.
- Distinctive: line 23
Choose skill scope: Prefer one generated skill per language.
- Very specific: line 25
Read concepts: Call mps_mcp_get_concept_details with the relevant l:<uuid>:<languageName> refs.
- Very specific: line 26
Sample sparingly: Use mps_mcp_print_node only on representative roots or subtrees needed for reference targets, required roles, or reusable …
- Very specific: line 27
Generate DSL skills: Create or update .agents/skills/<dsl-name>-dsl/ for each selected scope.
- Distinctive: line 28
Cross-link related skills: When generated skills cover languages that extend, depend on, or are commonly used inside each other, add short …
- Very specific: line 53
Use MPS MCP tools; do not hand-edit .mps XML.
- Very specific: line 54
Use mps_mcp_get_concept_details with l:<uuid>:<languageName>, not <uuid>(<languageName>).
- Distinctive: line 55
Prefer skeleton-plus-subtree insertion for large or uncertain roots.
- Distinctive: line 58
Use the recorded sandbox model for examples or new sample roots.
- Very specific: line 59
Start from references/blueprints/ for known shapes: send a blueprint's content inline, or copy the file to ${TMPDIR:-/tmp} (%TEMP% on …
- Distinctive: line 62
Add child-role subtrees incrementally for large roots.
- Very specific: line 63
Run mps_mcp_check_root_node_problems and any task-required build/generation checks.
≈ “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
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.
When to Use
- A new MPS sample or DSL project has no generated DSL skill under
.agents/skills/<dsl-name>-dsl/, or the existing one is outdated. - The user says "bootstrap DSL skill", "generate DSL skill", or "document this DSL".
- You have just explored a DSL and want to persist your findings for future sessions as a project-local skill.
Prerequisites
- MPS MCP tools are available.
- The project has one or more language modules and at least one sandbox, example solution, or editable model that exercises the DSLs.
- Use MPS MCP tools for discovery and model edits. Do not hand-edit serialized
.mpsXML.
Workflow
- Discover languages: Call
mps_mcp_get_project_structurewithincludeModels: false. Identify all editable DSL language modules and derive each concept-tools language ref asl:<uuid>:<languageName>. - Choose skill scope: Prefer one generated skill per language. Use one combined skill only when the project languages are tightly coupled and users normally edit them together.
- Find examples: For each language or language group, call
mps_mcp_get_project_structurewith the relevant sandbox/example solution asstartingPointandincludeRootNodes: true. Record editable model refs and representative root refs. - Read concepts: Call
mps_mcp_get_concept_detailswith the relevantl:<uuid>:<languageName>refs. Capture rootable concepts, concrete children, properties, child roles, references, and usefulshortDescriptiontext. - Sample sparingly: Use
mps_mcp_print_nodeonly on representative roots or subtrees needed for reference targets, required roles, or reusable blueprints, and derive blueprints from that output rather than writing them by hand. Avoid dumping every root. - Generate DSL skills: Create or update
.agents/skills/<dsl-name>-dsl/for each selected scope. Preserve user-added notes unless they are stale or wrong. In every generated file, write the temp directory as$TMPDIR(%TEMP%on Windows), never as the resolved directory (/private/var/folders/…/T,C:\Users\…\Temp), which differs per machine. - Cross-link related skills: When generated skills cover languages that extend, depend on, or are commonly used inside each other, add short links and usage notes between them.
- Verify: Confirm linked reference files exist, no
.DS_Storeor editor artifacts were added, and one or two recorded node refs still resolve if the sandbox may have changed. Dry-run every blueprint underreferences/blueprints/:mps_mcp_insert_root_node_from_jsonwithdryRun: trueinto a sandbox model for a root blueprint,mps_mcp_update_nodeADD CHILD withdryRun: trueunder a sample parent for a fragment. The server reads ajson/childJsonfile only from the system temp directory, so a path under.agents/skills/is rejected with "is not inside the system temp directory"; that rejection is not a blueprint failure. Send each file's exact content inline (up to 4,096 characters), or copy the files first and pass each copy's absolute path:d="${TMPDIR:-/tmp}/<dsl-name>-blueprints"; mkdir -p "$d"; cp .agents/skills/<dsl-name>-dsl/references/blueprints/*.json "$d/". When a dry run fails, fix the shipped file, not only the inline text or the temp copy, and dry-run again from the fixed file. Parsing as JSON is not enough, because the server rejects blueprints that parse. If every blueprint is rejected withUnknown property …, the language descriptor is hollow: MAKE the language and retry. Warnings for references given by name are expected; see "Dry-run response" inreferences/reference-formats/response-envelope.mdin themps-mcp-workflowskill root after loading that companion skill from the same origin.
Generated Skill Layout
.agents/skills/<dsl-name>-dsl/
|-- SKILL.md
`-- references/
|-- concepts.md
|-- sandbox.md
|-- workflows.md
|-- gotchas.md
`-- blueprints/
|-- <operation>-skeleton.json
`-- <operation>-subtree.jsonThe <dsl-name> slug is derived from the language namespace: use stable lowercase, split camel case and separators into words, and prefer the namespace's final meaningful segment unless the project consistently names the DSL differently. The -dsl suffix is mandatory — callers (such as mps-mcp-workflow) discover generated skills with the glob .agents/skills/*-dsl/.
Generated SKILL.md Requirements
- Frontmatter:
name: <dsl-name>-dsldescription:Use when creating, editing, validating, or inspecting this DSL's models.
- Short domain summary: two to four sentences. For combined skills, name each covered language and when to use the combined workflow.
- Critical rules:
- Use MPS MCP tools; do not hand-edit
.mpsXML. - Use
mps_mcp_get_concept_detailswithl:<uuid>:<languageName>, not<uuid>(<languageName>). - Prefer skeleton-plus-subtree insertion for large or uncertain roots.
- Validate changed roots with
mps_mcp_check_root_node_problems.
- Use MPS MCP tools; do not hand-edit
- Quick start:
- Use the recorded sandbox model for examples or new sample roots.
- Start from
references/blueprints/for known shapes: send a blueprint's content inline, or copy the file to${TMPDIR:-/tmp}(%TEMP%on Windows) and pass the copy's absolute path. The server does not read a file under.agents/skills/. - Dry-run root JSON with
mps_mcp_insert_root_node_from_json. - Insert roots with
mps_mcp_insert_root_node_from_json. - Add child-role subtrees incrementally for large roots.
- Run
mps_mcp_check_root_node_problemsand any task-required build/generation checks.
- Project references:
- Concept-tools language ref for each covered language.
- Sandbox/example model refs.
- Primary editable modules.
- Dependencies or extension relationships between covered project languages, if relevant.
- Related DSL skills:
- Link sibling generated skills when another project language supplies child concepts, expressions, commands, reference targets, or extensions used by this language.
- Explain when to load each related skill.
- Reference directory links.
Reference Files
concepts.mdunder the generated skill'sreferences/: concept hierarchy, rootable concepts, properties, child roles, references, and semantic notes.sandbox.mdunder the generated skill'sreferences/: sandbox model refs, representative roots, configuration nodes, reference targets, and stable node refs.workflows.mdunder the generated skill'sreferences/: creation/editing recipes, including when to use full-root JSON versus skeleton-plus-subtrees.gotchas.mdunder the generated skill'sreferences/: reference formats, ordering constraints, required roles, expression precedence issues, extension-language dependencies, and known validation failures.references/blueprints/: valid compact JSON skeletons and subtree templates, in the array formprint_nodeemits (properties:[{name,value}], not a map).
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.

