agentleFS
JetBrainsKnown publisherJetBrains/MPS/.agents/skills/mps-language-analysis/SKILL.md

mps-language-analysis

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

Analyze an MPS language by name — discover concepts, properties, references, children, aspects (editor/constraints/behavior), and metadata. Use when investigating an unfamiliar language, exploring concept structure, or finding sample nodes to use as templates for JSON blueprints.

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

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

  • 7

    Very specific

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

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

    Use the fully qualified language name (e.g.

    line 17
  2. Very specific:

    Verify Language: call mps_mcp_get_project_structure with the language name as a filter (startingPoint: My_Language).

    line 22
  3. Very specific:

    Retrieve Concepts: use mps_mcp_get_concept_details with the language name in languageRefs.

    line 23
  4. Very specific:

    Declaration: use the sourceNode reference with mps_mcp_open_node to open the definition.

    line 30
  5. Very specific:

    Examples: use mps_mcp_query_nodes with FIND_INSTANCES (sampleOnly: true) to get a sample node.

    line 31
  6. Very specific:

    Use mps_mcp_query_structure with LIST_CONCEPT_ASPECTS to find associated definitions (Editor, Constraints, Behavior):

    line 36
  7. Very specific:

    Check the editor model in the response to identify available editors.

    line 43

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

MPS Language Analysis

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.

Workflow for inspecting an MPS language from a name (e.g. jetbrains.mps.lang.core). Returns concepts, metadata, structural info, and pointers to declarations and sample nodes.

Critical Directives

  • Use the fully qualified language name (e.g. jetbrains.mps.lang.core) — single-letter shorthand (j.m.l.core) requires resolution first via mps_mcp_get_project_structure.
  • For the qualifiedName returned by mps_mcp_get_concept_details, use it as the concept field in JSON blueprints. It is unambiguous.

Analyzing a Language by Name

  1. Verify Language: call mps_mcp_get_project_structure with the language name as a filter (startingPoint: My_Language). This confirms existence and provides the UUID.
  2. Retrieve Concepts: use mps_mcp_get_concept_details with the language name in languageRefs. Both conceptRefs and languageRefs accept either one value or a JSON array (real or written as a string); omit the unused selector.
  3. Extract Data: the response includes:
    • Name: concept FQN.
    • Description: found in shortDescription.
    • Metadata: isRootable, isAbstract, and the conceptReference ID.
    • Structure: properties, children, and references are detailed here.
  4. Drill Down:
    • Declaration: use the sourceNode reference with mps_mcp_open_node to open the definition.
    • Examples: use mps_mcp_query_nodes with FIND_INSTANCES (sampleOnly: true) to get a sample node. Then use mps_mcp_print_node to see its canonical JSON structure for use as a template.
    • Inheritance: load the mps-language-inheritance skill for deeper hierarchy analysis.

Inspecting Concept Aspects

Use mps_mcp_query_structure with LIST_CONCEPT_ASPECTS to find associated definitions (Editor, Constraints, Behavior):

  • Direct Aspects: returns roots targeting the specific concept.
  • Inherited Aspects: set includeInherited: true to include aspects from ancestors (superconcepts/interfaces).
  • Editor Analysis:
    • ConceptEditorDeclaration: defines the full editor for the targetsConcept.
    • EditorComponentDeclaration: defines reusable presentation pieces.
    • Check the editor model in the response to identify available editors.

Related Skills

  • mps-language-inheritance — load when you need extended-language / superconcept / subconcept analysis.
  • mps-aspect-structure-concepts — load when defining or modifying concepts (not just reading them).
  • mps-language-aspects-overview — overview of which aspects exist and what each owns.

Reference Index

  • Open references/search-concepts.md for the mps_mcp_search_concepts matching algorithm — haystack composition, subtoken splitting, fallback ranking, the three scopes (modelReference / scope) and the auto-widen, the detail projections, the 50-match cap, and the sub-2-char failure mode.
  • Open references/concept-details.md for the mps_mcp_get_concept_details result schema and the unresolved-ref policy (all-failed vs partial-success envelopes and the suggestion heuristic).

Scripts

scripts/concept_shape.py — reduces a mps_mcp_get_concept_details result file to one line per property, reference, and child role (type, enum literals, cardinality): the concept shape needed to author a blueprint, instead of the 10–40 KB details file.

python3 scripts/concept_shape.py /var/folders/.../mps-node-456.json --concept Course
Course  com.example.courses.structure.Course  rootable
  prop   credits        integer
  prop   level          enum Level [INTRO|CORE|ADVANCED]
  child  lessons        com.example.courses.structure.Lesson     1..n
  child  prerequisites  com.example.courses.structure.CourseRef  0..n

--all keeps the inherited shortDescription / virtualPackage / smodelAttribute features that are hidden by default; --list-tools prints the tools and parameters it depends on. The script is a thin front end over scripts/mps_dump.py in the mps-mcp-workflow skill root after loading that companion skill from the same origin, which must be installed alongside this one; that library also offers the roots, node, and count projections.

No python3 (typically Windows): read the details file with the file reader and keep, per concept, only qualifiedName, isAbstract/isRootable, and for each entry of properties / references / children the name, type/targetConcept, cardinality, and enumerationValues (plus enumerationDefault, the literal a property holding the default value carries) — ignore featureId, sourceNode, doc, and sampleNode unless you need them.

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.