/mattpocock-skills:design-iterationfrom mattpocock-skills
Refines interfaces through visual feedback rounds against an append-only liked/rejected ledger, with mandatory screenshot verification.
Ships in mattpocock-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.
Read when SKILL.md points to them.
Work in focused rounds: observe → change → render → inspect → present → record feedback.
Use the project's existing iteration directory if one exists. Otherwise use:
.agent/iterations/design/<task-slug>/ledger.md.agent/iterations/design/<task-slug>/artifacts/R<nnn>/Reuse a stable task slug across sessions. Allocate IDs from existing records; never restart numbering or overwrite an earlier round's artifacts.
The ledger is the historical source of truth. Optional summaries are derived views and must not replace it.
Before claiming NOT VISUALLY VERIFIED, actually hunt for a browser: check
Playwright's cache (~/Library/Caches/ms-playwright/chromium-*/chrome-mac/ Chromium.app/Contents/MacOS/Chromium on macOS), puppeteer-core candidates,
CHROME_PATH. A headless Chromium there + puppeteer-core is enough: boot
the dev server (npm --prefix <app> run dev -- --port <port> --strictPort,
run from the app package, not the workspace root — wrong cwd = 404), wait
for networkidle2 + a settle delay, page.$(selector).screenshot(...),
then READ the PNG with the Read tool and inspect the actual image. Record
the shot path as the round's artifact. "No browser" is a last-resort
finding, not a default excuse — an unverified round the owner cannot see
is a wasted round.
Resume and reconcile Read the brief, relevant implementation, references, and existing ledger. Append any new explicit feedback before planning another round. Reconstruct active preferences, applying explicit supersession events. Ask only about blocking ambiguities or unresolved preference conflicts.
Establish the visual baseline Inspect the current rendered result at the relevant viewport and state. Preserve the screenshot or supplied reference. For a new design, render the first candidate as the initial baseline. Record concrete observations rather than unsupported judgments.
Choose a focused hypothesis State the desired improvement and the small set of changes intended to produce it. Identify which liked details must remain unchanged and which rejected details the round addresses. Avoid changing several unrelated design dimensions at once.
Implement and inspect Render the changed result. Compare before and after using matching viewport, scale, content, and interaction state; disclose unavoidable differences. Inspect the actual image, not merely the source code. Check relevant hierarchy, spacing, typography, contrast, overflow, responsive behavior, and interaction states.
When code changes, use code-iteration if available; otherwise run relevant
project checks. Passing code checks does not establish visual approval.
If rendering or image inspection is unavailable, mark the result
NOT VISUALLY VERIFIED. Provide provisional work if useful and request the
missing screenshot or access. Never invent visual observations.
Present the round Append the round record, then show or link the actual artifacts. Explain what stayed, what changed, and the main unresolved tradeoff. Ask a focused question inviting liked/rejected feedback. Do not describe the round as approved unless the user approved it.
Record feedback and continue Split mixed feedback into atomic decisions. Record explicit preferences from the brief or subsequent feedback, including their source and scope. Keep your recommendations outside preference records. Continue from the active ledger, not from memory.
On explicit approval, stop redesigning and hand off the approved artifact, active constraints, verification status, and remaining implementation work.
Append complete Markdown blocks using append operations. Never rewrite, delete, sort, reformat, or silently correct existing records.
Use a round block like:
## Round R001
- Goal: <specific improvement>
- Preserved preferences: <feedback IDs or none>
- Changes: <focused changes>
- Before: <artifact/reference>
- After: <artifact/reference>
- Visual inspection: <performed checks and observations, or NOT RUN>
- Code verification: <evidence reference, failures, or NOT RUN>
- Open question: <feedback needed>
Append each preference separately:
## Feedback F001
- Round: R001
- Verdict: LIKED | REJECTED
- Scope: <element/property, viewport, state>
- Decision: <specific detail to preserve or avoid>
- User source: <quote or faithful paraphrase tied to the relevant message>
- Artifact: <artifact/reference being evaluated, if available>
- Supersedes: <feedback IDs or none>
Ledger invariants:
Where the project keeps a project graph (.project-history/graph.jsonl, via
scripts/project-graph), keep it in step with the ledger — unconditionally,
never optionally: if no graph exists, run project-graph init first instead of
skipping the record — but resolve WHERE the store belongs before creating one.
The graph lives with the project the work belongs to; when a repo keeps
several project stores (monorepo subprojects, a main app beside them), follow
that repo's agent docs for the canonical locations, and never init a store at
a repo/workspace root the session happened to start from when the work belongs
to a project that keeps its store elsewhere.
Start every session with
project-graph head --actor design-iteration; claim any handoff addressed here
with project-graph ack <hid> --actor design-iteration before working, and
close it via --via-handoff <hid> on the round's first appended node. When a
round completes, append an iteration node whose artifacts point at the new
round block and relevant commits, chained with --continues-from; a replaced
direction appends a decision node plus a supersedes edge carrying the
rejection reason. When the next round needs implementation-sized code work,
offer it explicitly: project-graph handoff --to code-iteration --from-node <node>. Never edit the JSONL by hand — record only through the CLI.
Report:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (vasyapym/vasyapym.github.io) — no native marketplace selected
npx claudepluginhub p/vasyapym-mattpocock-skills50 skills in this plugin
/ask-mattAsk which skill or flow fits your situation. A router over the skills in this repo./brainstormInspect the full diff and surrounding architecture, then propose high-leverage improvements without editing files./bug-iterationFix a reported bug — especially one that has returned after a previous fix — by reproducing it, diagnosing the root cause rather than the symptom, gating every change behind a regression test, stating exactly what was and wasn't verified, and closing with a compact pass report.Other plugins' skills for the same job