Pixel-level image comparison between two screenshots. Generates a visual diff overlay highlighting differences. Use for comparing Figma designs against web implementations.
From figma-visual-reviewernpx claudepluginhub mukiwu/muki-ai-plugins --plugin figma-visual-reviewerThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
兩張截圖的像素級比對,產出差異視覺化圖。
Pillow 和 numpy:pip install Pillow numpypython scripts/pixel-diff.py <image_a> <image_b> --output diff.png [--threshold 5] [--highlight-color red]
| 參數 | 必填 | 說明 |
|---|---|---|
image_a | 是 | 參考圖(設計稿) |
image_b | 是 | 比對圖(網頁截圖) |
--output | 否 | 差異圖輸出路徑(預設 diff.png) |
--threshold | 否 | 像素差異容許值 0-100(預設 10,值越低越嚴格) |
--highlight-color | 否 | 差異標記顏色(預設 red) |
{
"total_pixels": 2073600,
"diff_pixels": 12450,
"diff_percentage": 0.60,
"diff_regions": [
{"x": 100, "y": 200, "width": 300, "height": 50, "label": "region_1"}
]
}