Agent Skills
› plugin87/ux-ui-agent-skills
› design-qa
design-qa
GitHub建立设计质量门禁,集成 Token 校验、硬编码检查、自动化无障碍审计、对比度检测及视觉回归测试,防止设计退化。
Trigger Scenarios
设置 CI 质量门禁
防止设计回归
组件或页面上线前 QA
Install
npx skills add plugin87/ux-ui-agent-skills --skill design-qa -g -y
SKILL.md
Frontmatter
{
"name": "design-qa",
"description": "Set up or run design QA gates — token + hardcoded-value lint, automated a11y (axe), contrast, visual regression across variants\/states\/themes\/RTL, and the manual a11y checklist. Use when the user wants CI quality gates, to prevent design regressions, or to QA a component\/screen before shipping."
}
Skill: Design QA
Stand up the automated + manual gates that stop quality from regressing.
Steps
- Read
workflows/design-qa.md(the QA pyramid: token/lint gates → automated a11y → visual regression → manual a11y). - Wire the fast gates first (every commit/PR):
python3 scripts/validate_tokens.py,python3 scripts/validate_contrast.py(batch WCAG over the token pairs), andpython3 scripts/lint_hardcodes.py <src>(no raw hex/px/timing in component code). The repo's.github/workflows/ci.ymlruns these. - Add automated a11y (axe-core / Pa11y) over each component's states (error/loading/disabled/expanded/selected), zero serious/critical to merge. Run the real-render contrast gate
node scripts/measure_render.mjs <file.html>(and--dark) — it opens the page in headless Chromium, disables transitions, and measures the true computed-style + alpha-composited contrast of every text element (catches what static token checks miss). - Add visual regression snapshots across variants × sizes × states × light/dark + key breakpoints + RTL; freeze animations + deterministic data.
- Sign off the manual a11y checklist per release (keyboard, screen reader, 400% reflow, 200% text-spacing, reduced-motion, forced-colors —
accessibility/*).
Verification (definition of done)
- An unreviewed PR cannot introduce an unresolved token alias, a contrast failure, a raw hex/px, or an axe violation — a gate blocks each.
- Snapshots cover dark mode + RTL + the semantic-changing states, not just the happy path.
- Manual a11y checklist signed off for the release.
Version History
- 93a7fbb Current 2026-07-25 07:40


