Skip to content
Back to skills

Design System Validator

ASecurity

Validate design system compliance in code and detect token usage violations

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 7, 2026
data-aijavascriptjavabashfrontenddocumentation

Security analysis

A100/100

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

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill design-system-validator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Design System Validator?

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

Security grade badge for Design System Validator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-design-system-validator/badge)](https://www.skillsdirectory.com/skills/a5c-ai-design-system-validator)

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: design-system-validator
description: Validate design system compliance in code and detect token usage violations
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Glob
  - Grep
graph:
  domains: [domain:web-development]
  specializations: [specialization:ux-ui-design]
  skillAreas: [skill-area:design-systems, skill-area:ui-component-libraries]
  roles: [role:product-designer, role:frontend-engineer]
  workflows: [workflow:user-feedback-loop, workflow:product-discovery]
---

# Design System Validator Skill

## Purpose

Validate that code adheres to design system specifications, checking token usage, component props, and style consistency.

## Capabilities

- Check design token usage in CSS/SCSS
- Validate component prop usage
- Detect hard-coded values that should use tokens
- Ensure naming convention compliance
- Generate compliance reports
- Integrate with linting tools

## Target Processes

- design-system.js
- component-library.js

## Integration Points

- ESLint plugins for design systems
- Stylelint for CSS validation
- Custom AST analyzers
- Token documentation

## Input Schema

```json
{
  "type": "object",
  "properties": {
    "scanPath": {
      "type": "string",
      "description": "Path to code to validate"
    },
    "tokenDefinitions": {
      "type": "string",
      "description": "Path to design token definitions"
    },
    "rules": {
      "type": "object",
      "properties": {
        "enforceTokenColors": { "type": "boolean", "default": true },
        "enforceTokenSpacing": { "type": "boolean", "default": true },
        "enforceTokenTypography": { "type": "boolean", "default": true },
        "allowHardcodedValues": { "type": "array", "items": { "type": "string" } }
      }
    },
    "fileTypes": {
      "type": "array",
      "items": { "type": "string" },
      "default": ["css", "scss", "tsx", "jsx"]
    },
    "severity": {
      "type": "string",
      "enum": ["error", "warning", "info"],
      "default": "warning"
    }
  },
  "required": ["scanPath", "tokenDefinitions"]
}
```

## Output Schema

```json
{
  "type": "object",
  "properties": {
    "violations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "file": { "type": "string" },
          "line": { "type": "number" },
          "rule": { "type": "string" },
          "message": { "type": "string" },
          "suggestion": { "type": "string" }
        }
      }
    },
    "summary": {
      "type": "object",
      "properties": {
        "filesScanned": { "type": "number" },
        "totalViolations": { "type": "number" },
        "byRule": { "type": "object" },
        "complianceScore": { "type": "number" }
      }
    },
    "tokenCoverage": {
      "type": "object",
      "description": "Token usage statistics"
    }
  }
}
```

## Usage Example

```javascript
const result = await skill.execute({
  scanPath: './src/components',
  tokenDefinitions: './tokens/design-tokens.json',
  rules: {
    enforceTokenColors: true,
    enforceTokenSpacing: true,
    enforceTokenTypography: true
  },
  severity: 'warning'
});
```

Files in this skill

  • README.md1.2 KB
  • SKILL.md2.8 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…