agentleFS
JetBrainsKnown publisherJetBrains/MPS/.agents/skills/mps-lang-core-xml/SKILL.md

mps-lang-core-xml

Skill1.7k starsChanged 2 months agoApache-2.0View on GitHub

Use when authoring XML documents as MPS root nodes or building XML-generating generator templates with jetbrains.mps.core.xml — covers XmlFile, XmlDocument, prolog (XML declaration, DOCTYPE, processing instructions, comments), elements, attributes, CDATA, entity references, and macro attachment via the smodelAttribute role for templates that emit XML output.

Trending

Quiet since October.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the JetBrains/MPS repository that our weekly crawl found: only 3 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 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.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not hand-edit serialized .mps files: Use MPS MCP node tools for all changes.

    line 25
  2. Very specific:

    Add jetbrains.mps.core.xml as a used language on the target model.

    line 29
  3. Very specific:

    Create an XmlFile root node with a name.

    line 30
  4. Very specific:

    Add an XmlDocument child in role document.

    line 31

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

jetbrains.mps.core.xml Language

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.

jetbrains.mps.core.xml is an MPS language for authoring and generating XML documents inside MPS models. It is used either for direct XML authoring (an XmlFile root holds a complete document) or for generator templates (an XmlFile carries RootTemplateAnnotation and macros via smodelAttribute child roles).

Language reference: l:479c7a8c-02f9-43b5-9139-d910cb22f298:jetbrains.mps.core.xml

Critical Directives

  • Wrap everything in XmlFile → XmlDocument. XmlFile is the only rootable concept. XmlDocument.rootElement has cardinality 1 — put the root there, not in content.
  • XmlProlog is optional (0..1). Omit it entirely when no prolog is needed.
  • Attribute values are lists of XmlValuePart. A plain string is a single XmlTextValue. An attribute with no value children renders as a valueless (boolean) attribute.
  • Property name asymmetry: XmlText / XmlSingleLineText use the property value. XmlTextValue (attribute value part) uses the property text. Do not swap them.
  • In generators, macros go in the smodelAttribute child role of the node they annotate — not as siblings in content or attributes.
  • Subclass the base types. Extend XmlBaseAttribute (not XmlAttribute) and XmlBaseElement (not XmlElement) when defining custom concepts for derived languages.
  • Do not hand-edit serialized .mps files. Use MPS MCP node tools for all changes.

Common-Path Workflow

  1. Add jetbrains.mps.core.xml as a used language on the target model. For generator templates, also add jetbrains.mps.lang.generator.
  2. Create an XmlFile root node with a name. The name is the template/document identifier, not the output filename.
  3. Add an XmlDocument child in role document. Optionally add an XmlProlog for declarations/comments/PIs.
  4. Build the document tree under XmlDocument.rootElement and the inner content lists.
  5. For generator templates, attach RootTemplateAnnotation to the XmlFile via smodelAttribute, and attach macros (PropertyMacro, LoopMacro, CopySrcNodeMacro, …) to inner nodes via their smodelAttribute role.
  6. Validate with mps_mcp_check_root_node_problems.

Related Skills

  • mps-aspect-generator — for generator-side macro design that produces these XML templates.
  • mps-aspect-textgen — for the text-serialization layer that turns these XML trees into output files.
  • mps-node-editing — generic JSON-blueprint node creation/replacement workflow.

Reference Index

  • Concept catalog — open when you need exact concept names, properties, cardinalities, or aliases for any document, prolog, element, attribute, or content node. See references/concept-catalog.md.
  • JSON blueprint patterns — open when constructing or editing concrete XML trees as JSON for mps_mcp_insert_root_node_from_json, mps_mcp_update_node. Includes minimal files, prolog with declarations, DOCTYPE, comments, attributes, mixed values, CDATA, processing instructions, and a full generator-template example. See references/json-blueprints.md.
  • Rules and pitfalls — open when a node validates but the rendered XML is wrong, when attribute/value naming feels inconsistent, or before subclassing element/attribute concepts. See references/rules-and-pitfalls.md.
  • Language dependencies — open when setting up a new model that uses XML concepts, or when wiring generator templates that mix XML with generator macros. See references/language-dependencies.md.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.