mps-aspect-behavior
Skill by JetBrains
Guides authoring and editing of MPS ConceptBehavior models, covering concept methods, constructors, virtual dispatch and overrides. It is for developers building JetBrains MPS languages.
Install mps-aspect-behavior
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-aspect-behavior ~/.claude/skills/mps-aspect-behaviorRun 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-aspect-behavior ~/.gemini/antigravity-cli/skills/mps-aspect-behaviorAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install mps-aspect-behavior in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The mps-aspect-behavior skill is a reference for the behavior aspect of JetBrains MPS. It explains how to define and edit ConceptBehavior models in <lang>/languageModels/behavior.mps, including per-concept methods, constructors, virtual dispatch, super calls and overrides of lang.core.behavior methods. The behavior aspect attaches methods and a constructor to a concept, with bodies written in BaseLanguage and smodel that other aspects can call with node.methodName(...).
The skill gives a workflow for creating a behavior model, choosing a method modifier and validating edits with MPS MCP tools. It points to companion skills and reference files for method declarations, constructors, inheritance and calls from other aspects. It is aimed at developers building or maintaining MPS languages.
Written from the project's SKILL.md and checked against it.
What it can do
- Method modifiersExplains non-virtual, virtual, abstract, static and virtual static concept methods and when to use each.
- ConstructorsCovers ConceptConstructorDeclaration rules, including what runs before a node is attached.
- Virtual dispatchDescribes the method resolution order and how super and interface-default calls work.
- Overriding lang.core.behavior methodsShows how to override methods such as ScopeProvider.getScope, INamedConcept.getName and BaseConcept.getPresentation.
- Calls from other aspectsExplains calling behavior methods from generator, typesystem, constraints and intentions via node.method(...).
- Model creation workflowDescribes creating a behavior model with mps_mcp_create_model and adding ConceptBehavior roots.
- MCP-based editingUses mps_mcp_insert_root_node_from_json, mps_mcp_parse_java_and_insert and mps_mcp_update_node to edit models.
- ValidationRuns mps_mcp_check_root_node_problems after edits and rebuilds the language.
What you need
- JetBrains MPS
- MPS MCP tools for editing behavior models
Try asking
- Add a virtual method getLabel to the Task concept's behavior
- Override getScope in the Reference behavior of my language
- Write a constructor that sets a default value for the Compound concept
Good to know
- Behavior models should be edited through MPS MCP tools, not by hand-editing .mps files.
- Methods are non-virtual by default and cannot be overridden unless marked virtual.
- Constructors run before the node is attached, so parent and children are null.
- Quotations bypass behavior constructors.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/mps-aspect-behavior/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mps-aspect-behavior
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-aspect-behavior: common questions
What is a ConceptBehavior in MPS?
A ConceptBehavior is the behavior aspect root for one concept. It holds per-concept methods and a mandatory constructor, written in BaseLanguage and smodel.
Can a constructor access the parent node?
No. Constructors run before the node is attached to the model, so parent and descendants evaluate to null. The source suggests a NodeFactory in the actions aspect for that context.
Are behavior methods inherited by sub-concepts?
Non-virtual methods are inherited but statically bound and cannot be overridden. Only virtual methods are dispatched at runtime and can be overridden in sub-concept behaviors.
How do I install mps-aspect-behavior?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mps-aspect-behavior free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mps-aspect-behavior 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-aspect-behavior?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
