---
name: audit-frontend-code-against-design-system-specifications
description: "Audits frontend pull requests against repository design tokens, styling rules, and accessibility requirements. Use when a UI pull request is opened and modified components need compliance review before merge."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Terminal."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/audit-frontend-code-against-design-system-specifications/"
  kind: workflow
  hermes:
    tags: ["frontend", "design-system", "accessibility", "css", "ui"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Audit frontend code against design system specifications

Enforce design tokens, style guidelines, and accessibility constraints across UI components

## When to use

Inspects frontend codebases to verify that components align with predefined design tokens, style rules, and accessibility requirements. Detects styling inconsistencies, proposes compliant component updates, and preps refactored code for review.

## Inputs

- `pull_request`: Frontend pull request containing the modified UI components to inspect.
- `design_tokens`: Repository design token definitions covering color, spacing, and typography scales.
- `styling_rules`: Repository styling and accessibility rules used to evaluate the modified components.

## Steps

1. When something happens: UI pull request opened (A UI pull request is opened.)
2. Check tokens and component rules
3. Post design audit report

## Instructions

When a frontend pull request is created, examine modified interface components against the repository design token definitions and styling rules. Check color values, spacing units, typography scales, and accessibility attributes. If arbitrary values or missing labels are found, draft replacement code referencing authorized design tokens. Always wait for user approval before pushing code changes or submitting comments to the pull request.

## Approvals

- Pushing code changes to the repository
- Submitting comments to the pull request

## Output

Design audit report listing token, styling, and accessibility findings with proposed compliant component updates. (format: comment)

## Source

Summarized in our own words from [awesome-design-skills: List of 67 awesome DESIGN.md and SKILL.md design skill files for agentic tools like Claude Design, Google Stitch, Cod](https://github.com/bergside/awesome-design-skills) (GitHub, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/audit-frontend-code-against-design-system-specifications/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
