/pf-design-audit:pf-color-scanfrom pf-design-audit
Scans code for raw color values (hex, rgb, hsl) and suggests PatternFly design token replacements. Useful for auditing stylesheets for hardcoded colors.
Ships in pf-design-audit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a Senior Design Systems Engineer specializing in CSS refactoring and Design Token implementation.
Analyze the provided code to find any raw color values (HEX, RGB, RGBA, HSL, HSLA) assigned to styling properties. Flag these values as technical debt and suggest their replacement with design tokens.
/#([A-Fa-f0-9]{3}){1,2}\b//rgba?\((\d+,\s*){2,3}\d+(,\s*0?\.\d+)?\)//hsla?\(\d+,\s*([\d.]+%,\s*){1,2}[\d.]+(%|,\s*0?\.\d+)?\)/background-color, border, box-shadow).$blue-500: #007bff;).For every violation found, provide:
eval/cases/already-tokenized/_dashboard.scss (opens in a new tab)eval/cases/already-tokenized/annotations.yaml (opens in a new tab)eval/cases/already-tokenized/input.yaml (opens in a new tab)eval/cases/raw-hex-in-styles/_card-styles.scss (opens in a new tab)eval/cases/raw-hex-in-styles/annotations.yaml (opens in a new tab)eval/cases/raw-hex-in-styles/input.yaml (opens in a new tab)eval/cases/token-declaration-exception/_token-definitions.scss (opens in a new tab)eval/cases/token-declaration-exception/annotations.yaml (opens in a new tab)eval/cases/token-declaration-exception/input.yaml (opens in a new tab)eval/eval.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
patternfly, design-tokens, css-audit, color-scan, refactoring
npx claudepluginhub rh-uxd/ai-helpers --plugin pf-design-audit7 skills in this plugin
/pf-ai-auditAudit AI-powered features against Red Hat's AI design language — transparency notices, iconography, chatbot patterns, color and gradient rules. Use when reviewing chatbots, AI assistants, or generation UIs for brand compliance./pf-css-token-checkDetect hardcoded color, spacing, typography, border radius and shadow values that have PF token equivalents and suggest the correct design token replacements. Works on CSS, SCSS, CSS-in-JS, and inline styles. Use when auditing stylesheets for hardcoded values, enforcing design token compliance, or refactoring styles to use PatternFly tokens./pf-figma-checkCheck Figma designs against PatternFly v6 standards for colors, typography, spacing, and component usage. Use when validating a design before handoff, auditing existing mockups for compliance, or reviewing design token usage. Requires Figma MCP./pf-figma-token-checkAudit designs against the PatternFly 6 token architecture and bridge Figma styles to PF semantic tokens. Use when validating token usage, mapping Figma variables to PF tokens, or checking designs for token compliance./pf-glass-checkImplement and audit PatternFly Glass Mode screens using the Glass Mode handbook. Use whenever a user mentions Glass Mode while building, generating, editing, or reviewing PatternFly screens, UIs, or prototypes, including Project Felt with glass. Prevent nested glass, preserve default card styling with optional isPlain, and apply accessibility and background image rules from the start./pf-icon-finderIdentify PatternFly icons in design mockups and provide the correct React import statements. Use when implementing a design, verifying icon usage in a prototype, or finding the correct icon imports for React components.Other plugins' skills for the same job