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★ 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:
- Inspect the target page and adjacent pages to learn the module's real layout, spacing, component usage, and wording.
- Confirm the project uses Ant Design Vue and
@ant-design/icons-vue, not Element Plus, Naive UI, Arco, or Ant Design React. - Confirm theme variables come from
src/style.cssandsrc/composables/useTheme.ts. - Prefer existing components, layout classes, theme tokens, and wording before adding new ones.
- Check both light and dark mode for readability when UI colors, borders, backgrounds, or status colors change.
- Keep the UI inside the existing Electron desktop business-product language.
Visual Direction
- Treat pages as desktop operational tools, not marketing pages.
- Prefer clarity, scanability, consistency, and low distraction.
- Do not create page-specific color systems, button systems, radii, shadows, decorative gradients, ornamental backgrounds, or business-irrelevant illustrations.
- Use page structure appropriate to the app: title, query/filter area, action area, table/list/card content, pagination or footer actions.
- Keep page margins at 24px or 32px unless a local pattern requires otherwise.
- Avoid nested cards except for repeated list items or genuinely framed subtools.
- 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:
- Keep the override inside scoped styles.
- 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. - Avoid global
.ant-*overrides unless the task is a deliberate project-wide token or global fix. - Avoid
!important; if unavoidable, document the reason.
Tokens And Styling
- Use Ant Design tokens or existing CSS variables for colors, backgrounds, borders, spacing, radius, shadow, and text.
- Main spacing should follow 4px/8px multiples: 8, 16, 24, 32 are the usual anchors.
- Use restrained type scales: 12, 14, 16, 18, 20, 24 for normal business pages.
- Cards and modals usually use 8px or 12px radius; controls use Ant Design defaults.
- Use light shadows sparingly; backend pages should not feel floaty.
- Styles default to scoped and semantic kebab-case classes.
Theme And Dark Mode
- The single theme source of truth is
src/composables/useTheme.ts: it toggles thedarkclass on<html>and injects all--ant-*variables on:root.ConfigProviderruns withoutcssVar, so AntD token variables do not exist at runtime unlessuseThemedefines them. - In CSS, prefer
--ant-*tokens that already adapt to the theme. When a distinct dark value is unavoidable, key it on thehtml.darkancestor selector inside scoped styles. Never use@media (prefers-color-scheme: ...)in components; it follows the OS instead of the app theme. - Never invent theme hooks such as
[data-theme='dark']or a.lightclass; nothing in the codebase sets them, so such rules are dead code. - In JS/TS, derive theme-dependent values from the reactive
isDarkexported byuseTheme. Never readwindow.matchMedia('(prefers-color-scheme: ...)')outsideuseTheme.ts; a matc
Установить mas-frontend-ui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic