agentleFS
carlos2219carlos2219/web-kit/skills/design-loop/SKILL.md

design-loop

Skill1 starsChanged 53 days agoMITView on GitHub

Visually judge a page or section of a web-kit site against its DESIGN.md and gold-standard reference, then fix it. Captures screenshots at desktop and mobile widths in every language, scores them with a strict rubric, and fixes the biggest gaps. Repeats until the page passes. Use it after building or changing any visible section, when the user says something "looks generic", "looks AI-made", "no me convence", "pulir el diseño", or "compare with the reference", and in the pilot and launch phases of web-kit:new-site.

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. tstapler/dotfiles★ 8same name
    2. 17-sss/agent-skills★ 2same name
    3. seankoji-com/.agents★ 2same name
    4. saint0x/my-skills★ 1same name
    5. SkotAlexsander/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Start the dev server in the background (npm run dev) and note the URL.

    line 12
  2. Very specific:

    Deterministic checks: Run node <kit>/scripts/check.mjs design <files you touched>, where <kit> is <base>/../...

    line 19
  3. Distinctive:

    Pass: when every item scores ≥ 4, the deterministic checks are clean, and there are no console errors.

    line 21
  4. Very specific:

    Stop after 5 iterations even if the page hasn't passed.

    line 24

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Design loop

The first version is never the final one. This loop replaces "looks fine to me" with a comparison against a real reference. The reference is the site named in DESIGN.md → Sources, or a screenshot in docs/references/.

Setup

  1. Start the dev server in the background (npm run dev) and note the URL.
  2. Load the browser tools in one call: ToolSearch with select:mcp__claude-in-chrome__tabs_context_mcp,mcp__claude-in-chrome__tabs_create_mcp,mcp__claude-in-chrome__navigate,mcp__claude-in-chrome__computer,mcp__claude-in-chrome__resize_window,mcp__claude-in-chrome__javascript_tool,mcp__claude-in-chrome__read_console_messages. If the extension doesn't respond, ask the user to connect it. Don't judge design from code alone.
  3. Open a new tab with the page, and another with the reference.

Each iteration

  1. Capture. Screenshot the section at 1440×900 and at 390×844, in every language (click the language toggle). Also screenshot the reference at the same widths, once per loop. Check the console for errors.
  2. Deterministic checks. Run node <kit>/scripts/check.mjs design <files you touched>, where <kit> is <base>/../... Any finding counts as a failure.
  3. Score every rubric item in rubric.md from 1 to 5. Write one line of evidence for each score, based on what you see in the screenshots. Score the way a studio art director would when your work is next to the reference: a 5 means indistinguishable in craft from the reference, not "acceptable".
  4. Pass when every item scores ≥ 4, the deterministic checks are clean, and there are no console errors.
  5. Otherwise pick the 3 biggest gaps (lowest score, then most visible) and fix them in code. Fix root causes: a token, a component recipe, spacing on a shared utility. Don't add per-element patches. If the fix is a design decision that DESIGN.md doesn't cover, record the decision there first.

Stop after 5 iterations even if the page hasn't passed. Report the remaining gaps and what each one needs. Often the gap is an asset (web-kit:assets) or a decision the user must make.

Report

Output a short table (rubric item, score, evidence) plus the fixes you made. In the pilot, also show the final screenshots to the user.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.