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

mps-language-inheritance

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

Investigate inheritance between MPS languages and between concepts — extended languages, superconcepts, implemented interfaces, sub-/assignable concepts, and cross-language specialization. Use when tracing language hierarchies, finding extension points, or checking concept assignability.

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

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

  • 8

    Very specific

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

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

    Workflow: check the extendedLanguages field in the response for the target language.

    line 26
  2. Very specific:

    Direct ancestors: use mps_mcp_get_concept_details.

    line 33
  3. Very specific:

    Full closure: use mps_mcp_query_structure with GET_ALL_SUPERCONCEPTS to get the complete chain of ancestors and interfaces in one call.

    line 37
  4. Very specific:

    Specializations: use mps_mcp_query_structure with GET_SUB_CONCEPTS to find all concepts (direct and indirect) inheriting from a base.

    line 41
  5. Very specific:

    Implementations: use GET_ASSIGNABLE_CONCEPTS to retrieve only non-abstract subconcepts that can be instantiated.

    line 42
  6. Very specific:

    Verification: use mps_mcp_query_structure with IS_SUBCONCEPT_OF to check if concept A inherits from concept B.

    line 46
  7. Very specific:

    Discovery: use mps_mcp_search_concepts to find base concepts (e.g.

    line 48
  8. Very specific:

    Implicit dependencies: if a model uses a language without an explicit import, check if its used languages extend the missing language via …

    line 49

≈ “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 and Concept Inheritance

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.

Two layers of inheritance matter in MPS: module-level (one language extends another) and concept-level (concepts inherit superconcepts and implement interface concepts).

Critical Directives

  • Concept-level inheritance is realized through module-level extension — different languageReference on a concept and its superConcept indicates a cross-language specialization, which usually requires the consumer's language to extend the parent.
  • GET_ALL_SUPERCONCEPTS gives the full transitive closure in a single call — prefer it over recursive walking of superConcept / superInterfaces.
  • IS_SUBCONCEPT_OF is the fastest way to verify a single assignability question; do not enumerate GET_SUB_CONCEPTS and search by hand.

Module-Level Inheritance (Language Extension)

One language can inherit the structure and functionality of another via an "extends" relationship.

  1. Tool: mps_mcp_get_project_structure (with includeDependencies: true).
  2. Workflow: check the extendedLanguages field in the response for the target language. This lists direct parent languages.
  3. Hierarchy tracing: recursively call this tool for each parent to build the full inheritance tree.

Concept-Level Inheritance

Upward Hierarchy (Ancestors)

  • Direct ancestors: use mps_mcp_get_concept_details. The response includes:
    • superConcept: immediate parent concept.
    • superInterfaces: immediate implemented interface concepts.
    • superConceptContainingProject and superInterfaceDetails[*].containingProject when an ancestor comes from another open MPS project and is read-only from the selected project.
  • Full closure: use mps_mcp_query_structure with GET_ALL_SUPERCONCEPTS to get the complete chain of ancestors and interfaces in one call.

Downward Hierarchy (Descendants)

  • Specializations: use mps_mcp_query_structure with GET_SUB_CONCEPTS to find all concepts (direct and indirect) inheriting from a base.
  • Implementations: use GET_ASSIGNABLE_CONCEPTS to retrieve only non-abstract subconcepts that can be instantiated.

Strategic Analysis

  • Verification: use mps_mcp_query_structure with IS_SUBCONCEPT_OF to check if concept A inherits from concept B.
  • Cross-language extension: compare the languageReference of a concept with that of its superConcept. Different references indicate a language boundary specialization; foreign-project ancestors are marked explicitly with the containing-project fields.
  • Discovery: use mps_mcp_search_concepts to find base concepts (e.g. "Statement") for extension.
  • Implicit dependencies: if a model uses a language without an explicit import, check if its used languages extend the missing language via mps_mcp_get_project_structure.

Best Practice

Identify extension points by first checking high-level extendedLanguages via mps_mcp_get_project_structure, then use mps_mcp_get_concept_details to pinpoint cross-language concept specializations.

Related Skills

  • mps-language-analysis — start here when you need general language inspection, not just inheritance.
  • mps-aspect-structure-concepts — when you intend to define new concepts (with their own super/interface lists).
  • mps-aspect-accessories — for extendedLanguages vs usedLanguages semantics at module level.

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.