The story
Before we merged our brand site and our design playbook into one, we put them side by side.
They disagreed. Nothing dramatic: the names of the status colours, whether we use em dashes. But both sites were official, both were confident, and a reader had no way to tell which one was right. Multiply that by every guideline page, Figma annotation and decision made in a thread, and you get a design system whose rules exist in many places and nowhere in particular.
The fix wasn't a better wiki. It was to stop writing rules as prose at all, and write each one once, as data, so every surface reads the same thing.
The shift
Prose is easy to write and impossible to keep in step. Each copy of a rule drifts at its own pace, and after a while nobody can say which one is current.
So rules stopped being prose. Each one is now a small record, and the docs site, the agents' context and the lint rules are all built from it.
01 · Structure
Anatomy of a rule
A rule record is deliberately boring: an id people can cite, the rule in one sentence, a status, an owner, and the rationale. Decisions get the same treatment, so the reason behind a rule is never more than one click away. Boring is the point. A record that small can be read by a person, a build script and a language model alike.
id: "CT-04"
← so people can cite it
rule: "Buttons say what they do, in two words or fewer."
← one sentence, no essay
status: "ruled"
← how much weight it carries
owner: "Content design"
← who decides
rationale: "Labels are read, not studied."
← why it exists
decision: "D-11"
← the record of how it was decided
02 · Distribution
One fact, one home
The record is the only place a rule is written. The docs site renders it, a build step bundles every record into one file for agents, and lint rules point back to the record they enforce. When the record changes, every reader changes with it on the next build.
“Nobody types a rule twice.”
03 · Governance
Changing a rule
Rules change the same way code does: someone proposes an edit to the record, the owner reviews it, and it merges. The status field makes the lifecycle explicit, from draft, to open for discussion, to ruled, so readers know how much weight a rule carries today.
04 · Access
Docs that answer back
Once the rules are data, documentation can do more than display them. A search box can answer “what's the rule for empty states?” by pointing at the record, find the page that explains it, and check a draft against the rules before anyone reviews it. And because the docs are versioned, a delivered page is never silently edited. Every change is a new version.
UX-12 · ruled · Design systems
Every content view ships Empty, Loading, Dense and Error states.
Then & now
What changed
Then
Now
ThenGuidelines live in pages, files and threads.
NowEach rule is one structured record.
ThenCopies of a rule drift apart.
NowEach rule has one home, and every surface reads it.
ThenAgents get pasted context, or none.
NowAgents read the same records, bundled as a text file.
ThenChanging a rule means another meeting.
NowChanging a rule means a reviewed edit to its record.
In practice
- 01
Start with ten rules. Pick the rules people argue about most, and write each one down with its owner and the reason behind it.
- 02
Generate, don't copy. Build your docs and agent context from the records, so there's nothing to keep in sync by hand.
- 03
Make status visible. Showing whether a rule is ruled, open or draft stops drafts from being treated as law.