MPS: Skill for Claude Code

.agents/skills/mps-dsl-memory/SKILL.md

mps-dsl-memory is a skill for Claude Code, Codex from JetBrains/MPS. It costs 49 tokens per session (1,863 once invoked), scanned A, original, Apache-2.0.

A workflow for creating or updating project-local instructions for MPS languages. MPS is a tool for building custom programming languages and their editors.

In plain words
What is it for?
Documenting an MPS language or bootstrapping its project-local skill from examples and model structure.
Why use it?
It preserves discoveries, examples, references, and common mistakes so future work with a language does not start from scratch.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is JetBrains/MPS's own configuration. It tells Claude Code and Codex how to work on MPS itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything MPS configures →

About the project

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.

JetBrains/MPS · 1,666 stars · on GitHub · jetbrains.com

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/JetBrains/MPS/master/.agents/skills/mps-dsl-memory/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/JetBrains/MPS

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for mps-dsl-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/jetbrains/mps/mps-dsl-memory/github.svg)](https://agentmods.dev/skills/jetbrains/mps/mps-dsl-memory)
Your own site
<a href="https://agentmods.dev/skills/jetbrains/mps/mps-dsl-memory"><img src="https://agentmods.dev/badge/skills/jetbrains/mps/mps-dsl-memory/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.

agentmods 80×15 button for mps-dsl-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/jetbrains/mps/mps-dsl-memory"><img src="https://agentmods.dev/badge/skills/jetbrains/mps/mps-dsl-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.01863
Opus 5.5 $0.00020 $0.00745
Sonnet 5.5 $0.00010 $0.00373
Haiku 4.5 $0.00005 $0.00186

Measured 8d ago against content hash 13f09ecb9d4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mps-dsl-memory 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.

.agents/skills/mps-dsl-memory/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 .mps XML.

Workflow

  1. Discover languages: Call mps_mcp_get_project_structure with includeModels: false. Identify all editable DSL language modules and derive each concept-tools language ref as l:<uuid>:<languageName>.
  2. 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.
  3. Find examples: For each language or language group, call mps_mcp_get_project_structure with the relevant sandbox/example solution as startingPoint and includeRootNodes: true. Record editable model refs and representative root refs.
  4. Read concepts: Call mps_mcp_get_concept_details with the relevant l:<uuid>:<languageName> refs. Capture rootable concepts, concrete children, properties, child roles, references, and useful shortDescription text.
  5. Sample sparingly: Use mps_mcp_print_node only 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.
  6. 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.
  7. 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.
  8. Verify: Confirm linked reference files exist, no .DS_Store or editor artifacts were added, and one or two recorded node refs still resolve if the sandbox may have changed. Dry-run every blueprint under references/blueprints/: mps_mcp_insert_root_node_from_json with dryRun: true into a sandbox model for a root blueprint, mps_mcp_update_node ADD CHILD with dryRun: true under a sample parent for a fragment. The server reads a json / childJson file 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. A dry run against a language that is not built is refused with LANGUAGE_NOT_BUILT; its details.languageBuild.recovery is the MAKE call to run, then repeat the dry run. A MAKE writes only generated output (source_gen/classes_gen), changes no model, and is allowed in a read-only task. If every blueprint is rejected with Unknown property … or with LANGUAGE_NOT_BUILT, the language descriptor is hollow: MAKE the language and retry. Warnings for references given by name are expected; see "Dry-run response" in references/reference-formats/response-envelope.md in the mps-mcp-workflow skill root after loading that companion skill from the same origin.

Read the full file on GitHub · 80 lines

Changes

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.

  1. 8d ago Changed 13f09ecb9d4a
  2. 1mo ago Changed 734b5fbd651d
  3. 1mo ago Changed · +4 lines ccda58f2f804
  4. 2mo ago First seen · 76 lines · 49 tokens per session scan A c128faa20b8e

Subscribe to this mod's changes

mps-dsl-memory is a skill published in the GitHub repository JetBrains/MPS (1,666 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 1,863 once invoked, about $0.0002 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.

Related

mps-dsl-memory compared with skills from other repositories

mps-dsl-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mps-dsl-memoryJetBrains/MPSSkill1.7kyesterdayApache-2.0A49Claude Code, Codex
langiumeclipse-langium/langium-aiSkill314d agoMITA33Claude Code
lai-gen-descriptoreclipse-langium/langium-aiSkill314d agoMITA49Claude Code
lai-gen-mcpeclipse-langium/langium-aiSkill314d agoMITA43Claude Code
lai-gen-language-skilleclipse-langium/langium-aiSkill314d agoMITA33Claude Code
triton-syntaxmindspore-ai/akgSkill2652d agoApache-2.0A21Claude Code, Codex
triton-ascendmindspore-ai/akgSkill2652d agoApache-2.0A28Claude Code, Codex