/agent-skills:pixel-diff-loop <reference> <repo-path> [route]from agent-skills
Iterate pixel-diff fixes against a design reference until the mismatch converges below a threshold, committing each improvement as it lands — or reports stuck if it can't get there.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Drives a live UI toward pixel fidelity with a reference design: repeatedly runs pixel-diff, fixes the single worst difference it reports, keeps the fix only once it's measurably helped, and stops when the mismatch converges below a threshold — or gives up and reports stuck if it can't.
Takes the same reference, repo-path, and route arguments as pixel-diff (see its own SKILL.md for what those mean, and how masking non-deterministic content works — that all applies here unchanged), plus two invocation-supplied numbers:
This commits directly, repeatedly, as it runs. Get into an isolated branch or worktree first, the same way you would before any change you intend to commit — this skill doesn't do that for you.
Run pixel-diff (its full procedure) against the reference/repo-path/route. If the reported mismatch is already below threshold, stop here: converged, nothing to do.
From the report, pick the single worst difference to attempt: the largest pixelmatch cluster by mismatched-pixel count, falling back to a solid-fill mismatch only once no pixelmatch cluster remains worth attempting. Identify a difference by the DOM selector pixel-diff resolves for it, not raw coordinates, so you can recognize one you've already given up on (step 5) across later runs even as coordinates shift, and skip it rather than picking it again.
Dispatch one iteration to a fork (Agent tool). Inheriting full context and tools, it reads the difference's DOM selector, compares the live implementation against the reference's markup, CSS, or copy at that point, and implements one targeted fix directly in the working tree — uncommitted. Diagnosing and fixing is a fresh judgment call each time (a line-height, a copy string, a color token, a spacing value) — there's no fixed recipe, since the cause varies with the finding.
Measure, then decide — the fix stays uncommitted through step 3 for exactly this: nothing reaches git until it's proven itself.
pixelmatch-cluster target: re-run pixel-diff twice and compare the mean mismatch percentage against the pre-fix mean (re-run the baseline twice too, if you don't already have two samples of it). A single before/after sample isn't trustworthy — screen renders carry their own sub-pixel noise — so count it as improved only if the mean drops by more than 0.3 percentage points; anything smaller is noise, not signal.{ region, before, after, committed: <sha> }. This resets the consecutive-failure count to 0.{ region, attempt, failed: true }. This adds one to the consecutive-failure count.Wait for the fork's result before dispatching the next one — each decision depends on the last. On a failed attempt, retry the same difference with a different approach, up to 3 attempts total, before abandoning it (mark it given-up-on, per step 2) and moving to the next-worst difference.
Repeat from step 1 — a fresh pixel-diff run picks up whatever just changed — until either:
threshold.max-consecutive-failures without converging.State, in the conversation:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
32 skills in this plugin
/blackbox-test-casesGenerate exhaustive, non-negotiably rigorous black-box test case descriptions (Given/When/Then, not code) for a public API's external contract — never its implementation. Use for zero-tolerance test coverage, an extremely strict/exhaustive black-box test case sweep, or whenever "thorough" test-case generation isn't thorough enough. Produces an API handoff file, one case file per sub-agent — each is its own source of truth — and a master index file pointing at all of them. Every case carries a checkbox so a later implementing agent can track what's been turned into runnable tests. This skill never writes runnable tests itself./brand-palettePick a primary and accent color that fit a given project and fit each other, or — given an explicit primary — pick three accent candidates that each fit the primary and the project, then generate the full Tailwind v4 color-token system (raw OKLCH scales plus the semantic layer, light and dark) for all three candidates as copy-paste CSS and a visual HTML report written into the project. Use when the user wants brand colors chosen for a project, a Tailwind color system generated from a repo, or a secondary/accent color picked to pair with a primary they already have./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./cohesionCohesion — the members of a module or class belong together because they share data or jointly accomplish one purpose, not because they were filed under the same name. Use when several functions in a module all take the same parameter (a data clump), when a class's methods don't obviously need each other, when deciding whether to combine loose functions into a class, or when a module's contents are grouped by category or by when they run rather than by what they share./comment-guidelinesWhat makes a code comment worth writing versus noise that will rot — a narrow allow-list plus named anti-patterns (narration, changelog comments, caller-referencing comments, commented-out code, placeholder spam, AI-voice filler). Use whenever writing, editing, or reviewing code that contains or might contain comments./conventions-checkChecks a repo — or just its current diff — against the conventions it states in its own documents and reports each violation as a structured finding. Read-only: no artifact, no fixing; the caller decides what to do with the findings. Use when asked to check conventions programmatically, or as another skill's convention-compliance gate (e.g. `/implement`'s review pass). For a shareable HTML report instead, use `conventions-report`, which wraps this skill.npx claudepluginhub joachimwedin/agent-skills --plugin agent-skills