Skills для агентів

Окремі посібники, які Claude Code, Codex і OpenCode знаходять у будь-якому робочому просторі з Volt UI. MCP-сервер каже, що містить Volt; skills вчать, коли і як ним користуватися.

Що це

npx @voltui/agent встановлює skills у теку, яку сканує ваш агент: .claude/skills/ для Claude Code, .agents/skills/ для Codex і OpenCode. Cursor, Windsurf, Copilot і Gemini CLI натомість отримують короткий блок правил з тими самими конспектами. Жодна skill не копіює API компонента: точні селектори та входи надає MCP-сервер.

Встановіть skills

Найшвидший спосіб — інсталятор агентів Volt UI, який заодно підключає MCP-сервер. Запустіть його з теки проєкту:

npx @voltui/agent claude

Що охоплюють skills

  • •Впровадження — використовуйте наявний атом, перш ніж будувати UI вручну; нативний HTML лише там, де він доречний
  • •Вибір компонента — Button чи посилання, Select чи Combobox, Dialog чи Drawer, Alert чи Toast
  • •Форми — Form Field, Reactive Forms, aria-disabled проти disabled, Combobox із серверними даними
  • •Оверлеї — діалоги за тригером, керовані та через сервіс, dismissible під час запиту, повернення фокуса
  • •Стилізація — семантичні токени, пресети, контракт злиття class, темний режим
  • •Дистрибуція — пакет (volt-*, VoltXxx) чи копіювання коду (ui-*, UiXxx) і CLI

Skills

7 skills — по одній відповідальності кожна

  • volt-ui

    Entry point for Volt UI, an Angular component library (ng-primitives, Tailwind v4, signals). Use when a project imports from '@voltui/components' or has copied Volt source under src/app/ui, or the user asks for UI in an app that uses Volt. Routes to the specialised volt-ui-* skills and to the Volt MCP server, which is the source of exact component APIs.

  • volt-ui-adoption

    Prefer existing Volt UI atoms before hand-building equivalent UI in an Angular app. Use whenever you are about to write a button, link-as-button, card, badge, alert, input, tabs, spinner, skeleton, empty state or overlay in a project that uses Volt.

  • volt-ui-component-selection

    Choose the right Volt UI component for a responsibility: Button vs link, NativeSelect vs Select vs Combobox, Checkbox vs Switch vs Toggle, Tabs vs route navigation, Dialog vs Drawer vs Popover, Alert vs Toast, Spinner vs Skeleton, Sidebar vs NavigationMenu. Use when two or more components could fit.

  • volt-ui-distribution

    Install, use and update Volt UI correctly in either distribution mode: the @voltui/components package (Volt* classes, volt-* selectors) or copy-and-own via @voltui/cli (Ui* classes, ui-* selectors under ./ui). Use to detect the project's mode, add components or Recipes compositions and starters (volt composition / volt starter), compare a customised copy with a newer CLI (volt diff), fix wrong imports or prefixes, or set up the agent.

  • volt-ui-forms

    Compose forms and validation with Volt UI in Angular: FormField with Label/Hint/Error, Input, Textarea, NativeSelect, Select, Combobox, Checkbox, Radio, Switch, Reactive Forms and ControlValueAccessor behaviour, disabled vs aria-disabled, server-backed Combobox, async save. Use when building or fixing a form.

  • volt-ui-overlays

    Compose Volt UI overlays correctly: Dialog (trigger vs controlled vs service), Drawer, Popover, Tooltip, Dropdown Menu and Toast. Covers dismissible while pending, initial focus, focus return, nested overlays, Dialog vs Drawer, Popover vs Tooltip, Toast vs Alert. Use when opening anything above the page.

  • volt-ui-styling

    Customise Volt UI without rebuilding it: semantic tokens, colour and style presets, light/dark, the class merge contract, variants and sizes, native directives, layout wrappers, accessible status colours. Use when changing how Volt components look or fit into a layout.

Приклад правила зі skills

// Overlays are template-based
<button [uiDialog]="dialogTpl">Open</button>
<ng-template #dialogTpl let-close="close">
  <div uiDialogOverlay></div>
  <div uiDialogContent>...</div>
</ng-template>

Skill впровадження каже агентові повторно використовувати наявний атом замість перебудови на «сирому» Tailwind і ніколи не імпортувати ng-primitives у застосунку, що використовує Volt.