UI Quality Inspector: Automated Pre-Delivery Acceptance for AI-Generated Product UI

Introduction

When using AI to generate landing pages, H5s, or component library demo pages, the common rhythm is “if it opens, it’s done.” Issues such as leftover styles, bare HEX codes, placeholder images, and generic AI copy often do not surface until handover or launch, resulting in high rework costs. Manual, page-by-page visual scanning also cannot handle the volume and pace.

Below is an introduction to the SkillHub community Skill, “UI Quality Inspector”: it uses a rule engine to scan HTML-ified UI before delivery, outputting judgments and a list of issues to keep “looks okay” at bay. It supports triggering via Chinese dialogue and also supports command-line usage with clear exit codes, making it convenient for scripting and CI.

What is it

UI Quality Inspector (Coordinate @user_742b34a0/ui-quality-inspector, Current version 1.13.0) is maintained by community publisher user_742b34a0, categorized as design-media, source community. The SkillHub page displays a rating of 100000 and approximately 794 downloads; the skill tag is requires_api_key=false, meaning it does not rely on an extra API Key.

One-sentence positioning: Focused on AI-generated Web/H5/Mini-program export pages, component library pages, etc., performing acceptance quality inspection before delivery, checking for problems only without modifying code.

Distinguished from the “Design Restoration Inspector” (a Skill by the same author matrix) with clear division of labor: this Skill focuses on the hard defects and quantifiable items of the generated output, with final delivery decisions still made by humans.

Core Features

The following capabilities are derived from the official SKILL.md and built-in engine documentation; the package version is aligned with the page as v1.13.0.

Acceptance and Output

  • Dialogue Trigger: You can say “Quality Check” (质检), “Acceptance” (验收), “UI Check” (UI 检查), or “Detected Problems” (检出问题); you can also hand HTML, design drafts, or screenshots to the Agent for inspection based on the same set of rules.
  • Command Trigger: It includes a built-in Node engine (engine/index.js) that performs static scanning and scoring on HTML-ified UI artifacts; the report contains JSON (easier for fix-side AI consumption) and Markdown (easier for humans to read), along with “Design Insights” suggestions merged by design principles.
  • Exit Code Semantics (CI Gate): 0 means pass, 1 means send back (P0 violation or total score below 60), and 2 means usage or runtime error.

Detection Tracks (Engine Side)

The rule fact source is located in 03-标准/redlines.yaml (compiled to redlines.json), and the engine does not hardcode rule definitions:

Track Summary
A Approx. 22 static “red lines” (P0 hard thresholds, any FAIL triggers a send-back)
D Generic AI copy (clichés, filler words, etc.), mostly P1 warnings, not included in send-back by default
C Six-dimensional quantifiable aesthetic items; subjective items are marked as requiring human eye confirmation
F Optional: Comparison of design spec dimensions and rendering snapshot fidelity

Aesthetics and scoring follow the “Honesty Iron Law”: problems are listed first, then deductions are applied; a total score below 60 is judged as “Must Redo”; if unable to judge, the required conditions are clearly stated without fabricating evidence.

Installation Self-Check

After installation, you can run 13 installation integrity self-checks (engine/selfcheck.js) and 8 samples smoke tests (engine/scripts/smoke.js) to confirm the package itself is usable.

Clearly Not Doing

  • It does not directly modify code; fix suggestions are intended for the generation-side AI or humans.
  • Logic code (.js / .py etc.) is out of scope and will be directed to a linter; .vue / .tsx etc. need to be exported to HTML before inspection.
  • Coordinate-level checks are not performed without design annotations; whether requirements align with business goals requires human judgment.

Installation and Activation

The official SkillHub page prompt: Install this Skill following the SkillHub Installation Documentation. It is summarized in three steps (consistent with the Skill’s readme “3 Steps to Finish”).

1. Install SkillHub CLI (if not already installed)

First, check if the CLI already exists:

command -v skillhub && skillhub --version

If not installed, execute (full installation, including default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install UI Quality Inspector to the current Agent’s skills directory

When installing, you must use --dir to point to the current environment’s skills directory; otherwise, it defaults to ./skills/, and the Agent may fail to load. Common path examples:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project.

Installation command (consistent with skillhub search output):

skillhub install ui-quality-inspector --namespace user_742b34a0 --dir ~/.cursor/skills

Coordinate full name: @user_742b34a0/ui-quality-inspector. WorkBuddy users can also search for “UI Quality Inspector” in the market for one-click installation; Trae, Claude Code, etc., can import the skill directory into the corresponding product.

3. Verify Installation

Choose either:

  • Dialogue: Hand any AI-generated page HTML to the Agent, trigger the quality check, and you should receive a report containing judgments and a list of issues.
  • Command (Requires Node ≥ 18, engine runtime zero dependencies, no npm install needed):
cd <skill installation directory>/ui-quality-inspector
node engine/scripts/smoke.js
node engine/selfcheck.js

For upgrades, use:

skillhub upgrade ui-quality-inspector

Typical Usage

Dialogue Mode

Example trigger words: “Quality Check” (质检), “Acceptance” (验收), “UI Check” (UI 检查). Just hand the target HTML or screenshot to the Agent; the judgment criteria are consistent with the command mode.

Command Line Single File

Execute in the engine directory within the skill package (paths depend on your local installation location):

node engine/index.js page.html --out=./reports

When design fidelity comparison is needed (corresponding snapshot JSON must exist in the same directory):

node engine/index.js page.html --fidelity=spec.json

CI Gate Using Exit Codes

node engine/index.js target.html && echo "Ready for delivery"

When sent back, the process exit code is 1; configuration or path errors are 2, output includes error codes like E001~E900 and fix guidance (see built-in engine/FAQ.md).

Batch and Advanced

For batch directory processing, you can use the built-in qc-all.sh (see engine README); if you only need a specific track, you can require individual modules for separate calls; documentation is in the “How to use modules individually” section of engine/README.md.

Applicable Scenarios and Notes

Who is it for

  • Frequently using AI to generate pages, component demos, or H5s and wanting an automatic “red line” before merging or delivery.
  • Teams that need to use exit codes for gates in GitHub Actions or custom scripts.
  • Interface Owners who want quantitative feedback in reports beyond just “where the error is,” such as spacing, contrast, and font hierarchy.

Usage Notes

  • Input is primarily HTML-ified artifacts; for mixed tech stack pages, export the whole page first before checking; for multi-device isomorphism, generate separate reports per device and do not merge scores.
  • Single files that are too large (e.g., over 5MB) will trigger E102 protection; for very large pages, it is recommended to inspect by block.
  • Focused on new AI deliverables; existing legacy sites and pure logic files are not the main scenarios.
  • Subjective aesthetic items will be marked as “requires human eye confirmation” and do not replace the final design review.

Conclusion

UI Quality Inspector turns the pre-delivery acceptance of AI-generated UI into a repeatable process: dialogue allows for quick spot checks, while commands and exit codes enable automation. The rule engine runs locally with no third-party npm dependencies, making it suitable to be a fixed checkpoint in the output rhythm.

  • SkillHub Page: https://www.skillhub.cn/skills/user_742b34a0/ui-quality-inspector
  • API Coordinate Page: https://api.skillhub.cn/user_742b34a0/ui-quality-inspector
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye