Mark Elamatha

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

One source of content serves people and AI tools Design system content and code, the docs, examples and component APIs kept in one repository, feed three channels. The docs site at design.alberta.ca serves people. The MCP server, with two actions and always current, and the skill files, a snapshot an agent loads before it works, serve AI coding tools and agents. Design system content and code Docs, examples and component APIs in one repository Docs site design.alberta.ca Pages people read MCP server Two actions: search, and get one item Always current Skills Guidance an agent loads before it works A snapshot People AI coding tools and agents
One source of content and code, three channels. Highlighted: the two layers for agents.

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.