MPS: Skill for Claude Code

.agents/skills/mps-node-editing/SKILL.md

mps-node-editing is a skill for Claude Code, Codex from JetBrains/MPS. It costs 67 tokens per session (6,304 once invoked), scanned A, original, Apache-2.0.

A guide for adding, changing, or deleting nodes in JetBrains MPS models using JSON descriptions. Nodes are the structured elements that make up an MPS language model.

In plain words
What is it for?
Use it to locate model elements, create or update nodes, copy existing structures, repair references, and validate changes across MPS structure, editor, behavior, generator, and application models.
Why use it?
It promotes safe, targeted edits and preserves the identifiers that connect model elements, avoiding broken references and corrupted files.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; 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-node-editing/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-node-editing

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jetbrains/mps/mps-node-editing"><img src="https://agentmods.dev/badge/skills/jetbrains/mps/mps-node-editing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,304 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.00067 $0.06304
Opus 5.5 $0.00027 $0.02522
Sonnet 5.5 $0.00013 $0.01261
Haiku 4.5 $0.00007 $0.00630

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

Security

Grade A, and why

mps-node-editing 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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/blueprint.py, scripts/table_to_bulk_insert.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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-node-editing/SKILL.md · 238 lines

How it starts

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

MPS Node Editing

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.

The core workflow for mutating MPS nodes through MCP tools. JSON blueprints describe the node hierarchy you want; the tools resolve concepts, references, and used languages on insert.

Critical Directives

  • Always use the fully qualified concept name in the concept field — it is unambiguous and does not require a conceptReference.
  • Resolve before editing — call mps_mcp_get_current_editor_root_node (for the user's focus) or mps_mcp_search_root_node_by_name (by name) to lock onto the target. Don't guess refs.
  • Prefer surgical edits — mps_mcp_update_node (ADD/CHILD or SET/CHILD) preserves persistent IDs. mps_mcp_update_root_node_from_json rewrites the entire root and is wasteful when only one subtree changed.
  • Don't delete-and-reinsert to make a small change — deletion destroys persistent IDs and breaks incoming references.
  • Cloning an existing node? Use mps_mcp_alter_nodes COPY_NODE, not a JSON blueprint. It clones the subtree natively — correct concept, properties, refs, nested structure — as the next sibling (multi-child role) or new root, then tweak with mps_mcp_update_node. Reserve JSON blueprints for nodes with no close match to copy from.
  • Choosing a replacement or filling a typed slot? Ask mps_mcp_query_nodes GET_EXPECTED_TYPE on the node you are about to replace, then confirm a candidate with mps_mcp_query_types IS_SUBTYPE before inserting. An empty slot has no answer, and the bound can depend on the node already there (byte b = 1, return 'c'); null means no usable upper/comparable bound, not “anything goes.” See mps-mcp-workflow/references/analysis-tools/type-queries.md for details.
  • Validate frequently — call mps_mcp_check_root_node_problems immediately after inserting or modifying a complex node. "ok": true from insert does not mean the AST is semantically valid; read warnings and details.uncheckedSubtrees, and open a problem's rules[].statement to see which rule reported it.
  • Generate deep blueprints, do not hand-nest them — if you write a blueprint as JSON rather than through mps_mcp_parse_java_and_insert, and it holds a BaseLanguage body or nests more than ~5 node levels, generate it with scripts/blueprint.py and pass the printed temp-file path. A hand-written one ends in a long run of ]} pairs; one pair too few is rejected as INVALID_JSON … unbalanced, or, when it is missing mid-input, puts a later role under the wrong node. Plain Java still goes through the parser first (mps-baselanguage).
  • A blueprint is not the whole node — the concept's node factory runs first and may add properties, children, and references your JSON never mentions. Do not re-do its work by hand, and do not assume an inserted node contains exactly what you wrote. See "Node factories" below.

Read the full file on GitHub · 238 lines

Files

What ships with it

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

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 · +36 lines ed0955dfca65
  2. 11d ago Changed a7be39893cc3
  3. 29d ago Changed · +6 lines d62c5368fe6e
  4. 1mo ago Changed · +1 lines 8e35c23b6562
  5. 1mo ago Changed · +113 lines 71a4dddac404
  6. 2mo ago First seen · 82 lines · 67 tokens per session scan A aa7fad571ec8

Subscribe to this mod's changes

mps-node-editing is a skill published in the GitHub repository JetBrains/MPS (1,666 stars, last pushed yesterday), licensed Apache-2.0. It adds 67 tokens to every session and 6,304 once invoked, about $0.0003 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-node-editing compared with skills from other repositories

mps-node-editing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mps-node-editingJetBrains/MPSSkill1.7kyesterdayApache-2.0A67Claude Code, Codex
langiumeclipse-langium/langium-aiSkill314d agoMITA33Claude Code
lai-gen-evalseclipse-langium/langium-aiSkill314d agoMITA42Claude Code
laieclipse-langium/langium-aiSkill314d agoMITA52Claude 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