Skill library

Agent skill Frontend

Antdv Next

Build or refine reusable components for a web interface.

  • UI components

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add antdv-next/skills --skill antdv-next --agent claude-code --yes

Check this file in your project.claude/skills/antdv-next/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add antdv-next/skills --skill antdv-next

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use a Vue 3 project with `antdv-next`. The fixture built with Vue 3.5.46 and `antdv-next` 1.8.3. The skill includes offline component demos and token references.

View operation manual

What this skill helps with

  • Build or refine reusable components for a web interface.

Good for

  • Component implementation
Skill name
antdv-next
Scenario
Bind a Vue preference to an accessible Switch
Deliverable
A named preferences switch with matched model state, keyboard operation and the actual saved value.
Skill name
antdv-next

Define a component task with an observable result

A request with an unclear outcome

Use a React antd example and synchronize a second boolean on click.

Parallel state and mixed library APIs can desynchronize the control and saved settings.

A workflow with observable results

  1. Read the bundled Vue Switch contract
  2. Bind the model and label on the real control
  3. Verify space key and the updated model

Antdv Next operation manual

Use the bundled Vue docs to keep the checkbox-like state and actual toggle behavior in sync.

Replace the bracketed details with your own project and target.

  1. Read the bundled Vue Switch contract

    Find the model prop, demo and semantic slots for Switch.

    Prompt · Step 1
    Use antdv-next to inspect [Vue preferences component]. Check the actual `antdv-next` dependency and read `references/components/switch/docs.md` and its basic demo. Identify its `checked` model, emitted event and accessible naming option, and trace the one application field that owns the local preference.
  2. Bind the model and label on the real control

    Use `v-model:checked` and preserve the form's save convention.

    Prompt · Step 2
    Use antdv-next to implement [approved preferences toggle]. Bind one Vue field via `v-model:checked` or its checked/update equivalent. Give the Switch the actual visible purpose name or an equivalent accessible label. Keep the save/update policy consistent with the existing preferences flow, and use documented semantic styling if needed.
  3. Verify space key and the updated model

    Compare the accessible name, DOM state and saved preference.

    • The Switch and Vue field update together on keyboard input.
    • The local save or update uses the expected model value.
    Prompt · Step 3
    Use antdv-next to build [local preferences page]. Tab to [named switch], use Space, then verify its `aria-checked`, displayed state and local model agree. Exercise save or update with disposable data and report the actual observed value. Verify the disabled or loading state only when it exists in the design.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

The value is not saved after togglingReference
Command or reference
references/components/switch/docs.md
Examples
Check which form field owns `checked` and how its update reaches submit.
The toggle style needs a stable hookReference
Command or reference
references/components/switch/demo/_semantic.md
Examples
Use the published semantic structure of the installed Vue component.

Antdv Next troubleshooting

Can I use Ant Design's React CLI for this Vue API?

Use the Antdv Next offline component docs for the Vue binding, props and events. Check the package's own version before editing.