component-qa

Audits design system React components for build, tokens, a11y, and Storybook test coverage.

Updated Sep 8, 2026
One-click install
npx skills add https://github.com/lucaszhh/agents --skill component-qa-lucaszhh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: component-qa
Source: https://github.com/lucaszhh/agents/tree/main/skills/design-system/component-qa
Command: npx skills add https://github.com/lucaszhh/agents --skill component-qa-lucaszhh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually verifying that a design system component meets quality standards is slow and inconsistent. This Skill automates the QA audit of components in @design-system/react, checking compilation, token usage, accessibility, variants, and Storybook Test Runner results, then producing a scored report. ## Core Features & Use Cases - Automated Testing: Runs Storybook Test Runner with axe-core to validate visual rendering and WCAG 2.1 AA accessibility across all component variants. - Token Compliance Check: Uses grep-based detection to find hardcoded hex/px values that should come from design tokens or the typed theme. - Scored Scorecard: Generates a 0-12 scorecard saved to .agents/qa/ with severity-classified findings (file:line and suggested fixes). - Use Case: After migrating a Button component with component-migrator, run this QA to confirm it compiles, passes a11y checks, covers all states, and is ready for code review before merging. ## Quick Start Ask the agent to run QA on the Button component of the design system and generate the scorecard.

Frequently Asked Questions about component-qa

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run accessibility tests on Storybook components?▼

Run Storybook Test Runner with pnpm test-storybook against a running Storybook instance. It uses axe-core via axe-playwright to audit each rendered story for WCAG 2.1 AA violations like color contrast, missing aria-labels, and invalid ARIA attributes.

How to check for hardcoded hex colors in React components?▼

Use grep with the regex pattern for hex codes and pixel values against the component source directory. Any match outside comments or justified cases indicates a token violation that should be replaced with theme tokens.

What does Storybook Test Runner validate automatically?▼

Storybook Test Runner mounts each story in a headless Playwright browser, checking for runtime errors, console warnings, and play function interactions. With the a11y addon configured, it also runs axe-core accessibility audits on every rendered variant.

Can I run Storybook tests without starting Storybook first?▼

Yes, use the CI mode which builds a static Storybook and runs the test runner against it. If Storybook cannot run at all, fall back to building the package, running the token grep check, and validating the story file statically.

When should I not use a component QA audit?▼

Skip QA if the component is not yet migrated, if you are debugging a runtime crash, or if you only need a code review of a feature diff. QA assumes the component exists and should already compile and render.