pixel-diff SKILL.md skillA

pixel-diff from mukiwu/muki-ai-plugins is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add mukiwu/muki-ai-plugins/pixel-diff@git:20260705.d1a0405

Pins git:20260705.d1a0405 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
mukiwu/muki-ai-plugins
Path
plugins/figma-visual-reviewer/skills/pixel-diff/SKILL.md
Versions recorded
2
Latest version
git:20260705.d1a0405, committed Jul 5, 2026
First version recorded
Mar 29, 2026
Size
2,613 bytes
Repository stars
73
License
none declared

Pixel-level image comparison between two screenshots. Generates a visual diff overlay highlighting differences. Use for comparing Figma designs against web implementations.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Pixel Diff

兩張截圖的像素級比對,產出差異視覺化圖。

## 使用時機

- 比對 Figma 設計稿與網頁截圖
- 檢測 CSS 變更造成的視覺 regression
- 前後版本的 UI 變化追蹤

## 前置條件

- 安裝 `Pillow` 和 `numpy`:`pip install Pillow numpy`

## 使用方式

```bash
python "${CLAUDE_PLUGIN_ROOT}/scripts/pixel-diff.py" <image_a> <image_b> --output diff.png \
  [--threshold 10] [--pass-below 5] [--block-above 15] [--ignore-region x,y,w,h]
```

腳本在 plugin 目錄裡,不在使用者專案裡——路徑一定要用 `${CLAUDE_PLUGIN_ROOT}`,寫相對路徑會找不到檔案。

## 參數

| 參數 | 必填 | 說明 |
|------|------|------|
| `image_a` | 是 | 參考圖(設計稿) |
| `image_b` | 是 | 比對圖(網頁截圖) |
| `--output` | 否 | 差異圖輸出路徑(預設 `diff.png`) |
| `--threshold` | 否 | 每像素色差敏感度 0-100(預設 10,值越低越嚴格)。這是「色差多大才算不同」,不是整體容許比例 |
| `--pass-below` | 否 | 整體差異低於此百分比判 PASS(預設 5) |
| `--block-above` | 否 | 整體差異高於此百分比判 BLOCK(預設 15),之間為 WARNING |
| `--ignore-region` | 否 | 忽略區域 `x,y,w,h`,可重複——遮掉時鐘、輪播等動態內容 |
| `--background` | 否 | 透明圖層合成的背景色(預設 `white`) |
| `--highlight-color` | 否 | 差異標記顏色(預設 `red`) |

## 輸出

1. **diff.png** — 差異視覺化圖(差異區域用半透明紅色標記)
2. **stdout JSON** — 差異統計數據:
   ```json
   {
     "total_pixels": 2073600,
     "diff_pixels": 12450,
     "diff_percentage": 0.60,
     "diff_regions": [
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add mukiwu/muki-ai-plugins/pixel-diff@sha256:a698fafa10ae3817

The line at the top of this page pins the label git:20260705.d1a0405, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_gfm27imq6vdsosjs.svg)](https://markdownregistry.com/a/art_gfm27imq6vdsosjs)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Mar 29, 2026 and Jul 5, 2026, about one every 98 days.

versioncommittedcommitsizeaudit
git:20260705.d1a0405 latest2026-07-05 d1a0405 2,613 BA view · diff
git:20260329.48322c12026-03-29 48322c1 1,626 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2613 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

mukiwu/muki-ai-plugins · 73 stars · license none declared · pushed 2026-10-20 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_gfm27imq6vdsosjs
GET https://markdownregistry.com/api/v1/resolve?ref=mukiwu/muki-ai-plugins/pixel-diff
GET https://markdownregistry.com/api/v1/blob/a698fafa10ae381728e981a97f24aee0b4bd17869c2923f6a0b9f0948bfdc574

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from mukiwu/muki-ai-plugins

CLAUDE.md@plugins/figma-visual-reviewer CLAUDE.md file
mukiwu/muki-ai-plugins · plugins/figma-visual-reviewer/CLAUDE.md
git:20260705.d1a0405 · audit A · 73 stars
figma-export SKILL.md skill
mukiwu/muki-ai-plugins · plugins/figma-visual-reviewer/skills/figma-export/SKILL.md · Export Figma frames as PNG images via Figma REST API. Use when you need to get a design screenshot from a Figma URL for…
git:20260705.d1a0405 · audit A · 73 stars
lore-capture SKILL.md skill
mukiwu/muki-ai-plugins · plugins/lore/skills/lore-capture/SKILL.md · Use when the conversation surfaces knowledge that code, types, tests, or git history can't reveal — the user explains a…
git:20260711.33a281a · audit A · 73 stars
lore-check SKILL.md skill
mukiwu/muki-ai-plugins · plugins/lore/skills/lore-check/SKILL.md · Use when asked whether the project's lore is healthy or still helping, or when the 30-day heartbeat suggests a re-check…
git:20260714.3f8755e · audit A · 73 stars
lore-consult SKILL.md skill
mukiwu/muki-ai-plugins · plugins/lore/skills/lore-consult/SKILL.md · Use when about to plan a feature, fix a bug, or touch unfamiliar code in a repo that has a docs/lore/ folder, before…
git:20260714.3f8755e · audit A · 73 stars
lore-eval SKILL.md skill
mukiwu/muki-ai-plugins · plugins/lore/skills/lore-eval/SKILL.md · Use when asked whether lore actually catches the mistakes it records, after rewording entries or changing lore-guard…
git:20261020.48d618b · audit A · 73 stars
lore-guard SKILL.md skill
mukiwu/muki-ai-plugins · plugins/lore/skills/lore-guard/SKILL.md · Use when about to commit, open a PR, or claim a change is done in a repo that has docs/lore/ — maps the changed files…
git:20260714.3f8755e · audit A · 73 stars
lore-init SKILL.md skill
mukiwu/muki-ai-plugins · plugins/lore/skills/lore-init/SKILL.md · Use when a project has no docs/lore/ yet and implicit knowledge starts coming up in conversation, or when the user asks…
git:20260714.3f8755e · audit A · 73 stars
lore-maintain SKILL.md skill
mukiwu/muki-ai-plugins · plugins/lore/skills/lore-maintain/SKILL.md · Use when lore looks stale or noisy, when a lore-check report flags problems, or on a periodic sweep — finds stale…
git:20260714.3f8755e · audit A · 73 stars
lore-ul SKILL.md skill
mukiwu/muki-ai-plugins · plugins/lore/skills/lore-ul/SKILL.md · Use when a conversation hits a vague or overloaded term, the same word means different things in different places, the…
git:20260714.3f8755e · audit A · 73 stars
review-tests SKILL.md skill
mukiwu/muki-ai-plugins · plugins/review-tests/skills/review-tests/SKILL.md · 測試體檢診斷器(test review / audit existing tests / find test blind spots)——讀一份既有測試,找出盲點與建議,產出一份 self-contained HTML 報告(不修改任何…
git:20260705.11bc9b8 · audit A · 73 stars
session-review SKILL.md skill
mukiwu/muki-ai-plugins · plugins/session-review/skills/session-review/SKILL.md · 回顧一個或多個專案的所有 AI session(Claude Code 加 Codex),產出可互動的 HTML 報告,內容包含 skill 使用排行圖、收斂後的工作流程圖、使用者在功能開發與除錯時怎麼跟 AI 溝通、可做成客製…
git:20261018.0052385 · audit A · 73 stars

Every file in mukiwu/muki-ai-plugins

Browse by kind, by grade A, or by owner.