Design system

From akillness/jeo-skills · View interactive version

Design system is an AI agent skill from the GitHub repository akillness/jeo-skills. Define or refactor a shared frontend UI system before polishing one screen at a time. Use when the user needs token governance, visual-language rules, primitive naming, page-system direction, cross-product consistency, or a design handoff that should stay coherent across landing pages, dashboards, f

How to use this skill

Skill file

Design System

Use this skill when the main question is "what shared UI rules should govern this product or product family before we design or refactor individual screens?"

This is the repo's canonical frontend UI-system anchor.

It should:

  1. classify the system problem,
  2. choose the right design-system mode,
  3. route neighboring frontend work out early,
  4. define a compact system packet another human or agent can execute.

Read references/system-modes.md before choosing an approach.

Read references/token-and-governance-checklist.md before changing shared tokens, primitives, or naming rules.

Read references/scope-boundaries.md when deciding whether the work belongs here, responsive-design, or web-accessibility.

Read references/design-system-packet-template.md before writing the final handoff.

When to use this skill

When not to use this skill

Core idea

A good design system is not a random palette plus a hero-section mock.

It is a shared decision layer that defines:

Do not let this skill become a catch-all for every frontend concern.

System governance stays here; specialist remediation routes out.

Instructions

Step 1: Classify the design-system request before generating examples

Pick one primary mode so the answer stays bounded.

Modes:

Quick frame:

Design-system request:
- Surface: marketing site + logged-in dashboard
- Primary mode: cross-surface alignment
- System question: shared tokens and hierarchy, separate page-specific layouts
- Likely route-outs: responsive verification to responsive-design, a11y remediation to web-accessibility

Step 2: Define the shared system boundary

Before changing tokens or page direction, decide what the system actually owns.

Keep in design-system when the job is to define:

Do not keep the work here when the question becomes:

Step 3: Make the minimum shared decisions first

Do not start by dumping dozens of example tokens.

For each system request, decide these shared layers first:

  1. Foundations — color, type, spacing, radius, elevation, motion, density, breakpoints
  2. Primitive policy — which primitives exist, how they are named, what is shared vs product-local
  3. Surface rules — how landing pages, dashboards, forms, nav, and data-heavy surfaces should differ while staying coherent
  4. Accessibility baseline — contrast expectations, focus visibility, reduced-motion posture, semantic expectations
  5. Governance — who can add/change tokens or primitives, what must be reviewed, and when work should route to another skill

If a layer is unknown, say so and capture it as an open decision instead of inventing detail.

Step 4: Keep examples subordinate to the rules

Examples are useful only after the shared rules are explicit.

Good example usage:

Bad example usage:

Use this rule:

Step 5: Route neighboring frontend work out early

Mixed requests are normal. Split them explicitly.

Examples:

Do not hide unclear ownership by calling everything “design-system work.”

Step 6: Produce the design-system packet

End with a concise artifact that downstream design/dev work can follow.

Preferred format:

# Design System Packet

## Scope
- Products / surfaces covered:
- Primary mode:
- Shared system goal:

## Foundations
- Color / semantic token rules:
- Typography / spacing / radius / elevation:
- Motion / density / breakpoint policy:

## Primitive policy
- Shared primitives:
- Naming rules:
- What stays product-local:

## Surface guidance
- Landing / marketing:
- Dashboard / app shell:
- Forms / workflows:

## Accessibility baseline
- Contrast / focus / reduced motion / semantics:

## Route-outs
- `responsive-design`:
- `web-accessibility`:

## Open decisions
- ...

If the user asks for a terse answer, keep the same sections but compress them into bullets.

Step 7: Only then add a small illustrative example when needed

Use at most one or two examples and keep them obviously subordinate to the packet.

Healthy example shapes:

Step 8: Finish with a boundary sentence

End with a sentence that prevents overlap drift.

Examples:

Examples

Example 1: shared landing page + dashboard system

Input: "We need one design system for our marketing site and B2B dashboard so tokens, typography, and motion feel related without making both surfaces identical."

Good response shape:

Example 2: token and primitive governance

Input: "Our team keeps adding random colors and spacing values. We need naming rules and a review policy for shared primitives."

Good response shape:

Example 3: mixed system + responsive request

Input: "Should the dashboard and mobile web app share one breakpoint policy, and how should the layout collapse on small screens?"

Good response shape:

Example 4: accessibility-heavy follow-up

Input: "We already have tokens, but our forms still fail focus visibility and error-state accessibility."

Good response shape:

Best practices

  1. Decide the mode first so the skill stays bounded.
  2. Define shared rules before examples to avoid overfitting on one mockup.
  3. Keep governance explicit: token changes, primitive promotion, and ownership rules are part of the system.
  4. Use route-outs early so design-system does not steal layout, accessibility, or broad-audit work.
  5. Leave a compact packet another human or agent can follow.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.