gate
GitHub执行自动化质量门禁,验证构建、代码规范及UI渲染的正确性。通过运行准确率报告和像素级检查确保交付物符合标准,修复失败项直至全绿,为发布或审查提供客观依据。
触发场景
安装
npx skills add plugin87/ux-ui-agent-skills --skill gate -g -y
SKILL.md
Frontmatter
{
"name": "gate",
"description": "Run the one-command quality gate and report the real N\/N result. Use before claiming any build\/review is done.",
"disable-model-invocation": true
}
Step 0: is the kit here? This skill reads files from the kit. Check once:
ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSINGOnKIT_MISSINGonly the skill folders were installed, which is whatnpx skills adddoes. Say so plainly, point the user atnpx ux-ui-agent-skills initor the plugin install, and stop. Do not guess the contents of a file you could not open.
Run the full quality gate and report the ACTUAL output, never a remembered or reasoned number.
- Run:
node ${CLAUDE_SKILL_DIR}/../../../scripts/accuracy_report.mjs(tokens + contrast + spec + no-hardcode + theme-refs + no-emoji + real-render WCAG + state-aware, light and dark; all-or-nothing). - Report the exact
N/Nline it prints. - If it is not fully green:
- List each failing check verbatim.
- Fix the cause (do not suppress the check).
- Re-run until green. Do not announce success between failures.
- For any rendered HTML touched this session, also run the pixel-truth checks
the gate cannot prove:
node ${CLAUDE_SKILL_DIR}/../../../scripts/gate.mjs verify_states.mjs <file> [--dark]node ${CLAUDE_SKILL_DIR}/../../../scripts/gate.mjs verify_responsive.mjs <file>- RENDER-AND-LOOK: screenshot the harness, park the pointer off it, inspect every state, click each control to confirm the state changed.
Honest scope: these gates prove objective correctness (tokens, a11y, no drift).
They do not prove taste. Pair with DS_REQUIRE_BROWSER=1 node ${CLAUDE_SKILL_DIR}/../../../scripts/taste_audit.mjs + human review;
never claim auto-100% on aesthetics.
版本历史
-
def84a7
当前 2026-11-03 02:21
v3.0: 全面移除连字符,更新README封面图,强化脚本输出规范;修复插件安装路径问题,修正浏览器门禁跳过逻辑及焦点陷阱测试缺陷。
- 62092bd 2026-10-19 09:19


