Agent Skills

Focused playbooks that Claude Code, Codex and OpenCode discover in any workspace that uses Volt UI. The MCP server says what Volt contains; the skills teach when and how to use it.

What it is

npx @voltui/agent installs the skills into the folder your agent scans: .claude/skills/ for Claude Code, .agents/skills/ for Codex and OpenCode. Cursor, Windsurf, Copilot and Gemini CLI get a short rules block with the same digests instead. No skill copies a component API: exact selectors and inputs come from the MCP server.

Install the skills

The fastest way is the Volt UI agent installer, which also connects the MCP server. Run it from your project directory:

npx @voltui/agent claude

What the skills cover

  • •Adoption — reuse an existing atom before hand-building UI; native HTML only where it is the right element
  • •Component selection — Button vs link, Select vs Combobox, Dialog vs Drawer, Alert vs Toast
  • •Forms — Form Field, Reactive Forms, aria-disabled vs disabled, server-backed Combobox
  • •Overlays — trigger-driven, controlled and service dialogs, dismissible while a request is pending, focus return
  • •Styling — semantic tokens, presets, the class merge contract, dark mode
  • •Distribution — package (volt-*, VoltXxx) vs copy-and-own (ui-*, UiXxx) and the CLI

The skills

7 skills, one responsibility each

  • 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.

Example rule from the skills

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

The adoption skill tells the agent to reuse an existing atom instead of rebuilding it with raw Tailwind, and never to import ng-primitives in an app that consumes Volt.