Agent skill Frontend
Design System
Establish reusable styling and design decisions across web screens.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add affaan-m/ecc --skill design-system --agent claude-code --yesCheck this file in your project.claude/skills/design-system/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add affaan-m/ecc --skill design-systemSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. The source CSS and components, one representative workflow, existing brand constraints, and up to three reference sites where available.
View operation manualWhat this skill helps with
- Establish reusable styling and design decisions across web screens.
Good for
- Design tokens and shared styles
- Task
- Generate a design system from one real component family
- Inputs
- The source CSS and components, one representative workflow, existing brand constraints, and up to three reference sites where available.
- Workflow reference
- Mode 1 / Mode 2 / Mode 3
- Skill name
design-system- Repository
affaan-m/ecc
Define the problem before changing the UI
A broad prompt
Replace the whole app with a new design system.
Migrating unrelated screens makes it hard to verify whether the proposed tokens express the product’s actual needs.
An outcome you can check
- Get an evidence-backed map of existing colors, type, spacing, radii, shadows and breakpoints.
- The decisions, token values and interactive example can be reviewed together.
- The same role resolves consistently and the next migration has a defined scope.
ECC Design System operation manual
Generate a design system from one real component family
The source CSS and components, one representative workflow, existing brand constraints, and up to three reference sites where available.
Inventory one representative family
Get an evidence-backed map of existing colors, type, spacing, radii, shadows and breakpoints.
Prompt · Step 1Use the installed affaan-m/ecc design-system in Generate mode on [screen and component family]. Trace values to source files and actual rendered states. Where browser access permits, examine three relevant reference sites for specific evidence about the task and hierarchy. Label unavailable observations. Propose semantic tokens that serve this project.Produce the three design-system artifacts
The decisions, token values and interactive example can be reviewed together.
Prompt · Step 2From [approved token map and rationale], write DESIGN.md, design-tokens.json and a self-contained design-preview.html using the same values. Give the preview the family’s real variants and states. Demonstrate CSS custom properties and document how current values map onto them. Preserve the production screen for this preview step.Review the preview before migrating
The same role resolves consistently and the next migration has a defined scope.
Prompt · Step 3Open [design-preview.html] locally and compare it with the real baseline at phone and desktop widths. Exercise the family’s states and theme modes when provided. Verify typography, spacing, token roles and keyboard focus. Run the Skill’s Visual Audit if I request a scored assessment and cite actual source or rendered evidence for each score.
Look up a workflow detail
Use the installed Skill or the publisher’s source for details.
Which mode should I use for an existing site?SKILL.md
- Command or reference
Mode 1 / Mode 2 / Mode 3- Examples
- Choose Visual Audit for a scored assessment across the ten documented dimensions. Choose Generate when you need the three implementation artifacts. AI Slop Detection focuses on recurring generated design patterns.
Troubleshooting and FAQ
Which mode should I use for an existing site?
Choose Visual Audit for a scored assessment across the ten documented dimensions. Choose Generate when you need the three implementation artifacts. AI Slop Detection focuses on recurring generated design patterns.