Настройка аспекта Actions в MPS
★ 7.9 · engineering
mps-aspect-actions is a Claude Code skill that covers defining and editing the MPS actions aspect: `NodeFactories` root nodes, per-concept `NodeFactory` children with `NodeSetupFunction` bodies, and the aspect's `CopyPasteHandlers` and `PasteWrappers` roots. Use it when a substitution, side transform, or completion replacement must carry fields from the replaced node (`sampleNode`) into the freshly created `newNode`. The skill documents critical constraints — one `NodeFactories` root per actions model, mandatory `ifInstanceOf` narrowing before accessing `sampleNode` fields, and the fact that `newNode.parent` and model-wide queries return null inside the setup function. It walks through the full workflow: creating the aspect model via `mps_mcp_create_model`, inserting roots with `mps_mcp_insert_root_node_from_json`, filling setup bodies, and validating with `mps_mcp_check_root_node_problems` before rebuilding. Aimed at MPS language engineers who need editor-driven, context-sensitive node initialization.
- #mps
- #actions-aspect
- #node-factories
- #mps-editor
- #initialization