跳到正文
cccskills
免费在 GitHub 公开

codex-visual-quality-gate

Use after UI implementation for mechanical source checks and a rendered or fresh-eyes review.

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

查看安装方法

包含的文件(6)

  • SKILL.md6.1 KB
  • agents/openai.yaml285 B
  • scripts/capture_responsive_matrix.mjs25.0 KB
  • scripts/responsive_capture_core.mjs7.7 KB
  • scripts/stitch_full_page_capture.mjs4.0 KB
  • scripts/visual_quality_gate.py34.7 KB

SKILL.md(原文)

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

TL;DR

Mechanical checks are source evidence, not aesthetic scores. A valid approval requires complete route × viewport × state capture evidence and a recorded review of every stitched page and source slice. Missing browser, screenshots, coverage, provenance, or review is DEGRADED; high-confidence defects or gaps fail.

Activation

Substantial UI delivery or $visual-gate. Skip backend-only work.

Gate workflow

  1. Exercise every UX-contract flow and declared route/state, including important interaction/error/empty/success paths. Where they apply and can be reproduced, include slow loading, failed network requests, long content, and repeated actions; record a scenario as not applicable or unavailable rather than inventing state requirements. Check keyboard/focus, labels, contrast, semantic structure, and reduced motion as applicable.
    • For a narrative/scroll-driven surface, also test normal/slow, paused, fast, and backward scrolling; direct anchor entry, refresh, and browser back/forward; keyboard navigation; and the reduced-motion static state. Check that sticky navigation does not cover the target heading, the active-section indicator never moves keyboard focus, essential content is visible without waiting for motion, and section context survives a direct jump. Confirm pinned scenes release cleanly and do not trap scrolling or strand focus.
  2. Run scripts/capture_responsive_matrix.mjs with the project route/state manifest. It warms lazy content and makes overlapping viewport-sized screenshots, full-page composites, exact viewport dimensions, and a 320–2560 px width scan. Horizontal overflow, browser errors, and off-viewport interactive controls cause width-specific capture; off-viewport controls are review signals, not automatic defects.
  3. Open and inspect every stitched image and every original slice. Evaluate the screenshot at its stated route, state, and viewport; record reviewer, summary, checked capture keys, and evidence-linked findings in visualReview. Compare before and after at the same route, state, and viewport when baseline evidence exists. On each major route, verify the first visual anchor, primary information/action, current location, and next step are clear; consider first-time-user understanding and returning-user efficiency where those audiences exist. Record exercised flows, route/state checks, and functional/accessibility results in functionalReview. Review through relevant product, visual/interaction, maintainability, accessibility, and regression lenses; use a lens only when it can reveal a distinct risk.
    • For a structural change, inspect the layout contract's must hold items and the chosen creative move in the rendered captures. Check long labels, variable-height rows, media, primary action reachability, content order, and local overflow behavior. Keep a product-fit signature move when it helps the task; fix or roll back the change if it breaks an invariant at a required width.
    • For a narrative sequence, inspect the beats in order and by direct entry. Compare original viewport slices' sourceScrollY values with the UX contract's scene entry, intermediate progress, peak, and scene release; the stitched page alone cannot prove a scrubbed transition. Capture an additional viewport screenshot at the mapped scroll position when a material progress checkpoint falls between slices, and record its project-relative path, route, state, viewport, and scroll position in the review evidence. Confirm each beat adds context or meaning, transitions preserve orientation, pinned scenes release cleanly, and the reduced-motion static state communicates the same story. Check any distinct mobile/tablet scene treatment at its target viewport.
    • When custom or meaningful imagery is used, inspect it in the rendered component at its actual size. At relevant desktop, tablet, and mobile captures, verify its crop and focal point, safe space, copy contrast, relationship to the visual direction, and any specified art-direction change. Check meaningful versus decorative alt text, confirm essential content and controls still work without the asset, and exercise its image-load failure fallback. Record findings against capture keys; do not require an image when the product has no image job.
    • When the UI change also moves files, adds a shared abstraction, or changes state/data ownership, review the new dependency direction and affected consumers. Confirm the structural move solves a concrete maintenance issue; line count alone is not evidence. Run the relevant type, test, and build checks, and record gaps rather than requiring unrelated project-wide cleanup.
  4. Run scripts/visual_quality_gate.py --project-root <app> --capture-manifest <manifest> --format json. It checks all routes/flows/states, seven anchor profiles, breakpoint edges, PNG dimensions, continuous overlapping slice coverage, responsive sweep samples, overflow, provenance, and visual/functional/accessibility review completeness.
  5. Fix or justify high-confidence findings; perform at most two inspect/fix rounds. For each material manual finding, record its capture key or source location, observed symptom, user impact, severity, confirmed root cause or hypothesis, expected outcome, and actual resolution/verification. After a structural change, review the full width sweep and breakpoint edges; after shared-style, token, navigation, or state changes, recheck affected routes and shared-component consumers and record the regression matrix in the existing audit note for broad work. Unresolved blocking/P0/P1 findings fail. Missing coverage or image inspection is DEGRADED.

Viewport anchors (CSS px at device scale 1): 1280×800, 1440×900, 1920×1080; 768×1024, 1024×768; 390×844, 844×390. These are browser emulations, not physical-device certification.

References

  • ../codex-frontend-design/references/anti-slop.md
  • ../codex-frontend-design/references/composition.md
  • ../codex-frontend-design/references/motion.md
  • ../codex-frontend-design/references/responsive-evidence.md

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work — guides completion of development work by presenting structured options for merge, PR, or cleanup

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

Bang-isme/CodexAI---Skills102026年10月5日 更新

Use when a project has 50+ files, missing context, or explicit $codex-genome request; generates multi-layer project context to reduce hallucination.

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

Bang-isme/CodexAI---Skills102026年10月5日 更新

Use for DESIGN.md visual identity contracts; author, scaffold, lint, diff, and export design contracts with the upstream spec and CLI.

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

Bang-isme/CodexAI---Skills102026年10月5日 更新

Use when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus the bundled `scripts/render_docx.py` for visual checks.

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

Bang-isme/CodexAI---Skills102026年10月5日 更新

Use when code changes may require documentation updates; maps git diff to candidate docs without auto-editing documentation.

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

Bang-isme/CodexAI---Skills102026年10月5日 更新

Use for documents, reports, memos, guides, academic papers, or formal text that needs clear structure, reliable tone, formatting, and diagrams.

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

Bang-isme/CodexAI---Skills102026年10月5日 更新

查看 Bang-isme 的全部技能

报告此技能的问题