k-fenui
БесплатноБез исполняемых скриптовНе проверенContext for FenUI, the Blizzard-first UI widget library vendored in Mechanic/Libs/FenUI. Covers the real factory API (FenUI:CreatePanel, CreateButton…
Об этом скилле
FenUI
FenUI is a progressive-enhancement widget layer over Blizzard's frames and templates, with a design-token theme system. The copy in Mechanic/Libs/FenUI/ is synced from the FenUI source repo (_dev_/Libs/FenUI); fix FenUI in its own repo and re-sync rather than patching the vendored copy. Authoritative docs: Mechanic/Libs/FenUI/README.md and Mechanic/Libs/FenUI/AGENTS.md.
Access and degradation
FenUI is a plain global (FenUI = FenUI or {} in Core/FenUI.lua), not a LibStub library. The library is embedded through Libs\FenUI\FenUI.xml. Always guard when FenUI is optional:
if FenUI and FenUI.CreatePanel then
frame = FenUI:CreatePanel(parent, config)
else
frame = CreateFrame("Frame", nil, parent, "BackdropTemplate") -- fallback
end
Factories
Pattern: FenUI:Create<Widget>(parent, config) returns a Blizzard frame with a mixin applied. A string config is accepted by CreatePanel (title) and CreateButton (text). Builder forms exist for a few: FenUI.Panel(parent):title("..."):build(), FenUI.Flex, FenUI.Stack, FenUI.TabGroup, FenUI.Group.
| Area | Factories |
|---|---|
| Containers | CreatePanel, CreateInset, CreateScrollPanel, CreateScrollInset, CreateCard, CreateDialog, CreateSection, CreateGroup |
| Layout | CreateLayout, CreateStack, CreateFlex, CreateGrid, CreateSplitLayout, CreateToolbar |
| Controls | CreateButton, CreateIconButton, CreateCloseButton, CreateImageButton, CreateCheckbox, CreateInput, CreateMultiLineEditBox, CreateDropdown, CreateScrollBar |
| Navigation and lists | CreateTabGroup, CreateTree, CreateVirtualList |
| Display | CreateImage, CreateSectionHeader, CreateStatusRow, CreateInfoPanel, CreateEmptyState, CreateRoundedBox, CreateChevron |
| Theming UI | CreateThemePicker, CreateThemeOption, CreateSettingsGroup |
local panel = FenUI:CreatePanel(UIParent, { title = "My Window", width = 400, height = 300,
movable = true, resizable = true, closable = true })
local stack = FenUI:CreateStack(panel, { direction = "vertical", gap = "md", align = "stretch", padding = "sm" })
stack:AddChild(topButton)
stack:AddChild(spacer, { grow = 1 })
local tabs = FenUI:CreateTabGroup(panel, {
tabs = { { key = "main", text = "Main" }, { key = "settings", text = "Settings", badge = "!" } },
onChange = function(key) end,
})
local grid = FenUI:CreateGrid(panel, { columns = { 24, "1fr", "auto" }, rowHeight = 24,
onRowClick = function(row, data) end })
local button = FenUI:CreateButton(panel, { text = "Click me", onClick = function() end })
Sizes accept numbers, percentages ("50%"), viewport units and "auto"; minWidth/maxWidth/aspectRatio constrain layouts. Check the factory's config handling in Widgets/<Name>.lua for the exact keys before using one you have not used.
Tokens and themes
- Colors:
FenUI:GetColor(token),GetColorRGB,GetColorHex,GetColorTable; spacingFenUI:GetSpacing("spacingPanel"); radiusFenUI:GetRadius("radiusControl"). Three tiers: primitive, semantic, component. Use semantic tokens (textDefault,textHeading,surfacePanel), not raw colors. - Themes:
FenUI:GetThemeList(),FenUI:SetGlobalTheme(name),FenUI:GetGlobalTheme(),FenUI:OnThemeChanged(callback). A global theme change re-colors live widgets; a custom widget that resolves token colors once definesRefreshTheme()and callsFenUI:RegisterThemedFrame(widget). - Blizzard scroll frames can be skinned with
FenUI:SkinScrollFrame.
Mechanic conventions
- Use FenUI widgets instead of raw frames where one exists; add new widgets to FenUI itself.
- Type scale and neutral headings follow the Obsidian look (
Mechanic/CHANGELOG.md1.3.7): gold only for the window title, active tab, selection and focus. - Keep the view layer thin and test at several UI scales.
- Mechanic's
Utils.luafalls back gracefully when FenUI helpers are missing.
Установить k-fenui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл k-fenui?
Context for FenUI, the Blizzard-first UI widget library vendored in Mechanic/Libs/FenUI. Covers the real factory API (FenUI:CreatePanel, CreateButton, CreateStack, CreateTabGroup, CreateGrid), design tokens, themes and graceful degradation. Load when building or changing addon UI. Triggers: fenui, ui, widget, panel, layout, stack, tabs, grid, theme, tokens.
Как установить скилл k-fenui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл k-fenui запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic