Back to skills
SKILL.md
Ui Design System Engineer
ASecurityArchitects and governs multi-tier design token hierarchies, OKLCH color palettes, fluid typography systems, and component variant primitives. Enforces single-source-of-truth token schemas, semantic tier separation (global -> semantic -> component), and theme switching integrity.
- 7 stars
- 0 votes
- 0 copies
- 3 views
- Added November 9, 2026
Works with
Security analysis
100/100npx -y skills add Harmitx7/tribunal-kit --skill ui-design-system-engineer --agent claude-codeAre you the author of Ui Design System Engineer?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/harmitx7-ui-design-system-engineer)---
name: ui-design-system-engineer
description: 'Architects and governs multi-tier design token hierarchies, OKLCH color palettes, fluid typography systems, and component variant primitives. Enforces single-source-of-truth token schemas, semantic tier separation (global -> semantic -> component), and theme switching integrity.'
version: 1.0.0
last-updated: 2026-10-30
skills:
- better-colors
- better-typography
- extract-design-system
tools: Read, Grep, Glob, Bash, Edit, Write
scripts-binding:
- .agent/scripts/lint_runner.js
- .agent/scripts/verify_all.js
inputs:
tokenArchitectureSpec: 'object'
themeMode: 'string'
supportedFormats: 'array'
outputs:
tokensJson: 'object'
themeCss: 'string'
validationReport: 'object'
trigger:
- 'design-system-engineer'
- 'token-architecture'
- 'theme-tokens'
- 'token-governance'
---
# UI Design System Engineer — Multi-Tier Token Architecture & Governance
## Mandatory Pre-Flight Context Inspection
Before establishing or altering design tokens, inspect these 5 critical parameters:
1. **Three-Tier Token Architecture**: Ensure strict separation between:
- _Tier 1 (Global)_: Raw values (`oklch(0.68 0.17 145)`).
- _Tier 2 (Semantic)_: Intent-driven aliases (`var(--color-accent-primary)`).
- _Tier 3 (Component)_: Scoped component bindings (`var(--button-primary-bg)`).
2. **Color Space Invariant**: Use OKLCH exclusively for color tokens to guarantee perceptual uniformity and predictable lightness steps.
3. **Contrast Floors**: Enforce mathematical lightness difference ($\Delta L \ge 0.45$) between all semantic surface and text tokens.
4. **Theme Invertibility**: Guarantee light/dark mode parity without breaking component-level token bindings.
5. **Schema Validation**: Validate all token structures against `DesignTokenSchema` and `ColorPaletteSchema` in `src/design_intelligence/design_token_schemas.js`.
## Activation Boundaries
- **Activate when:** Creating design systems, defining theme tokens, implementing dark/light mode toggles, establishing design token schemas, or exporting tokens to CSS/Tailwind.
- **DO NOT activate when:** Writing one-off component markup, conducting visual regression diffs, or debugging backend API routes.
## 🔁 Multi-Pass Token Architecture Protocol
| Pass | Phase | Core Action | Observable Target |
| :--------- | :--------------------------------- | :------------------------------------------------------------------------------------------------ | :--------------------- |
| **Pass 1** | **Global Primitives** | Define base OKLCH ramps across lightness scales (10 steps per hue). | Global Palette Tokens |
| **Pass 2** | **Semantic Mapping** | Alias global primitives to intent variables (`surface-0`, `surface-1`, `text-primary`, `accent`). | Semantic Layer |
| **Pass 3** | **Spatial & Typography** | Formulate 8pt spatial steps (2, 4, 8, 12, 16, 24, 32, 48px) and fluid clamp scales. | Geometry & Type Tokens |
| **Pass 4** | **Component Aliasing** | Define scoped bindings for buttons, inputs, dialogs, cards, and tables. | Component Tier Tokens |
| **Pass 5** | **Format Generation & Validation** | Compile to CSS Custom Properties and Tailwind `@theme` block; run Zod schema validation. | Verified Token Bundle |
---
## 🛠️ Technical Architecture & Token Recipes
### 1. Three-Tier Token Implementation in CSS
```css
/* Tier 1: Global Primitives */
:root {
--palette-emerald-500: oklch(0.72 0.16 150);
--palette-slate-900: oklch(0.12 0.01 260);
--palette-slate-800: oklch(0.16 0.012 260);
--palette-slate-50: oklch(0.96 0.005 260);
}
/* Tier 2: Semantic Tokens (Dark Theme Default) */
:root,
[data-theme='dark'] {
--surface-0: var(--palette-slate-900);
--surface-1: var(--palette-slate-800);
--text-primary: var(--palette-slate-50);
--text-muted: oklch(from var(--text-primary) l c h / 0.65);
--accent-primary: var(--palette-emerald-500);
--accent-contrast: oklch(0.1 0.01 260);
--radius-container: 16px;
--radius-inner: 6px;
}
/* Light Theme Overrides */
[data-theme='light'] {
--surface-0: oklch(0.98 0.005 260);
--surface-1: oklch(0.94 0.008 260);
--text-primary: oklch(0.15 0.01 260);
--text-muted: oklch(from var(--text-primary) l c h / 0.65);
--accent-primary: oklch(0.62 0.18 150);
--accent-contrast: oklch(0.98 0 0);
}
/* Tier 3: Component Token Scoping */
.ui-btn-primary {
background-color: var(--accent-primary);
color: var(--accent-contrast);
border-radius: var(--radius-inner);
}
```
### 2. Programmatic Token Validation
```javascript
const {
DesignTokenSchema,
ColorPaletteSchema,
} = require('../../src/design_intelligence/design_token_schemas');
const result = ColorPaletteSchema.safeParse({
surface0: 'oklch(0.12 0.01 260)',
surface1: 'oklch(0.16 0.012 260)',
surface2: 'oklch(0.20 0.015 260)',
surface3: 'oklch(0.24 0.018 260)',
textPrimary: 'oklch(0.96 0.005 260)',
textSecondary: 'oklch(0.75 0.01 260)',
accentPrimary: 'oklch(0.72 0.16 150)',
accentSecondary: 'oklch(0.65 0.14 200)',
});
if (!result.success) throw new Error('Invalid token palette');
```
---
## 🏛️ Tribunal Verification & Guardrails
### 🛑 Verification-Before-Completion (VBC) Protocol
1. Verify token bundle passes `DesignTokenSchema.safeParse()`.
2. Confirm both dark and light modes preserve $\Delta L \ge 0.45$ contrast ratio.
3. Validate that component classes refer to Tier 2/Tier 3 semantic variables, never raw values.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.