/msw-maker-base-skill:msw-ui-systemfrom msw-maker-base-skill
Single entry point for MSW .ui system covering design guide, component API, builder invocation, and runtime patterns.
Ships in msw-maker-base-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
MSW .ui single entry point — design guide + component API + builder invocation + runtime patterns bundled into one skill.
Role division with existing skills:
| Skill | Responsibility |
|---|---|
msw-ui-system (this skill) | Everything .ui — design (which/when/why), component API/enum (what), builder invocation (how to mutate), runtime mlua patterns. .ui mutations must always go through this skill's builder |
references/templates/ | Pre-built style bundles — .ui + ruid-map + button handler packages |
Branch to sub-references based on request keywords.
| Trigger | Reference Document |
|---|---|
| "anchor/pivot/coordinates/why is the position wrong", "RectTransform", "stretch" | references/ui-fundamentals.md §1–§8 |
| "mobile", "safe area", "1920", "MobileOnly", "ActivePlatform", "touch size", "PC reserved zone", "font size by device" | references/ui-fundamentals.md §9 |
| "UIGroup", "above popup", "z-order", "displayOrder", "CanvasGroup", "opacity propagation", "Enable vs Visible" | references/ui-hierarchy.md; for runtime sibling reorder also read references/runtime-patterns.md §7 |
| "which component", "Sprite vs Text vs Button", "9-slice", "scroll list", "GridView vs ScrollLayoutGroup" | references/component-api.md §"Component Selection Guide" |
| "sprite pivot", "9-slice border", "slice boundary", "set sliced asset metadata", "resource storage properties" | Set asset-side metadata via msw-mcp asset_update_resource_storage_info directly; for the .ui side see references/component-api.md §"SpriteGUIRenderer — ImageType Selection" |
| "make a HUD", "popup placement", "toast", "menu", "inventory grid", "scroll list", "ranking", "leaderboard", "quest list", "friend list", "mailbox" | references/layout-recipes.md |
| "connect .mlua after building with .ui builder", "property default UUID", "binding without drag" | ../msw-general/references/builder-protocol-ui.md §3.6 Binding Injection (unified entry point — load with the builder-protocol.md core) |
Runtime UI component field read/write, component property name/type (ButtonComponent.Colors, TextGUIRendererComponent.Overflow, SpriteGUIRendererComponent.FillAmount…) | references/component-api.md required before every .mlua access to UI component fields |
Enum values (AlignmentType, TextOverflowMode, ImageType, UIBasicParticleType…) | references/component-api.md §Enums |
| Runtime mlua patterns (popup open/close, toast fade, HP bar, GridView, drag, tab, cooldown), Runtime UI Caveats (client-only, server-side nil, etc.) | references/runtime-patterns.md |
.ui builder invocation methods (UIBuilder API, anchor presets, write auto-lint, component add/patch/remove) | ../msw-general/references/builder-protocol-ui.md §3 UIBuilder (unified entry point — load with the builder-protocol.md core; .map MapBuilder / .model ModelBuilder live in sibling per-builder files) |
| "sound", "sfx", "click sound", "hover sound", "button audio", "PlaySound" | references/ui-sound.md |
| "animation", "tween", "easing", "popup enter/exit", "slide in", "fade in", "button press feedback", "pulse", "juice", "make it feel better" | references/ui-motion.md |
(1) Clarify intent Layout sketch (ASCII or verbal) + which group to attach to
(2) Check design guide Match at least one of ui-fundamentals / ui-hierarchy / component-api §Component Selection Guide
(3) Builder Preflight Read ../msw-general/references/builder-protocol.md (core) + builder-protocol-ui.md §3 (unified call-protocol entry point)
(4) Match recipe Select the closest template from layout-recipes.md
(5) Invoke builder Create/patch via scripts/msw_ui_builder.cjs (protocol: builder-protocol-ui.md §3)
(6) Inject bindings Auto-inject .mlua property default UUIDs via b.write(path, { bind: {...} }) or b.injectBindings(...) (builder-protocol-ui.md §3.6 Binding Injection)
(7) Self-verify write() auto-runs scripts/ui_lint.cjs (strict ON by default)
(8) Preview Visual check via scripts/preview_ui_layout.cjs
(9) Sound pass For any interactive button, offer click/hover SFX wiring (references/ui-sound.md)
(10) Maker Refresh Apply to engine
.ui JSON — .ui creation/modification must go through scripts/msw_ui_builder.cjs. Manual editing breaks UUID·ValueType·@components consistency and causes silent drops..ui files through the builder too — Query via UIBuilder.read(filepath) / .find() / .listEntities(). Do not directly grep/parse raw JSON.
.ui direct Read and shell commands such as cat / type / Get-Content / rg / grep / sed / awk / cp / mv are blocked by the registered guard. Use UIBuilder.read/load/snapshot for reads and b.write() for writes. Deleting an entire .ui file has no builder API — delete it with node -e "require('fs').unlinkSync('ui/<File>.ui')" then maker_refresh_workspace (shell rm/cat are guard-blocked; a node -e builder call is not).Position directly — Use only anchoredPosition (Position is engine-managed). This includes the tween helpers that write Position for you: _TweenLogic:MoveTo / MoveOffset / RotateAroundOffset are world-entity APIs (references/ui-motion.md §2)anchoredPosition — Do not mix the two modes.mlua property defaults are not updated — Binding breaks../msw-general/references/builder-protocol.md (core) + ../msw-general/references/builder-protocol-ui.md §3 must be in context before any .ui mutation (read them only if never loaded this session or lost to compaction) (UIBuilder API, write auto-lint, pos / anchor rules, binding injection, coverage gaps). The core carries the shared contract and cross-builder flow; .map MapBuilder / .model ModelBuilder live in sibling per-builder files — one unified entry point because the cross-flow is interlocked.ui-fundamentals / ui-hierarchy / component-api §Component Selection Guide)pos = ±(margin + size/2).ui root UIGroup, standalone show/hide; use empty() / panel() for inner containers, never nested group()UpperLeft(0) alignment value — set MiddleCenter(4). Alignment defaults are centered in both text component generationsreferences/ui-sound.md (default UI SFX RUIDs available). Skip only if the user explicitly opts out or the button is purely decorative."Parent/Child" paths so they move / fade / toggle / bind as a block. Create each parent before its children; missing parents fail lint (L025 ERROR).ui_lint reports this as L030 WARN. Nest the text under the box, use button() for clickable labeled boxes, or put a direct label on panel() / sprite() via their text options.references/ui-fundamentals.md — Coordinate system, RectTransform 3 elements, anchor mode determination (§1–§8) + Resolution·safe area·PC reserved zones·touch targets·font sizes·platform separation (§9)references/ui-hierarchy.md — UIGroup / displayOrder / CanvasGroup / Enable vs Visiblereferences/component-api.md — §"Component Selection Guide" (which/when/why) + full component property/method/event tables (what) + all UI-related enum values (§Enums)references/layout-recipes.md — Layout template collectionreferences/runtime-patterns.md — .mlua runtime patterns (popup/toast/HP/grid/drag…) + Runtime UI Caveatsreferences/ui-sound.md — UI sound integration (_SoundService:PlaySound, click/hover hook, default UI SFX RUIDs)references/ui-motion.md — _TweenLogic tween API, EaseType selection, which properties are safe to animate on UI, Tweener cleanup, popup enter/exit + press feedback + pulse recipes../msw-general/references/builder-protocol-ui.md §3 — .ui CJS builder call protocol (unified entry point — load with the builder-protocol.md core) — .map MapBuilder / .model ModelBuilder live in sibling per-builder files. panel / text / sprite / button / slider / scroll / script / group / mask / grid / avatar / touchReceive / skeleton / areaParticle / basicParticle, component CRUD, anchor presets, write auto-lint, and .mlua property UUID auto-binding all live in §3 + §3.6.references/templates/templates.md — Pre-built style bundle index (style-N-* .ui, ruid-map.md, Popupbutton.mlua)scripts/msw_ui_builder.cjs — .ui builder core (UIBuilder class). Read ../msw-general/references/builder-protocol.md (core) + ../msw-general/references/builder-protocol-ui.md §3 (unified entry point) before use.scripts/preview_ui_layout.cjs — .ui layout visual check + touch target warningsscripts/ui_lint.cjs — .ui file self-verification (auto-called by write())scripts/ui_recipe.cjs — Recipe-based scaffolding.map / .model / .tileset builders — Outside this skill's scope.ui JSON schema (raw field shapes, @type/@components wrapping, AlignmentOption 0–15 mapping, etc.) — Handled internally by the builder. Users/AI do not need to know directlyTransition.Disabled, validation messages, loading spinners) — Not covered; design ad-hoc per projectui_lint.cjs and preview_ui_layout.cjs — Not providedMaterialId) — Field is exposed but authoring shaders is outside this skill's scopereferences/component-api.md (opens in a new tab)references/layout-recipes.md (opens in a new tab)references/runtime-patterns.md (opens in a new tab)references/templates/scripts/ruid-lookup.cjs (opens in a new tab)references/templates/scripts/ui-structure.cjs (opens in a new tab)references/templates/style-1-black/ButtonGroup.ui (opens in a new tab)references/templates/style-1-black/DefaultGroup.ui (opens in a new tab)references/templates/style-1-black/HUDGroup.ui (opens in a new tab)references/templates/style-1-black/PopupGroup.ui (opens in a new tab)references/templates/style-1-black/Popupbutton.mlua (opens in a new tab)references/templates/style-1-black/ToastGroup.ui (opens in a new tab)references/templates/style-1-black/ruid-map.md (opens in a new tab)references/templates/style-1-black/structure.md (opens in a new tab)references/templates/style-2-diary/HUDGroup.ui (opens in a new tab)references/templates/style-2-diary/PopupGroup.ui (opens in a new tab)references/templates/style-2-diary/Popupbutton.mlua (opens in a new tab)references/templates/style-2-diary/Popupbutton.ui (opens in a new tab)references/templates/style-2-diary/ToastGroup.ui (opens in a new tab)references/templates/style-2-diary/TrashBin.ui (opens in a new tab)references/templates/style-2-diary/ruid-map.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub msw-git/msw-ai-coding-plugins-official --plugin msw-maker-base-skill13 skills in this plugin
/msw-avatarMSW avatar management — costume (CostumeManagerComponent, 17 slots) + animation 3-layer pipeline (StateComponent → AvatarStateAnimationComponent → AvatarRendererComponent). Four-level distinction: State key (uppercase) / AvatarBodyActionStateName (lowercase) / MapleAvatarBodyActionState enum / sprite action ID (swingO1, shoot1). Two mapping systems via IsLegacy/ActionSheet/StateToAvatarBodyActionSheet. PlayerControllerComponent auto-transition conflicts with ActionStateChangedEvent resolved via RemoveActionSheet/SetActionSheet/BodyActionStateChangeEvent. Applies to any avatar-bearing entity (NPC, monster, etc.), not only DefaultPlayer. Use for costume get/set, 17 equip slots, animation state mapping, action override, weapon-specific attack motion, custom shoot/cast/dance action. Keywords: avatar, costume, animation, state, action, shoot, swing, weapon, equipment, custom action, block auto playback, remap./msw-behaviourtreeAuthors MSW `.behaviourtree` files end-to-end and maintains the project-specific authoring spec (`.behaviourDocs/bt-spec.md`). Scans every `.codeblock` whose paired `.mlua` extends `ActionNode`/`DecoratorNode`/`CompositeNode` to build a compact catalog of custom action/decorator/composite UUIDs, propertyKey names, and version-stamped MODNativeType strings. Then generates the full tree: RootNode → Nodes graph, Blackboard variables, nodeProperties wiring, and self-validates parent/child consistency. Triggers: 'create behaviourtree', 'new BT', 'add a behaviour tree', 'BT node graph', '비헤이비어 트리 만들어', '.behaviourtree 생성', 'SequenceNode SelectorNode', 'Blackboard variable', 'definitionId codeblock', 'startNodeId', 'build BT spec', 'refresh bt-spec', 'generate behaviourtree catalog', 'BT 스펙 생성', 'bt-spec.md 만들어', 'rescan BT nodes'.Other plugins' skills for the same job