design-qa
Installation
SKILL.md
Design QA
Structured quality gate for UI code. Run against any component, page, or feature before shipping. Every check is binary — pass or fail. Report ONLY failures. Silence = quality.
Scanner
bash "$PI_SKILL_DIR/scripts/design-scan.sh" <target-dir> # human output
bash "$PI_SKILL_DIR/scripts/design-scan.sh" <target-dir> --json # machine output (stdout = pure JSON)
bash "$PI_SKILL_DIR/scripts/design-scan.sh" <target-dir> --critical-only # gate only Critical findings
bash "$PI_SKILL_DIR/scripts/design-scan.sh" <target-dir> --allowlist FILE # structured exceptions
bash "$PI_SKILL_DIR/scripts/design-scan.sh" <target-dir> --allow-empty # zero supported files is not an error
If $PI_SKILL_DIR is unset, resolve the script relative to this SKILL.md's directory.
Dependencies: rg and jq required in every mode. ast-grep optional (adds structural TSX checks).
Support tiers: lexical checks cover tsx jsx ts js css scss html vue svelte astro mdx; structural checks are TSX-only (the shipped ast-grep rule set). Symlinked files are not followed.