verify-artifact

进行截图、控制台扫描以及对视觉元素的布局/颜色/排版回归检查。通过时无提示,仅在有异常时报告。请在 /done 报告“无异常”之后、回合结束前使用。

仓库最近推送
GitHub Stars
112
Forks
11
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "verify-artifact":https://skillpi.com/zh/skills/deepskill-b381d7dd952347ae6f6c11d4a23238f80e800c21ae4e5600a4340010bf4c9f2f。安装前核对上游来源和版本:https://github.com/bluzir/claude-code-design。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

进行截图、控制台扫描以及对视觉元素的布局/颜色/排版回归检查。通过时无提示,仅在有异常时报告。请在 /done 报告“无异常”之后、回合结束前使用。

0 下载

介绍来源: third_party · bluzir · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: verify-artifact
description: Screenshot + console sweep + visual inspection of an artifact for layout/color/typography regressions. Silent on pass, reports only on issues. Use after /done reports clean and before end-of-turn.
argument-hint: <html-path-or-url>
allowed-tools: mcp__chrome-devtools__take_screenshot mcp__chrome-devtools__list_console_messages mcp__chrome-devtools__evaluate_script mcp__chrome-devtools__navigate_page Read Bash(date:*)

Verify Artifact

Deeper check than /done — uses vision on the actual rendering and flags visual problems, not just console errors.

Pipeline

  1. Ensure preview is live: if $0 isn't already open in Chrome DevTools MCP, navigate there first via /preview $0.

  2. Deck-aware pre-check (if <deck-stage> present). Decks have overflow: hidden on sections — vertical overflow is visually silent, so vision alone will miss it. Before screenshot, also hard-reload with cache-bust to make sure the browser is rendering the current on-disk CSS, not a cached state from before the last edit:

    mcp__chrome-devtools__navigate_page({ type: "reload", ignoreCache: true })

    Then run the programmatic audit:

    // mcp__chrome-devtools__evaluate_script
    async () => {
      const stage = document.querySelector('deck-stage');
      if (!stage) return { isDeck: false };
      const DECORATIVE = '.glow, .glow-2, .hero-glow, .chrome, [data-decorative], [aria-hidden="true"].backdrop';
      const isDecorative = (el) => {
        if (el.matches(DECORATIVE) || el.closest(DECORATIVE)) return true;
        const cs = getComputedStyle(el);
        if (cs.pointerEvents === 'none' && !el.textContent?.trim() && parseFloat(cs.opacity) < 1) return true;
        return false;
      };
      const out = [];
      for (let i = 0; i < stage.totalSlides; i++) {
        stage.goToSlide(i);
        await new Promise(r => setTimeout(r, 80));
        const s = stage.querySelectorAll('section')[i];
        const sRect = s.getBoundingClientRect();
        const scale = 1080 / sRect.height;
        let maxBottom = 0, culprit = null;
        for (const el of s.querySelectorAll('*')) {
          if (isDecorative(el)) continue;
          const cs = getComputedStyle(el);
          if (cs.display === 'none' || cs.visibility === 'hidden') continue;
          const r = el.getBoundingClientRect();
          if (r.height === 0 && r.width === 0) continue;
          const b = (r.bottom - sRect.top) * scale;
          if (b > maxBottom) { maxBottom = b; culprit = el.className?.toString?.().slice(0, 40) || el.tagName; }
        }
        const contentBottom = Math.round(maxBottom);
        const overflow = contentBottom - 1080;
        const headroom = 1080 - contentBottom;
        const status = overflow > 0 ? 'FAIL' : headroom < 40 ? 'WARN' : 'OK';
        out.push({ slide: i + 1, contentBottom, overflow, headroom, status, culprit });
      }
      stage.goToSlide(0);
      return { isDeck: true, slides: out };
    }

    Severity:

    • FAIL (overflow > 0) — P0. Content silently clipped. Report list of slides + culprit class; skip rest of verify, tell Claude to fix.
    • WARN (headroom < 40) — P1. Visually tight against edge (font-metric variance can push over). Report as soft issue.
    • OK — proceed.
  3. Take a fresh screenshot to a timestamped path:

    ts=$(Bash(date -u +%Y%m%dT%H%M%SZ))
    mcp__chrome-devtools__take_screenshot({ filePath: `.claude/verify-${ts}.png`, fullPage: true })

    For decks that passed the overflow audit, also sample slides at positions [0, mid, last] and save as .claude/verify-${ts}-slide-${n}.png — vision-check each rather than just the current viewport.

  4. Read the screenshot with vision: use the Read tool on .claude/verify-<ts>.png — Claude is multimodal and will see the image as input.

  5. Grab console: mcp__chrome-devtools__list_console_messages — collect all severities.

  6. Reason over the image + console. Check against the Claude Design taste rules:

    • Typography: text ≥ 24px on 1920×1080 slides, ≥ 12pt on print, ≥ 44px for mobile hit targets, legible hierarchy, no AI-slop fonts (Inter, Roboto, Arial, Fraunces)
    • Layout: no overflow/clipping/misalignment, consistent spacing rhythm
    • Color: contrast ≥ 4.5:1 on body text, palette from brand/design system, no invented colors
    • Content: no Lorem ipsum or TODO markers still visible, no filler
    • AI-slop tropes: no aggressive gradients, no rounded-card-with-left-border-accent, no emoji without brand justification, no SVG-drawn imagery (should be placeholders)
    • Console: errors, React hydration mismatches, CORS, missing assets
  7. Severity rubric:

    • P0 — artifact is broken (crashes, blank page, major overflow)
    • P1 — looks wrong (contrast failure, typography violation, layout bug)
    • P2 — could be better (inconsistent spacing, minor color drift)
    • P3 — nitpick
  8. Silent-on-pass: if no P0/P1 issues and console is clean, respond with a single line: verify-artifact: OK.

    • Do NOT print anything else on a clean pass. This is noise otherwise.
  9. Report: if issues found, list them by severity with screenshot coordinates or element descriptions precise enough for Claude to fix:

    [P1] Header h1 at top-left is 18px — should be ≥ 32px for slide context
    [P2] Footer contrast 3.2:1 vs 4.5:1 minimum — lighten text or darken bg
  10. Auto-fix loop (only if user requested): address each P0/P1, then re-run verify-artifact.

Optional deep-dive

If the user asks for a deep check, run:

  • mcp__chrome-devtools__performance_start_trace — LCP/CLS/INP
  • mcp__chrome-devtools__lighthouse_audit — a11y / best-practices / SEO

These are opt-in; default verify is just screenshot + console + vision.

Alternative: parallel background check

For truly large artifacts (20+ slides) where verify latency matters, consider forking a subagent via the Agent tool (built into Claude Code) to run the visual inspection in parallel while you continue working. Pass the screenshot path + console dump in the prompt. This is optional — most artifacts benefit from inline verification.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值90/100

亮点

  • 提供了对网页或应用视觉元素的自动化回归检查,包括截图、控制台扫描和视觉检查,适用于开发者在完成开发后进行质量验证,确保视觉和功能性没有问题。
  • 这是一个非常实用且高效的工具,尤其适合需要频繁进行视觉回归测试的场景。
触发精准90/100

亮点

  • description 中明确指出了使用场景和触发条件,如“截图 + 控制台扫描 + 对视觉元素进行布局/颜色/排版回归检查”,并且提供了详细的使用说明和参数提示。
结构规范90/100

亮点

  • Skill 的结构非常清晰,包含了详细的步骤说明、代码示例、严重性分级和出口条件,frontmatter 也完整,符合规范。
执行可靠90/100

亮点

  • Skill 中使用的工具如 mcp__chrome-devtools__take_screenshot 等来源明确,参数使用正确,且覆盖了主要的异常情况,如控制台错误、视觉问题等,同时提供了详细的严重性分级和报告机制。
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。