Command Palette

Search for a command to run...

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

mas-frontend-ui

БесплатноБез исполняемых скриптовНе проверен

Use when working on AUTO-MAS frontend UI, Ant Design Vue components, page layout, forms, tables, modals, drawers, feedback, empty/loading/error states, drag…

AUTO-MAS-Projectот AUTO-MAS-Project★ 821 звезда на GitHub

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

MAS Frontend UI

Objective

Keep AUTO-MAS UI changes consistent with an Electron desktop business operations platform: dense enough for repeated work, quiet enough for long sessions, and aligned with Ant Design Vue 4.x.

Authority

This skill is self-contained for AUTO-MAS UI rules. Nearby existing pages are still the authority for module-specific layout, wording, and visual rhythm when they do not conflict with this skill.

UI Intake

Before editing UI:

  1. Inspect the target page and adjacent pages to learn the module's real layout, spacing, component usage, and wording.
  2. Confirm the project uses Ant Design Vue and @ant-design/icons-vue, not Element Plus, Naive UI, Arco, or Ant Design React.
  3. Confirm theme variables come from src/style.css and src/composables/useTheme.ts.
  4. Prefer existing components, layout classes, theme tokens, and wording before adding new ones.
  5. Check both light and dark mode for readability when UI colors, borders, backgrounds, or status colors change.
  6. Keep the UI inside the existing Electron desktop business-product language.

Visual Direction

  1. Treat pages as desktop operational tools, not marketing pages.
  2. Prefer clarity, scanability, consistency, and low distraction.
  3. Do not create page-specific color systems, button systems, radii, shadows, decorative gradients, ornamental backgrounds, or business-irrelevant illustrations.
  4. Use page structure appropriate to the app: title, query/filter area, action area, table/list/card content, pagination or footer actions.
  5. Keep page margins at 24px or 32px unless a local pattern requires otherwise.
  6. Avoid nested cards except for repeated list items or genuinely framed subtools.
  7. Do not use marketing-style hero sections, decorative gradients, ornamental backgrounds, or unrelated illustrations in business screens.

Ant Design Vue Usage

Need Prefer
Layout a-layout, a-menu, a-tabs, a-card, a-space, a-flex, a-row, a-col
Form input a-form, a-form-item, a-input, a-input-number, a-select, a-switch, a-checkbox, a-radio, a-date-picker
Data display a-table, a-tag, a-empty, a-statistic, a-typography
Feedback a-modal, Modal.confirm, message, a-spin, a-progress, a-alert
Icons @ant-design/icons-vue

Use default component styles, official props, slots, layout components, and theme tokens first. Custom CSS is for local layout constraints or real readability needs.

When overriding Ant Design Vue internals:

  1. Keep the override inside scoped styles.
  2. Use :deep() under the current component root class only when the rendered DOM is actually its descendant. Ant Design portal shells may lack the component scope attribute; inspect the DOM and computed styles, then use a narrowly namespaced :global(.module-modal .ant-modal-body) when needed.
  3. Avoid global .ant-* overrides unless the task is a deliberate project-wide token or global fix.
  4. Avoid !important; if unavoidable, document the reason.

Tokens And Styling

  1. Use Ant Design tokens or existing CSS variables for colors, backgrounds, borders, spacing, radius, shadow, and text.
  2. Main spacing should follow 4px/8px multiples: 8, 16, 24, 32 are the usual anchors.
  3. Use restrained type scales: 12, 14, 16, 18, 20, 24 for normal business pages.
  4. Cards and modals usually use 8px or 12px radius; controls use Ant Design defaults.
  5. Use light shadows sparingly; backend pages should not feel floaty.
  6. Styles default to scoped and semantic kebab-case classes.

Theme And Dark Mode

  1. The single theme source of truth is src/composables/useTheme.ts: it toggles the dark class on <html> and injects all --ant-* variables on :root. ConfigProvider runs without cssVar, so AntD token variables do not exist at runtime unless useTheme defines them.
  2. In CSS, prefer --ant-* tokens that already adapt to the theme. When a distinct dark value is unavoidable, key it on the html.dark ancestor selector inside scoped styles. Never use @media (prefers-color-scheme: ...) in components; it follows the OS instead of the app theme.
  3. Never invent theme hooks such as [data-theme='dark'] or a .light class; nothing in the codebase sets them, so such rules are dead code.
  4. In JS/TS, derive theme-dependent values from the reactive isDark exported by useTheme. Never read window.matchMedia('(prefers-color-scheme: ...)') outside useTheme.ts; a matc
Полный SKILL.md на GitHub

Установить mas-frontend-ui в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/css-variable-audit.mdreferences/electron-overlays.md

FAQ

Что делает скилл mas-frontend-ui?

Use when working on AUTO-MAS frontend UI, Ant Design Vue components, page layout, forms, tables, modals, drawers, feedback, empty/loading/error states, drag interactions, dark mode, or visual polish.

Как установить скилл mas-frontend-ui?

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить mas-frontend-ui с