mps-dsl-memory

mps-dsl-memory is a skill for Claude Code, Codex from JetBrains/MPS. It costs 49 tokens per session (1,189 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

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,658 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jetbrains/mps/mps-dsl-memory
Any agent
npx skills add JetBrains/MPS --skill mps-dsl-memory
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.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.svg" alt="Measured on agentmods" 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,189 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00049 $0.01189
Opus 5 $0.00024 $0.00594
Sonnet 5 $0.00010 $0.00238
Haiku 4.5 $0.00005 $0.00119

Measured 5d ago against content hash c128faa20b8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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 · 76 lines

How it starts

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

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. 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.
  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, blueprint JSON parses, no .DS_Store or editor artifacts were added, and one or two recorded node refs still resolve if the sandbox may have changed.

Read the full file on GitHub · 76 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. 5d 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,658 stars, last pushed today), licensed Apache-2.0. It adds 49 tokens to every session and 1,189 once invoked, about $0.0002 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.