From design-system-ops
Generates seven YAML blueprint files (UX, UI, content, accessibility, ethical, technical, business intelligence) encoding design system knowledge for AI agents in .ai/context-engine/.
npx claudepluginhub murphytrueman/design-system-opsThis skill uses the workspace's default tool permissions.
A skill for generating a context engine — a structured, multi-layered knowledge base that gives AI agents the complete picture of a design system. The engine encodes seven dimensions of system knowledge (UX, UI, content, accessibility, ethical, technical, and business intelligence) as machine-readable blueprints that agents load, reason over, and apply without requiring implicit knowledge or hu...
Generates design system from product domain: style, palette, typography, platform patterns, anti-patterns. Outputs .rune/design-system.md as contract for UI skills.
Automates design system construction from repository analysis: extracts patterns, builds OKLCH token hierarchies, implements accessible components with tests, verifies via multi-reviewer panels.
Generates custom design system rules for Figma-to-code workflows using Figma MCP tool and codebase analysis. Outputs CLAUDE.md, AGENTS.md, or Cursor rules for consistent AI code.
Share bugs, ideas, or general feedback.
A skill for generating a context engine — a structured, multi-layered knowledge base that gives AI agents the complete picture of a design system. The engine encodes seven dimensions of system knowledge (UX, UI, content, accessibility, ethical, technical, and business intelligence) as machine-readable blueprints that agents load, reason over, and apply without requiring implicit knowledge or human interpretation.
A design system is more than a component library. It encodes decisions about user experience patterns, visual language, content voice, accessibility requirements, ethical guardrails, technical constraints, and business rules. These decisions live in different places — Figma files, code repos, wikis, Slack threads, the heads of senior team members — and most of them are invisible to AI agents.
When an AI agent interacts with a design system, it typically receives a narrow slice: component props, maybe a description, perhaps some token values. It does not receive the reasoning behind those components, the constraints that govern their use, or the relationships between design decisions and business outcomes. The result is output that is technically valid but contextually wrong — a login form that uses the right components but ignores the system's established authentication patterns, or a dashboard that follows the grid but violates the system's data visualisation principles.
A context engine front-loads this knowledge. Instead of letting agents discover context through trial and error (or not discover it at all), the engine encodes it as structured data that agents load at the start of a task. The seven blueprints are not arbitrary categories — they represent the seven dimensions of knowledge that, when missing, produce the most common classes of AI-generated design system errors.
The practical output is a set of structured files — one per blueprint — that live alongside the codebase and are consumed by AI agents, MCP servers, and developer tooling. Together they form the machine-readable brain of the design system.
This skill builds context infrastructure — it does not assess system health or score quality (use system-health for that). If the system has no documented components, tokens, or patterns yet, the context engine has nothing to encode; help the team establish foundations first. If only one or two blueprints are needed (a common case — many teams start with the Technical and UI blueprints only), generate those specifically rather than forcing all seven. The engine is modular; partial generation is a feature, not a gap.
Before producing output, check for a .ds-ops-config.yml file in the project root. If present, load:
system.framework — pre-selects framework for technical blueprint generationsystem.component_paths — directs blueprint scanning to correct directoriessystem.tokens — identifies token files for UI blueprint extractionintegrations.* — enables auto-pull for blueprint datacontext_engine.blueprints — overrides which blueprints to generate (default: all seven)context_engine.output_format — output format preference (JSON or YAML, default: YAML)If integrations are configured in .ds-ops-config.yml, pull data automatically:
Figma MCP (integrations.figma.enabled: true):
integrations.figma.file_keyStorybook (integrations.storybook.enabled: true):
GitHub (integrations.github.enabled: true):
If an integration fails, log it and proceed with manual scanning and user input.
Before building blueprints, understand what context already exists. Scan for:
Produce a brief context coverage assessment:
| Blueprint | Existing sources found | Coverage estimate | Primary gaps |
|---|---|---|---|
| UX | [list] | [none/partial/good] | [what's missing] |
| UI | [list] | [none/partial/good] | [what's missing] |
| Content | [list] | [none/partial/good] | [what's missing] |
| Accessibility | [list] | [none/partial/good] | [what's missing] |
| Ethical | [list] | [none/partial/good] | [what's missing] |
| Technical | [list] | [none/partial/good] | [what's missing] |
| Business intelligence | [list] | [none/partial/good] | [what's missing] |
Ask for or confirm (skip questions already answered by config or auto-pull):
The UX blueprint encodes behavioural rules — how components and patterns behave in context, the interaction patterns they follow, and the user experience principles that govern decisions.
Interaction patterns: For each documented pattern in the system, capture the behavioural contract:
Pattern selection rules: Decision logic for when to use which pattern:
Flow definitions: Multi-step user journeys that span multiple components:
Follow the UX blueprint template in references/context-engine-blueprints.md. Key structures: patterns (with trigger, states, transitions, completion, errors, edge_cases) and selection_rules (with intent, use, not, reason).
The UI blueprint encodes the visual system as structured, machine-readable data — not as a style guide for humans, but as a specification that AI agents and code generators consume directly.
Token architecture: The complete token hierarchy with semantic intent:
Layout system: Grid, spacing, and responsive rules:
Visual patterns: Recurring visual treatments encoded as rules:
Follow the UI blueprint template in references/context-engine-blueprints.md. Key structures: tokens (colour, spacing with semantic intent), layout (grid, breakpoints), and visual_rules (elevation, border radius, colour application).
The content blueprint encodes voice, tone, and language rules — the writing system that governs all text in the UI, from button labels to error messages to onboarding copy.
Voice definition: The system's consistent personality:
Tone modulation: How voice adapts to context:
Content patterns: Reusable text structures:
Terminology glossary: Domain terms with definitions and usage rules:
Follow the Content blueprint template in references/context-engine-blueprints.md. Key structures: voice (attributes, vocabulary with preferred/prohibited), tone (per-context modulation), and patterns (button labels, error messages, empty states).
The accessibility blueprint encodes accessibility as machine-readable constraints — not just WCAG compliance checkboxes, but the specific accessibility contracts that components and patterns must honour.
Component accessibility contracts: Per-component requirements:
System-level accessibility rules: Cross-cutting requirements:
Testing protocols: What to verify and how:
Follow the Accessibility blueprint template in references/context-engine-blueprints.md. Key structures: component_contracts (role, aria_required, keyboard, focus, announcements) and system_rules (focus_visible, colour_contrast, motion).
The ethical blueprint encodes guardrails for responsible design — constraints that prevent the system from being used in ways that manipulate, exclude, or harm users. These are not aspirational principles but concrete rules that agents must follow.
Dark pattern prohibitions: Specific patterns the system forbids:
Inclusive design rules: Requirements beyond accessibility compliance:
Data and privacy patterns: How the system handles user data:
Bias detection signals: Patterns that suggest potential bias:
Follow the Ethical blueprint template in references/context-engine-blueprints.md. Key structures: prohibitions (pattern, rule, bad/good examples), inclusive_design (name inputs, gender), and data_privacy (consent rules per data type).
The technical blueprint encodes implementation constraints — the rules that govern how components are built, composed, and integrated at the code level.
Component API contracts: The technical interface of each component:
Composition rules: How components fit together technically:
Performance constraints: Technical boundaries:
Integration patterns: How the system connects to consuming applications:
Follow the Technical blueprint template in references/context-engine-blueprints.md. Key structures: component_contracts (props with types/defaults, ref_forwarding, polymorphic), composition (valid/invalid parent-child rules), and performance (bundle budgets, SSR requirements).
The business intelligence blueprint connects design system decisions to business outcomes — encoding which components serve which business goals and how component usage maps to product metrics.
Component-to-outcome mapping: Which components serve which business functions:
Metric associations: Which metrics each component category influences:
A/B testing guidelines: Rules for safe experimentation:
Usage analytics hooks: What to measure:
Follow the Business intelligence blueprint template in references/context-engine-blueprints.md. Key structures: component_outcomes (business function, primary/secondary/anti metrics), experimentation (safe/never/requires_review), and analytics (required events with data fields).
Generate the context engine as a set of files in .ai/context-engine/:
.ai/
context-engine/
ux-blueprint.yml
ui-blueprint.yml
content-blueprint.yml
accessibility-blueprint.yml
ethical-blueprint.yml
technical-blueprint.yml
business-intelligence-blueprint.yml
engine-manifest.yml
usage-guide.md
The manifest ties the blueprints together and provides metadata for tooling. Follow the Engine manifest template in references/context-engine-blueprints.md. The manifest lists each blueprint with its file path and coverage percentage, plus a total weighted coverage score.
Generate a usage-guide.md that teaches AI agents how to consume the engine. Follow the Usage guide template in references/context-engine-blueprints.md. The guide covers engine loading, task-based blueprint selection, and query patterns for each blueprint dimension.