Skip to content
Back to skills

Spgr Create Design System

ASecurity

Produce a design-system artifact from the selected design direction, with named color, typography, and spacing tokens, a component library documenting all eight states per component, and accessibility guidelines. Use when the Design Agent has an approved direction and must settle the shared visual language before screen specs.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
ai-agentsswiftdocumentation

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add z4gunn/springer --skill spgr-create-design-system --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spgr Create Design System?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spgr Create Design System
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/z4gunn-spgr-create-design-system/badge)](https://www.skillsdirectory.com/skills/z4gunn-spgr-create-design-system)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spgr-create-design-system
description: Produce a design-system artifact from the selected design direction, with named color, typography, and spacing tokens, a component library documenting all eight states per component, and accessibility guidelines. Use when the Design Agent has an approved direction and must settle the shared visual language before screen specs.
disable-model-invocation: true
---

# create-design-system

## Purpose

Define the complete design system that becomes the shared contract between the Design Agent and every developer agent. This artifact prevents each screen from being designed independently, which produces visual inconsistency and duplicated implementation. The contract is token-based, meaning every value carries a name and no raw hex, px, or font-size value appears in any component spec or downstream per-screen spec. Developer agents implement these tokens as CSS custom properties, design tokens, or platform equivalents (iOS SwiftUI tokens, Android Material tokens), so the names defined here are the integration surface.

## Inputs

| Field | Description |
|-------|-------------|
| `design-direction` | The approved design direction artifact selected by the human. The single source for brand palette, type personality, and visual tone. Read it with spgr-read-artifact. |
| `ui-ux-pro-max catalog` | Optional. The third-party catalog of palettes and font pairings, read by absolute path `~/.claude/skills/ui-ux-pro-max/`. When the approved direction references a catalog palette or pairing, this is the source whose raw values are translated into named tokens here. |

## Outputs

| Artifact | Description |
|----------|-------------|
| `design-system` | One envelope artifact written with spgr-write-artifact. Contains color tokens (brand, semantic, surface, text, border) with a parallel dark mode layer, a typography scale (family, weights, sizes, line heights as named levels heading-1 through body-sm), a spacing scale (space-1 through space-16 or equivalent), a component library covering every state per component, a pattern library, accessibility guidelines, and the process for adding new components. |

## Procedure

1. Read the approved design direction with spgr-read-artifact. If no direction is approved, or more than one is marked selected, or the direction lacks the brand palette and type personality this system depends on, stop and raise spgr-escalate with the precise list of what is missing. Do not fill gaps with assumptions.
2. Define color tokens as names, not values, chosen against the craft floor and the defaults-to-refuse list in `.claude/references/design-quality.md`: one accent, hue-tinted neutrals, no cluster from the calibration list on an axis the brief left free. Cover brand, semantic (success, warning, error, info), surface, text, and border. Every token is a named reference, no raw hex appears in any component spec. When the approved direction references a ui-ux-pro-max palette, translate its raw values into this named token set rather than carrying the hex through.
3. Define a dark mode token layer in the same pass. Each light token has a dark counterpart so the two layers stay one-to-one. Do not defer dark mode, retrofitting it later is expensive.
4. Define the typography scale as named levels (heading-1 through body-sm), each fixing font family, weight, size, and line height. Define the spacing scale as named values (space-1 through space-16 or equivalent). When the approved direction references a ui-ux-pro-max font pairing, translate it into the named typography levels here. The token names stay the integration surface and no raw font name appears in any component spec.
5. Render the key screens with spgr-render-design-comps in `system` mode and iterate the token set until the comps pass the critique in `.claude/references/design-quality.md`. A token the loop changes is revised here, before the component library is built on it. Write the direction's Do and Don't list from the defaults-to-refuse section of that reference, naming which defaults the brief earns and which it refuses. Tokens are not locked until the comps pass.
6. Build the component library. Every component documents all eight states: default, hover, focus, active, disabled, loading, error, and empty. A component that omits a state is incomplete, because unspecified states get implemented inconsistently and often incorrectly.
7. Build the pattern library covering form patterns, list patterns, modal patterns, and navigation patterns.
8. Write the accessibility guidelines: minimum contrast ratios, focus indicator requirements, and touch target sizes. Tag spgr-tag-vertical-agent for the accessibility vertical so the contrast and focus rules are reviewed against the token set before tokens are treated as locked.
9. Document the process for adding new components, since the design system grows over time rather than being a one-time artifact.
10. Record each token-set and component decision in the artifact decision log via spgr-log-decision, and mark every section with its confidence signal (confirmed, proposed, needs-human-input).
11. Validate the artifact inline with spgr-validate-artifact, then write it with spgr-write-artifact. Version it with spgr-version-artifact when revising an existing design system.

## Notes

- Output type is an envelope artifact (design-system). The design-system content type is not in the schema registry yet, so spgr-validate-artifact applies envelope-only validation (header, confidence map, decision log, version) until a content schema is registered.
- The design bar is `.claude/references/design-quality.md`. The comps are the proof the token set clears it before anything is built on the tokens.
- No raw style values anywhere. Color, typography, and spacing in component and pattern specs reference tokens by name only. This is the rule that makes the artifact a usable contract for developer agents.
- Evaluate Storybook or an equivalent living-documentation tool so the design system stays in sync with the implementation rather than drifting. Record the choice in the decision log.
- Do not duplicate per-screen layout here. This artifact defines the shared language. Screen-level composition belongs to the per-screen design specs that consume these tokens.
- The ui-ux-pro-max catalog is an optional external skill. Its palettes and pairings are source material translated into named tokens, not a values shortcut. This skill runs fully without it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.