跳到正文
Skillpedia
界面(UI/UX)29k · #9689

design-qa

它能做什么

这项技能在界面被认为完成之前进行检查。它能找出设计审阅中常被漏掉的问题,例如没有作用的按钮或缺少加载状态。适合希望在发布前检查界面的设计师和开发者。

适用场景

  • ✓当一个界面、页面或组件即将发布或交付的时候。
  • ✓当生成的界面看起来很普通或只完成了一半的时候。
  • ✓当你想检查页面在手机宽度和浏览器中的显示效果的时候。

技能链接

https://github.com/alirezarezvani/claude-skills/blob/main/product-team/design-qa/skills/design-qa/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/alirezarezvani/claude-skills/blob/main/product-team/design-qa/skills/design-qa/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在我们发布发票页面之前检查它,并告诉我有没有无效按钮、缺失状态或低对比度的问题。”

每周 5 个新技能,1 分钟读完。

工作原理

它会扫描代码,查找未完成的部分,检查每个界面是否有加载、空白和错误状态,并在浏览器中截取渲染后的页面,测量对比度、目标尺寸和布局。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Design QA

Portability: 3 stdlib Python scripts, no network. The browser collector is plain JavaScript; the keyboard pass needs Playwright in your own project. This checks the build, not the taste. Objective defects block; template defaults only warn, because the brief may ask for them.

Screens get reviewed in a static, populated, happy-path frame and ship with a button wired to () => {}, an empty state that says "Lorem ipsum", and a focus ring someone removed. Each script catches one class of these before a user does.

Workflow

# 1 - Source: is anything unfinished in the code?
python scripts/finish_lint.py src/ --output json > lint.json
# 2 - States: does every surface have loading, empty, error, busy, focus...?
python scripts/state_matrix_checker.py --matrix states.csv --evidence-root .
# 3 - Rendered: what did the browser actually show? (capture 320 px and desktop)
node assets/capture_snapshot.mjs http://localhost:3000/invoices --width 320 --out s320.json
python scripts/rendered_audit.py --snapshot s320.json --waivers waivers.csv

Step 1 blocks on inert handlers, dead links, placeholder copy and focus outlines removed without a replacement. It warns on sample data, token drift and each template trait it finds, and rates generic risk LOW, MEDIUM or HIGH.

Step 2 derives required states from each surface's kind (data_view, form, action, control, media, page). An unlisted state counts as missing, and DONE without evidence is reported. Start from assets/states.example.csv.

Step 3 reads a snapshot of the rendered page and blocks on WCAG 2.2 AA failures: text contrast, no focus indicator, focus obscured, reflow at 320 px, empty accessible names and targets under 24×24 px without the spacing exception. Contrast is composited through translucent layers and opacity, so a token that passes on white but fails inside a tinted card is caught. Repeated rows are grouped. No Playwright? Paste assets/collect_snapshot.js into the DevTools console and run copy(JSON.stringify(designQaSnapshot())). Focus results are then unverified rather than passed.

Capture one snapshot per key state (empty, error, long content), not just the populated page. Fill assets/finish_signoff.md from the three runs.

Hard rules

  • Unlisted is missing. A state nobody wrote down was not built.
  • Measure the render, not the CSS. Contrast on a real background beats a declared colour pair.
  • Never block on taste. Template traits warn. Record in the sign-off whether the brief asks for the look.
  • A waiver names the WCAG exception or a ticket. The scripts reject a waiver or NA with no reason.
  • Unverified is not pass. Text on a gradient or focus from script focus is checked by hand or with the keyboard pass.
  • Not an accessibility conformance claim. The checks cover what can be measured. A screen-reader pass and a11y-audit cover the rest.

Scripts

Script Role Exit codes
scripts/finish_lint.py Inert controls, dead links, placeholder copy, removed focus, template traits, token drift 0 clean · 2 findings · 3 bad input · 4 blocked
scripts/state_matrix_checker.py Required states per surface kind, evidence and NA reasons 0 complete · 2 · 3 · 4 blocked
scripts/rendered_audit.py Contrast, focus, target size, names, clipping, reflow from a snapshot 0 clean · 2 · 3 · 4 blocked

All support --help, --sample and --output json.

References and assets

常见问题

它会检查设计品味吗?

不会,这项技能说明它只检查客观缺陷;模板默认值只会给出提醒,因为需求中可能就要求这样做。

它在浏览器中测量什么?

它测量对比度、过小的点击目标、隐藏的焦点,以及窄屏下的布局等。

它需要 Playwright 吗?

键盘检查需要你自己的项目中安装 Playwright,其他检查无需它即可运行。

详情

作者的原始描述

Use when a UI screen, page or component is about to be called done, handed off or shipped, or when generated UI looks generic or half-finished. Gates the rendered result, not the design file - finds controls that do nothing, placeholder copy, removed focus rings, missing loading/empty/error states, low contrast, small targets, hidden focus and broken reflow measured in the real browser, and flags template defaults without blocking on taste.

repo: alirezarezvani/claude-skills

热度

GitHub 星标
29k
排名
#9689
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能