Skip to content
Back to skills

Web Design System

ASecurity

Extract, create, or refine an implementation-ready design system for a website or web app. Use when an agent needs semantic tokens, component anatomy, variants, interaction states, responsive rules, accessibility defaults, or consistency improvements grounded in an existing frontend codebase.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
ai-agentsapifrontend

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add divyanshu-iitian/agent-website-design-skills --skill web-design-system --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Design System?

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

Security grade badge for Web Design System
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/divyanshu-iitian-web-design-system/badge)](https://www.skillsdirectory.com/skills/divyanshu-iitian-web-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: web-design-system
description: Extract, create, or refine an implementation-ready design system for a website or web app. Use when an agent needs semantic tokens, component anatomy, variants, interaction states, responsive rules, accessibility defaults, or consistency improvements grounded in an existing frontend codebase.
---

# Web Design System

Build the smallest system that makes the product more coherent. Favor semantic contracts that components can use over a large inventory of decorative values.

## Choose the Mode

- **Extract** when the product is visually coherent but undocumented.
- **Reconcile** when multiple patterns conflict.
- **Create** when a new product has no established UI language.
- **Extend** when a feature needs states or components the system lacks.

## Workflow

1. Inspect the framework, CSS strategy, theme files, primitives, component library, icon set, and representative screens.
2. Inventory repeated values and patterns. Separate intentional variation from accidental drift.
3. Map raw values to semantic roles before changing code. Example: `blue-600` -> `action-primary`, not "replace every blue."
4. Define the minimum token layers:
   - foundations: color, type, spacing, radius, border, shadow, motion;
   - semantic tokens: background, surface, text, border, action, focus, and status;
   - component tokens only where a component genuinely needs them.
5. Specify component anatomy, variants, sizes, and state behavior. Include content constraints, not only appearance.
6. Define responsive behavior and density rules without inventing device-specific duplicates.
7. Encode accessibility defaults: semantic elements, names, labels, focus-visible, keyboard behavior, contrast, errors, target size, and reduced motion.
8. Implement inside the existing styling mechanism. Avoid parallel token systems.
9. Migrate one representative component or screen and remove superseded values when safe.
10. Verify light/dark themes, core states, narrow/wide layouts, and at least one realistic content stress case.

## System Rules

- Name tokens by purpose, not by current appearance.
- Keep primitive escape hatches available, but make the correct path easier.
- Do not force every region into a card.
- Do not encode status through color alone.
- Keep component APIs small; prefer composition over variant explosions.
- Preserve established patterns unless they harm usability, accessibility, or maintainability.
- Document decisions where future contributors would otherwise recreate the inconsistency.

## Delivery Contract

Provide:

1. **Mode and audit** - what exists, what conflicts, and what remains.
2. **Token map** - existing value -> semantic role -> implementation location.
3. **Component contract** - anatomy, variants, states, content limits, responsive behavior.
4. **Migration slice** - at least one real component when code changes are requested.
5. **Verification evidence** - themes, states, viewports, and exceptions tested.

## Reference

Read [references/token-checklist.md](references/token-checklist.md) while defining or auditing tokens and component states.

Files in this skill

  • SKILL.md3.1 KB
  • agents/openai.yaml222 B
  • references/token-checklist.md1.9 KB

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.

Comments

Loading comments…

Newsletter

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