mps-baselanguage
Skill by JetBrains
Guides authoring and editing MPS jetbrains.mps.baseLanguage (Java) nodes as ASTs. It helps choose between the Java parser and JSON AST blueprints for MPS models.
Install mps-baselanguage
Built from the published package, never by AI.
git clone --depth 1 https://github.com/JetBrains/MPS /tmp/MPS && mkdir -p ~/.claude/skills && cp -r /tmp/MPS/.claude/skills/mps-baselanguage ~/.claude/skills/mps-baselanguageRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/JetBrains/MPS /tmp/MPS && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/MPS/.claude/skills/mps-baselanguage ~/.gemini/antigravity-cli/skills/mps-baselanguageAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a reference for writing and editing BaseLanguage (Java-equivalent) code inside MPS models. MPS stores code as an AST rather than text, so the skill explains two authoring paths: the Java parser tool for plain Java, and JSON AST blueprints for code that uses BaseLanguage extensions such as smodel, closures and collections, or that needs stable persistent member references.
The skill lists critical directives, such as using :eq: and :ne: for node equality, wiring ClassCreator and method call references correctly, and wrapping expressions in ExpressionStatement. It describes a workflow of scoping, skeleton insertion, harvesting references, applying bodies and validating in three gates. It is aimed at developers working with MPS and its MCP tools.
Written from the project's SKILL.md and checked against it.
What it can do
- Choose authoring pathHelps pick between the Java parser and JSON AST blueprints before editing.
- Map Java to conceptsProvides a lookup of Java syntax to MPS BaseLanguage concepts and role names.
- Harvest member referencesExplains reading persistent refs of constructors, methods and fields from skeleton nodes.
- Validate editsDescribes dryRun checks, semantic problem checks and generation and compilation gates.
- Repair broken refsPoints to FIX_REFERENCES for repairing broken references after an insert.
What you need
- MPS with the mps-mcp tools available
Try asking
- Write a Java method body for this class in my MPS model
- Insert a constructor and wire ClassCreator to it in MPS
- Map this Java for loop to BaseLanguage concepts in MPS
Good to know
- BaseLanguage core is Java 7 for JSON blueprints, with no lambda or record syntax.
- The parser accepts some Java 8+ syntax, but constructs it does not recognize, such as records, still fail.
- Lambdas type-check only against a matching functional-type target.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/mps-baselanguage/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mps-baselanguage
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
mps-baselanguage: common questions
When should I use the Java parser instead of JSON AST blueprints?
The source says to use the Java parser for plain Java without BaseLanguage extensions. JSON AST blueprints are for extensions like smodel, closures and collections, or when stable persistent member references are needed.
Why must ConstructorDeclaration.returnType be a VoidType?
The source states that leaving returnType empty fails validation, so it must be a VoidType node.
Does this skill work with BaseLanguage extensions?
Yes. The source names jetbrains.mps.lang.smodel, closures and collections as covered extensions, and it links to companion skills for collections and closures.
How do I install mps-baselanguage?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mps-baselanguage free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mps-baselanguage safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mps-baselanguage?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
