Структурные концепции и типы в MPS

★ 7.9 · vibe-coding

mps-aspect-structure-concepts is a Claude Code skill that guides defining concepts, interface concepts, enumerations, and constrained data types in the structure aspect of a JetBrains MPS language. It covers smart-reference detection to determine when a conceptAlias should be left empty, cardinality rules for child collections, INamedConcept implementation as the correct alternative to declaring a name property directly, and bulk creation via mps_mcp_alter_structure alongside mps_mcp_query_structure queries. The skill also explains MPS attribute annotations — NodeAttribute, PropertyAttribute, ChildAttribute, and LinkAttribute — which attach extra data to concepts outside your ownership without subclassing them. Aimed at DSL authors working on MPS language structure models, it includes a rebuild directive requiring mps_mcp_alter_nodes with MAKE and rebuild=true after structural changes so new concepts become discoverable at runtime.