Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

msw-ui-system

БесплатноЗапускает вложенные скриптыНе проверен

MSW `.ui` single entry point — design + component API + builder + runtime. Anchor/pivot/RectTransform, UIGroup/CanvasGroup hierarchy, layout recipes…

MSW-Gitот MSW-Git★ 38 звёзд на GitHub

Об этом скилле

msw-ui-system

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

0. Routing

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. Basic Workflow

(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

2. Global Rules

NEVER

  1. **Do not directly edit .ui JS
Полный SKILL.md на GitHub

Установить msw-ui-system в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/component-api.mdreferences/layout-recipes.mdreferences/runtime-patterns.mdreferences/templates/scripts/ruid-lookup.cjsreferences/templates/scripts/ui-structure.cjsreferences/templates/style-1-black/ButtonGroup.uireferences/templates/style-1-black/DefaultGroup.uireferences/templates/style-1-black/HUDGroup.uireferences/templates/style-1-black/PopupGroup.uireferences/templates/style-1-black/Popupbutton.mluareferences/templates/style-1-black/ToastGroup.uireferences/templates/style-1-black/ruid-map.mdreferences/templates/style-1-black/structure.mdreferences/templates/style-2-diary/HUDGroup.uireferences/templates/style-2-diary/PopupGroup.uireferences/templates/style-2-diary/Popupbutton.mluareferences/templates/style-2-diary/Popupbutton.uireferences/templates/style-2-diary/ToastGroup.uireferences/templates/style-2-diary/TrashBin.uireferences/templates/style-2-diary/ruid-map.mdreferences/templates/style-2-diary/structure.mdreferences/templates/style-3-wood/ButtonGroup.uireferences/templates/style-3-wood/DefaultGroup.uireferences/templates/style-3-wood/HUDGroup.uireferences/templates/style-3-wood/PopupGroup.uireferences/templates/style-3-wood/Popupbutton.mluareferences/templates/style-3-wood/ToastGroup.uireferences/templates/style-3-wood/ruid-map.mdreferences/templates/style-3-wood/structure.mdreferences/templates/style-4-blue/ButtonGroup.uireferences/templates/style-4-blue/DefaultGroup.uireferences/templates/style-4-blue/HUDGroup.uireferences/templates/style-4-blue/PopupGroup.uireferences/templates/style-4-blue/Popupbutton.mluareferences/templates/style-4-blue/ToastGroup.uireferences/templates/style-4-blue/ruid-map.mdreferences/templates/style-4-blue/structure.mdreferences/templates/templates.mdreferences/ui-fundamentals.mdreferences/ui-hierarchy.md

FAQ

Что делает скилл msw-ui-system?

MSW `.ui` single entry point — design + component API + builder + runtime. Anchor/pivot/RectTransform, UIGroup/CanvasGroup hierarchy, layout recipes (HUD/popup/toast/menu/inventory/scroll-list/ranking/leaderboard/quest list/friend list/mailbox), full API tables for ButtonComponent/TextGUIRendererComponent/SpriteGUIRendererComponent/ScrollLayoutGroup/GridView/TextInput/Slider/Mask/AvatarGUIRenderer + UI enums (AlignmentType/TextOverflowMode/ImageType/FillAmount), `.mlua` runtime patterns (popup open-close, toast, HP bar, GridView, drag, tab, cooldown, world nametag), UI tween animation (easing, enter/exit, press feedback, pulse), UI-client-only caveats (nil on server, no RPC), `.ui`↔`.mlua` UUID auto-binding (write+injectBindings), resolution/safe-area/touch. UIBuilder (msw_ui_builder.cjs): all node types (empty/panel/text/sprite/button/slider/scrollLayout/textInput/group/mask/gridView/avatar/skeleton etc.), component add/replace/patch/remove, 13 anchor presets+stretch.

Как установить скилл msw-ui-system?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл msw-ui-system запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить msw-ui-system с