A design system people and AI agents can read
Alberta set a public goal of becoming North America's most AI-enabled public service. For AI tools to build good services, they had to use the design system as well as our best practitioners do. I set the direction to make the system AI native: the same source of truth for a person reading the docs and an agent writing code.
- Role
- Product owner: set the direction
- Built by
- The design system team
- Token releases
- 59, Nov 2022 to Aug 2026
- Public
- Token package and MCP server on npm
Tokens as data
Design tokens ship as their own npm package, separate from the components. Teams and tools read colour, type, spacing and other values as data, not from screenshots or a Figma file. The package had 59 production releases from November 2022 to August 2026.
The structure of the public token package:
@abgov/design-tokens
├── data/
│ ├── goa-global-design-tokens.json colour, type, space, motion
│ └── component-design-tokens/ 46 files, one per component
│ ├── button-design-tokens.json
│ ├── callout-design-tokens.json
│ └── …
└── dist/
├── tokens.css CSS custom properties
├── tokens.scss Sass variables
└── dark-theme.css generated dark theme overrides
Two layers for agents
- A live server (MCP). It gives AI tools two simple actions: search the design system, and get one item in full. Two actions keep it simple for an agent to use, and it always reflects the current docs. The server is now public on npm, with about 1,000 downloads in its first two months.
- Skill files. Written guidance an agent loads before it works: how to use the system, how to write content in our voice and how the system has changed between versions.
An excerpt of the team's content skill, from the public repository. It turns the system's writing standards into rules an agent follows:
## 1. Voice
- Clear and direct: use plain language. If a technical term is
unavoidable, define it on first use.
- Supportive: guide the reader toward the next action.
## 2. Mechanics
- Front-load the action. Start with the verb where possible.
- Use Canadian English spelling.
- Use sentence case for all headings.
Do not use:
- Filler phrases ("please note", "it is important to").
- Marketing language ("seamless", "robust", "powerful").
Impact
- About 1,000 downloadsOf the public MCP server in its first two months.
- One source, three channelsThe docs site, the MCP server and the skill files all draw on the same design system content and code.
- Always currentThe MCP server reads the live docs and component code, so AI tools get the same up-to-date answers people see.