agents/skills/iterate-forever/SKILL.md
Visual-reference-to-app implementation loop for building or restyling a web app screen to match a provided reference image. Use when Codex is asked to take a screenshot/reference/mockup/image and build an app or route that looks like it, especially when the task requires hosting the app, capturing Playwright screenshots, comparing against the reference, and repeatedly editing until the result is close.
npx skillsauth add carterdea/dots iterate-foreverInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill for visual imitation work where the output is an app screen, not an image edit.
Establish the target.
view_image when it is a local file or attached image.AGENTS.md, update it when the workflow reveals a durable rule or routing convention future agents should inherit.Build the first pass.
$shadcn when the app has a components.json, shadcn components, or the user requests shadcn/ui. Prefer existing shadcn components and compose them before writing custom component markup.Host and capture.
pnpm, prefer corepack pnpm.$playwright-interactive for fast iterative browser work when js_repl is available; keep the same browser handles alive across edit/reload/capture loops.$playwright for CLI-first browser automation, snapshots, and screenshots from the terminal, especially for reproducible artifact capture under output/playwright/.output/playwright/, or a clearly named new subfolder if none exists.Compare like a reviewer.
Iterate.
Run the stop check.
Prefer existing repo helpers. If none exist, use an inline Playwright script or the repo package runner:
corepack pnpm exec playwright screenshot --viewport-size=1440,900 http://localhost:5173/target-route output/playwright/iterate-forever/pass-01.png
If the project does not use pnpm, use the package manager already present in the repo. If Playwright is not installed, inspect package.json before adding dependencies; for a one-off capture, prefer an existing browser/capture tool already in the repo.
In the final response, report the route or files changed, the latest screenshot path, and any validation that ran. If captures could not be run, say exactly why.
tools
Build or refine single-file information-first HTML artifacts, especially index.html or text.html pages, with strong information hierarchy, restrained styling, accessible semantics, and minimal AI-generated frontend tells. Use when creating HTML reports, research pages, explainers, briefs, dashboards, note indexes, annotated code reviews, planning/spec docs, or focused single-purpose editing/triage tools with copy-out export — front ends whose goal is comprehension or action rather than marketing conversion. Reach for this whenever the user wants a standalone HTML page, report, one-pager, explainer, or "quick HTML" to present or organize information, even if they just say "make an HTML file" without mentioning design. Not for multi-page sites, React/framework apps, or marketing landing pages.
development
Ship a Trello ticket end to end on any web app (Vercel, Fly.io, or other host — no Shopify): pull the latest main, read the card including Figma links, implement the change in a worktree, run the project's own tests/lint/typecheck, run de-slop and code-simplifier and fold the worthwhile cleanups in, QA desktop and mobile on a local Portless preview URL, capture screenshots, open or update the GitHub PR, link the PR and Trello to each other, attach screenshots to both, comment on the card, and move it to review. Use this whenever the user points you at a Trello card or ticket for a code task and wants it delivered as a reviewable PR — phrases like 'do this Trello ticket', 'ship this card', 'pick up this ticket and open a PR', 'update the PR for this card', or names a card/list/board with a feature or bug to implement. This is the default Trello-to-PR workflow for non-Shopify projects; for Shopify theme work use shopify-trello-delivery instead.
tools
Install or upgrade a quality baseline for Shopify theme repos. Use this whenever the user asks to add Shopify theme linting, Biome, Theme Check, Playwright accessibility checks, Vitest, Vite build tooling, lefthook hooks, GitHub Actions CI, Shopify Lighthouse CI, Claude Code PR review workflows, or a context-efficient run_silent.sh setup across Shopify sites.
development
Run an extremely strict maintainability review for abstraction quality, giant files, and spaghetti-condition growth. Use for a thermo-nuclear code quality review, thermonuclear review, deep code quality audit, or especially harsh maintainability review.