mps-aspect-dataflow
Skill by JetBrains
Explains how to define and debug JetBrains MPS dataflow builders for a concept. Covers emit instructions, positions, and the engine used for reachability and variable-use checks.
Install mps-aspect-dataflow
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-dataflow ~/.claude/skills/mps-aspect-dataflowRun 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-dataflow ~/.gemini/antigravity-cli/skills/mps-aspect-dataflowAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install mps-aspect-dataflow in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The mps-aspect-dataflow skill is a reference for writing and debugging dataflow builders in JetBrains MPS. A DataFlowBuilderDeclaration describes, for a concept, the order in which execution may visit its children and which variables are read or written. The builder body is a BaseLanguage statement list that emits instructions such as code for, jump, ifjump, label, read, write and ret. The MPS dataflow engine turns these into a control-flow graph.
The skill covers positions such as AfterPosition, BeforePosition and LabelPosition, the jetbrains.mps.lang.dataFlow language, the NodeParameter implicit, and IBuilderMode for analyses such as nullable tracking. It describes a workflow for creating the dataflow model, rebuilding the language, and printing the emitted program to find why a check reports unreachable code or uninitialised variables. It is aimed at MPS language developers who define or debug these builders.
Written from the project's SKILL.md and checked against it.
What it can do
- Define buildersCreate a DataFlowBuilderDeclaration with a BuilderBlock for a concept.
- Emit instructionsUse code for, jump, ifjump, label, read, write, ret and mayBeUnreachable in builder bodies.
- Choose positionsGuidance on AfterPosition, BeforePosition and LabelPosition for loops and branches.
- Create dataflow modelUses mps_mcp_create_model to create the dataflow model for a language.
- Rebuild and checkUses mps_mcp_alter_nodes and mps_mcp_check_root_node_problems to rebuild and validate a sample.
- Inspect emitted programUses mps_mcp_query_dataflow with PRINT_PROGRAM to see the instructions a builder emits.
- Print example buildersUses mps_mcp_print_node with deep set to true to study known-good builders.
- Query def-useUses REACHING_WRITES and REACHING_READS to answer def-use questions on user code.
What you need
- JetBrains MPS
- MPS MCP node tools (mps_mcp_* tools)
Try asking
- Write a dataflow builder for my MPS if statement concept
- Debug why my MPS check reports unreachable code
- Print the emitted dataflow program for a sample root node
Good to know
- Do not hand-edit serialized .mps dataflow files; use MPS MCP node tools
- Companion skills must be loaded from the same origin as this skill
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/mps-aspect-dataflow/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mps-aspect-dataflow
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-dataflow: common questions
What is a DataFlowBuilderDeclaration in MPS?
It describes, for a given concept, in what order execution may visit its children and which variables are read or written. The MPS dataflow engine uses it for reachability and variable-use checks.
Why does code for not work like a call?
The source says code for is delegation: it inlines a child's own builder at that point. Jump is not used for child delegation.
How do I debug a builder that gives wrong unreachable results?
Rebuild the language, run mps_mcp_query_dataflow with PRINT_PROGRAM on a small sample, and follow jumpTo and succ to find the faulty builder rule.
How do I install mps-aspect-dataflow?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mps-aspect-dataflow free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mps-aspect-dataflow 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-dataflow?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
