Governance Rules Template

Define what AI can auto-fix, what needs human review, and what's off-limits. Trust levels, approval rules, and escalation paths for design system automation.

What This Is

A framework for deciding what AI can do in your design system without asking. Most teams either let AI do everything (risky) or nothing (slow). This template defines the middle ground.

Trust Levels

Level 1: Intern (Auto-fix, no review needed)

Low-risk, easily reversible changes that follow deterministic rules.

ActionExample
Fix naming convention violationscolorBgPrimary renamed to color.bg.primary
Sort token files alphabeticallyReorder tokens within a category
Fix whitespace and formattingConsistent indentation, trailing commas
Add missing component descriptionsGenerate from component name + props
Flag raw hex valuesReport, suggest token replacement

Approval: None. Auto-commit to feature branch.

Level 2: Junior (Auto-fix, notify team)

Medium-risk changes that are reversible but could affect dependent components.

ActionExample
Replace raw hex with existing token#3B82F6 replaced with var(--color-bg-primary)
Add missing ARIA attributesrole, aria-label, aria-describedby
Fix simple accessibility issuesMissing alt text, label associations
Generate Storybook storiesDefault story from component props
Update token documentationRegenerate token table from source

Approval: Auto-commit, notify in Slack/PR comment. Revert if flagged within 24h.

Level 3: Mid-level (PR required, single reviewer)

Changes that modify behavior or add new patterns.

ActionExample
Create new semantic tokensNew token aliasing existing primitives
Add component variantsNew variant following existing patterns
Generate component codeNew component from spec
Modify component propsAdd optional props to existing components
Update knowledge graphNew component relationships

Approval: PR with 1 reviewer (designer or engineer).

Level 4: Senior (PR required, team review)

Changes that affect the system architecture or cross-component behavior.

ActionExample
Rename existing tokensRename with migration path
Deprecate componentsMark as deprecated, suggest replacement
Change token structureAdd new category or property
Modify component APIBreaking prop changes
Update naming conventionsConvention changes affecting existing tokens

Approval: PR with 2 reviewers (1 designer + 1 engineer). Migration plan required.

Level 5: Principal (Human only)

Decisions that require design judgment, business context, or stakeholder alignment.

ActionExample
Create new design patternsNew interaction patterns
Define brand tokensBrand colors, typography choices
Remove componentsDelete from the system
Change theme architectureNew theme structure
Break backwards compatibilityMajor version changes

Approval: Human decision. AI can propose, never execute.

Decision Matrix

Use this to classify any new automation:

Is the change reversible in < 5 minutes?
├── Yes → Is it a deterministic rule (no judgment)?
│   ├── Yes → Level 1 (auto-fix)
│   └── No → Level 2 (auto-fix, notify)
└── No → Does it affect other components?
    ├── No → Level 3 (PR, single reviewer)
    └── Yes → Does it change the system architecture?
        ├── No → Level 4 (PR, team review)
        └── Yes → Level 5 (human only)

Escalation Rules

TriggerAction
AI confidence < 80%Escalate one level
Change affects > 10 componentsEscalate to Level 4 minimum
Token rename affects > 5 filesRequire migration plan
Any accessibility regressionBlock until human review
Health score drops > 5 pointsAlert team, pause auto-fixes

How to Implement

  1. Copy this template
  2. Customize the actions per level for your team
  3. Add to your CLAUDE.md or .claude/rules/governance.md
  4. Start everything at Level 3 (PR required)
  5. Move to Level 1-2 as trust builds over time

Review Cadence

  • Weekly: Review all Level 1-2 auto-fixes. Any surprises?
  • Monthly: Review Level 3-4 decisions. Adjust trust levels.
  • Quarterly: Full governance review. What should move up or down?
Free to try Cancel anytime
The guides alone saved me a full day of work every sprint.
Senior Design Systems Lead
Enterprise SaaS
Pro
Full access to everything.
$39 /month
  • All guides, prompts, and templates
  • Starter kits and templates
  • New content every week
  • Priority support