a↗agentbay.Get AgentBay
My account ▾
Menu
Back to results

mps-model-manipulation

Use when writing or editing MPS BaseLanguage code that lives inside a model — behavior methods, typesystem rules, checking rules, generator queries, constraints, intentions, scope/canBe callbacks, dataflow builders — and uses the `smodel` language extension. Covers querying nodes (`.descendants<C>`, `.ancestor<C>`, `.children`, `.parent`,…

Full publisher description

Use when writing or editing MPS BaseLanguage code that lives inside a model — behavior methods, typesystem rules, checking rules, generator queries, constraints, intentions, scope/canBe callbacks, dataflow builders — and uses the `smodel` language extension. Covers querying nodes (`.descendants<C>`, `.ancestor<C>`, `.children`, `.parent`, `containingRoot`, `.ofConcept<C>`), creating and mutating nodes (`new node<C>()`, `add new(C)`, `set new(C)`, `replace with new(C)`, `.detach`, `.copy`), property and link access (`SPropertyAccess`, `SLinkAccess`, `SLinkListAccess`), reference operations (`.reference/C : role/`, `.target`), null-safe node equality (`:eq:` / `:ne:`), smodel/Java type casts (`node:C`, `node as C`, `/`), the `command` / `read action` lock wrappers, and JSON blueprints for every shape the Java parser cannot produce. Collection operations and closures (`.where`, `.select`, `.translate`, `{ it => }`) are in the companion skill `mps-collections-and-closures`; most bodies need both.

Source details

Read SKILL.md ↗ · Browse skill folder ↗

JetBrains/MPS

.agents/skills/mps-model-manipulation/SKILL.md

Pinned revision e2b9a4a9fb58b3ca1b33ddd762231005ce953c15

Source checked

Reviewed licence: Apache-2.0
repository

Reviewed publisher revision ↗ · 2026-11-22

This skill page is available in English. Publisher instructions stay in their original language.