Skip to content

AI agents

Edit on GitHub

The Volvo Car Web Design System provides an agent skill and a CLI, so AI agents can use the design system effectively. Both come in the @volvo-cars/design-system-agent package.


Install the package as an exact development dependency so the project pins its documentation, CLI, and bundled skill source together.

Terminal window
# pnpm
pnpm add --save-dev --save-exact @volvo-cars/design-system-agent
pnpm vds install-skill
pnpm vds versions
# Yarn
yarn add --dev --exact @volvo-cars/design-system-agent
yarn vds install-skill
yarn vds versions
# npm
npm install --save-dev --save-exact @volvo-cars/design-system-agent
npm exec -- vds install-skill
npm exec -- vds versions

Commit the package manifest, lockfile, and project-level skill files your team normally tracks. After upgrading the package, run the matching install-skill command again to refresh the installed skill.

Run the pinned CLI through the package manager used by the project. Examples below use pnpm; replace pnpm vds with yarn vds or npm exec -- vds as appropriate.

A global CLI and user-level skill are useful as personal defaults across projects that do not pin the package. They can drift from a project’s expected documentation, so prefer the project-local installation when one is available.

Terminal window
npm install --global @volvo-cars/design-system-agent
vds install-skill --global
vds versions

Use npx to try the CLI or bootstrap the bundled skill without keeping the package installed.

Terminal window
npx --yes @volvo-cars/design-system-agent find "headline with image and buttons"
npx --yes @volvo-cars/design-system-agent install-skill

Node.js 22.20 or newer is required.


Command Purpose
vds install-skill [options...] Install the bundled skill through the official Skills CLI
vds find <query...> Discover documentation or search conceptual queries; quote phrases
vds doc [category] <section> Retrieve a known exact section, outline, or heading
vds docs Resolve known names or browse exact categories and section titles
vds css <query...> Discover CSS utility names
vds class <className...> Inspect exact CSS declarations
vds icons <query...> Find valid system and branded icon names
vds tokens <query...> Find or verify design tokens
vds versions Compare documented and installed package versions
Terminal window
pnpm vds find "headline with image and buttons"
pnpm vds doc components Button --outline
pnpm vds css grid md:p- --max 4
pnpm vds icons car search
pnpm vds tokens --v-space-16

Documentation reflects the published docs site at the time of the package’s release, so it describes the latest release of each design system package, not the versions installed in your project. Upgrade the agent along with your other design system packages.

css, class, tokens, check, and setup html read the @volvo-cars/css installed in the project, and icons reads @volvo-cars/react-icons. When a package isn’t installed, they use the bundled metadata of its published documented version. Use --cwd to point vds at another project, --local-css or --bundled-css (and --local-icons or --bundled-icons) to require or ignore the installed package, and vds versions to compare the installed versions with the documented ones.


If you can’t install the package, point your agent at llms.txt. It lists the documentation in a format language models can read directly. It always reflects the latest published docs, so it can differ from the versions installed in your project.

View @volvo-cars/design-system-agent on npm