跳到正文
cccskills
免费在 GitHub 公开

visual-regression-lab

Compare captures; stitch lazy/animated pages.

中文简介正在准备中。当前显示原文说明。

集成工具Playwright
查看安装方法

包含的文件(6)

  • SKILL.md2.0 KB
  • agents/openai.yaml250 B
  • references/baseline-contract.md1.2 KB
  • references/stitched-full-page-capture.md3.4 KB
  • scripts/capture-settled-baseline.mjs6.2 KB
  • scripts/capture-stitched-full-page.mjs15.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Visual Regression Lab

Use this skill to capture comparable browser evidence and inspect visual regressions. Scope routes, viewports and states to the requested comparison; a capture alone does not prove quality.

Required Checks

  1. Start or identify the local server.
  2. Open the relevant route in a browser or Playwright.
  3. Capture the relevant supported viewports and states, using the same conditions for baseline and candidate.
  4. Check console errors, failed requests, layout overflow, missing media, and text clipping.
  5. Inspect first viewport composition, hierarchy, spacing, typography, image crops, and CTA visibility.
  6. Test key interactions: nav, forms, menus, tabs, accordions, hover states, focus states, and modals.
  7. For animation-heavy work, test reduced-motion behavior and watch for jank.
  8. For canvas/WebGL/video, verify nonblank rendered pixels and stable framing.
  9. Report observed differences with evidence. Repair only when authorized, then recapture affected states; no fixed polish-pass or edit quota applies.

Read baseline contract. When a project has Playwright installed, run node "<skill-root>/scripts/capture-settled-baseline.mjs" <url> <output-dir> to capture settled desktop/mobile/reduced-motion states and a machine-readable inspection manifest.

When native full-page capture is blank, sparse, incomplete, or inconsistent with real scrolling, read stitched full-page capture and run node "<skill-root>/scripts/capture-stitched-full-page.mjs" --url <url> --output <image>. Treat the stitched image as evidence only after visual inspection.

Output

Report:

  • routes/viewports checked
  • screenshots or saved paths when available
  • issues found and fixed
  • commands run
  • anything not tested

Resolve <skill-root> to this skill folder's actual absolute location; preserve project-local module resolution for Node capture tools.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Audit semantic and keyboard accessibility.

中文简介正在准备中。当前显示原文说明。

TheGoat395/Codex-Skills1292026年9月11日 更新

Finish accessibility and performance details.

中文简介正在准备中。当前显示原文说明。

TheGoat395/Codex-Skills1292026年9月11日 更新

Evaluate agent and skill behavior or routing.

中文简介正在准备中。当前显示原文说明。

TheGoat395/Codex-Skills1292026年9月11日 更新

Design memory provenance and tenant isolation.

中文简介正在准备中。当前显示原文说明。

TheGoat395/Codex-Skills1292026年9月11日 更新

Resolve agent ownership and handoff design.

中文简介正在准备中。当前显示原文说明。

TheGoat395/Codex-Skills1292026年9月11日 更新

Define coherent motion timing and rhythm.

中文简介正在准备中。当前显示原文说明。

TheGoat395/Codex-Skills1292026年9月11日 更新

查看 TheGoat395 的全部技能

报告此技能的问题