AI agents
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.
Installation
Section titled “Installation”Project-local (recommended)
Section titled “Project-local (recommended)”Install the package as an exact development dependency so the project pins its documentation, CLI, and bundled skill source together.
# pnpmpnpm add --save-dev --save-exact @volvo-cars/design-system-agentpnpm vds install-skillpnpm vds versions
# Yarnyarn add --dev --exact @volvo-cars/design-system-agentyarn vds install-skillyarn vds versions
# npmnpm install --save-dev --save-exact @volvo-cars/design-system-agentnpm exec -- vds install-skillnpm exec -- vds versionsCommit 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.
Global CLI
Section titled “Global CLI”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.
npm install --global @volvo-cars/design-system-agentvds install-skill --globalvds versionsOne-time use
Section titled “One-time use”Use npx to try the CLI or bootstrap the bundled skill without keeping the
package installed.
npx --yes @volvo-cars/design-system-agent find "headline with image and buttons"npx --yes @volvo-cars/design-system-agent install-skillNode.js 22.20 or newer is required.
Commands
Section titled “Commands”| 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 |
pnpm vds find "headline with image and buttons"pnpm vds doc components Button --outlinepnpm vds css grid md:p- --max 4pnpm vds icons car searchpnpm vds tokens --v-space-16Versions
Section titled “Versions”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.
Without the CLI
Section titled “Without the CLI”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.