dev-ui-verify
Skill0 starsChanged 5 days agoApache-2.0View on GitHub
UI 黑盒验证流程(L0/L1):起 dev server、切三档视口、截图、看图判断,并判定是否升级到 L2。不带脚本,不产生仓库内的验证装置。
1 other project uses a version of this.
Adopted by
Most recently taken up by
- egoxx1/unified-master-harnesstheir own version, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- egoxx1/unified-master-harness★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dev-code-reviewSkill
- dev-dispatch-contractSkill
- dev-environmentSkill
- dev-implementation-planSkill
- dev-observabilitySkill
- dev-quality-gateSkill
- dev-releaseSkill
- dev-retroSkill
- dev-role-developerSkill
- dev-role-testerSkill
- dev-systematic-debuggingSkill
- dev-test-strategySkill
- dev-ui-reviewSkill
- dev-worktree-gitSkill
The file
Files
UI 黑盒验证(L0 / L1)
本技能只给流程,不带脚本。视口与截图由工具面负责:
browser_viewport / browser_navigate / browser_screenshot / read_image。
工具缺失时按末尾「降级」处理,也不要自己写脚本。
触发条件
- 手里有 UI 改动:新屏、改布局、改断点、改交互、改状态;
- 卡片的验收是 L0 或 L1(行为清单,而不是断言表);
- 报告需要补截图证据。
步骤
1. 起服务
- 用
tool-jobs后台跑 dev server:pnpm dev --host 0.0.0.0(Next 用pnpm dev -H 0.0.0.0), 容器里不加--host就只有容器内可达。 - 等就绪用证据,不用 sleep:
curl -sI http://127.0.0.1:<port>返回 200,或页面 body 非空。 - 端口被占先
lsof -i :<port>查占用。
2. 切视口(browser_viewport)
| 档 | width × height | DPR | mobile |
| desktop | 1440 × 900 | 1 | false |
| tablet | 1024 × 768 | 2 | false |
| mobile | 390 × 844 | 3 | true(touch 默认跟随) |
普通卡默认 desktop + 一个移动档;只有「响应式专项卡」才跑三档。
3. 打开并截图(browser_navigate / browser_screenshot)
- 走路由直达(hash / path),不要靠点菜单绕进去。
- 截图落
.shots/(该目录必须已在.gitignore),命名<screen>__<viewport>__<state>.png。
4. 看图判断(read_image)
- 必须真的看图;只把路径写进报告不算验收。
- 偏差写清位置:
file:line或截图路径 + 一句「应该是什么 / 现在是什么」。 - 判断口径(按优先级):布局塌陷与横向滚动条 → 断点错位(宽表格、按钮点不到、文字截断)→ 状态缺失(空/错/加载)→ token 违规(硬编码颜色/间距)→ 文案与路由不一致。
5. 定档收尾
- 布局 / 视觉 / 文案 → L0;交互 / 路由 / 状态切换 → L1。
- 命中以下任一 → 升级 L2(并写理由):回归保护、逻辑分支、数据边界;断言进
tests/只写一次。 - 收尾调
browser_viewport({ reset: true }),别把视口状态带进下一个任务。
红线
- 禁止写一次性截图 / 断言脚本;禁止把它们复制进仓库(
board-shots.mjs、ui-verify.mjs这类都不行)。 - 禁止提交
.shots/。 - 禁止只贴截图路径、不看图就下结论。
- 缺能力时记
known-limits,改工具或降级 —— 不改仓库。
降级(工具或环境不支持时)
- 没有
browser_viewport:桌面单视口 + 手工截图,报告标注限制。 - 有登录墙:用仓库已有的 seed 账号或现有 dev 登录态,不为截图在仓库加绕过代码。
- 非 SPA / SSR:等
networkidle或关键元素出现再截。 - 需要真实数据:用仓库自带 seed / mock,不现造数据层。
细节(端口、常见失败、known-limits)见 references/ui-verify.md。
检查清单
- 服务就绪有证据(curl 或日志),不是 sleep 猜的;
- 视口与卡片要求一致(档位、DPR、mobile);
- 截图落
.shots/且未入库; - 每张图都用
read_image看过; - 偏差写了位置与期望;
- 收尾已
reset视口; - 没有新增任何脚本文件。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

