mps-aspect-textgen
Skill by JetBrains
Guides authoring and debugging of MPS TextGen, the model-to-text serialisation step in MPS languages. Aimed at MPS language developers who generate source files, config, scripts, DDL, XML or markdown.
Install mps-aspect-textgen
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/.agents/skills/mps-aspect-textgen ~/.claude/skills/mps-aspect-textgenRun 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/.agents/skills/mps-aspect-textgen ~/.gemini/antigravity-cli/skills/mps-aspect-textgenAntigravity 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 authoring and debugging MPS TextGen, the part of an MPS language that serialises models into plain text files. It covers ConceptTextGenDeclaration roots, append, indent buffer and with indent statements, text layout areas, context objects such as imports sets, attributes, binary write, and the base text gen component. It also explains the indentation-buffer model.
The skill sets out a common workflow: create the textGen model, add the required used languages, insert a root for each concept, fill the textGenBlock body, then validate with mps_mcp_check_root_node_problems and rebuild. Reference files cover statement vocabulary, JSON shapes for MCP inserts, dispatch rules, and common failures. It is aimed at developers building or maintaining MPS languages whose output is text.
Written from the project's SKILL.md and checked against it.
What it can do
- ConceptTextGenDeclaration rootsExplains one root per concept to serialise, with extension, filename and encoding slots.
- Append and indentationCovers append, indent buffer and with indent statements for writing indented text.
- Layout and context objectsDescribes multi-region files and per-generation state such as imports sets.
- Dispatch rulesExplains concept-exact dispatch and when extending concepts need their own declaration.
- Binary write and errorsCovers write for binary output and found error for reporting problems.
- MCP insert guidanceGives JSON shapes for inserting textGen nodes with mps_mcp_insert_root_node_from_json.
- Debugging misgenerationExplains how to tell generator faults from TextGen faults using the last step model.
What you need
- MPS MCP tools such as mps_mcp_create_model and mps_mcp_insert_root_node_from_json
- An MPS language with a textGen model
Try asking
- Add a TextGen root that serialises my DDL concept with proper indentation.
- Why is my generated XML missing output for a subclass concept?
- Add an imports layout area to my markdown language's textGen model.
Good to know
- TextGen dispatch is concept-exact, so extending concepts need their own declaration.
- A TextGen rule emits either text or binary bytes, not both.
- The deprecated $ref{node.reference<target>} syntax should not be used.
- Edits should go through MPS MCP tools rather than hand-editing .mps files.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/mps-aspect-textgen/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mps-aspect-textgen
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-textgen: common questions
When should I use MPS TextGen?
Use TextGen when the final artifact is text. If a pipeline ends in a model-to-model step targeting another MPS language, that language's own TextGen handles the final output.
Why is my indentation wrong in TextGen output?
Whitespace is emitted only when indent buffer is called, so each newline should be paired with indent buffer on the next line that needs indentation. The skill recommends with indent blocks.
Does this skill depend on other skills?
It points to mps-aspect-generator for the model-to-model step that usually precedes TextGen, along with other companion skills that are loaded only when needed.
How do I install mps-aspect-textgen?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mps-aspect-textgen free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mps-aspect-textgen 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-textgen?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
