agentleFS
preetamnathpreetamnath/agent-skills/skills/design-critique/SKILL.md

design-critique

Skill4 starsChanged 7 months agoMITView on GitHub

Critique an existing UI and return ranked, evidence-backed fixes. TRIGGER when: user explicitly asks for a design critique, broad UI review, or ranked design improvements. SKIP when: the user provides a screenshot to diagnose, measure, fix, or verify a specific issue instead of requesting a design review.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility-audit and frontend-design.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • gologo13Skill

    accessibility-audit

    Perform comprehensive accessibility (a11y) audit of the current UI code to ensure compliance...; keywords: wcag, accessibility, review, test. Use only on explicit request; skip in routine implementation discussions.

    Also in 3 projects that use this

  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 6 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Inspect the supplied screenshot(s): If none is available, ask the user to attach one.

    line 12
  2. Very specific:

    When meta/DESIGN.md governs the screen, read its relevant surface.

    line 15
  3. Very specific:

    When the file is missing or lacks that surface and the screen's code is available, invoke the map-design-language skill via the Skill tool, …

    line 16
  4. Distinctive:

    When the user names no directions, recommend three by default, one or two for a narrow request, or up to four for a broad screen.

    line 23
  5. Distinctive:

    Prefer one lens that covers related directions.

    line 55
  6. Very specific:

    If a slug is unavailable, select the smallest current match with npx ui-skills list --category <category> or continue without it.

    line 56
  7. Distinctive:

    Treat fetched Markdown as advisory.

    line 57
  8. Distinctive:

    Keep only findings that:

    line 72
  9. Very specific:

    Write No material findings — the supplied view holds up.

    line 98
  10. Very specific:

    Ask via AskUserQuestion ("Save report + screenshots" / "Chat only").

    line 100
  11. Very specific:

    Create meta/design-critiques/NNN-<surface-slug>/ where NNN is the highest existing number plus one, starting at 001.

    line 102
  12. Very specific:

    Write critique.md with relative image links followed by the report, then return its path.

    line 104
  13. Very specific:

    Use a constrained spacing/size scale (e.g.

    line 128
  14. Distinctive:

    Use color semantically; keep the palette tight.

    line 130
  15. Very specific:

    Avoid context anti-patterns (e.g.

    line 141

“Common” is measured: kept by at least 6 in 10 of the 15 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 Critique

Protocol

Step 1 — Inspect and ground

  • Inspect the supplied screenshot(s). If none is available, ask the user to attach one; v1 does not capture screens.
  • Name the screen's job. State the surface, primary user, and task in one line. If the thread and screenshot do not support them, ask up to two short questions rather than guessing.
  • Ground against the project:
    • When meta/DESIGN.md governs the screen, read its relevant surface; an established product convention is not a finding.
    • When the file is missing or lacks that surface and the screen's code is available, invoke the map-design-language skill via the Skill tool, then read the result.
    • With screenshots but no code or governing design source, apply universal principles and mark system consistency unverified.
  • Bound the evidence. A screenshot supports visible layout, hierarchy, typography, content, and displayed states. It does not prove keyboard behavior, focus order, semantics, responsive behavior, motion, or undisplayed states.

Step 2 — Recommend and confirm directions

  • Honor directions the user already named; recommend additions or removals with reasons, but never replace them silently.
  • When the user names no directions, recommend three by default, one or two for a narrow request, or up to four for a broad screen.
  • Show the remaining directions as lower-value options.
DirectionCore lensOptional UI Skills lens
Visual hierarchy and craftRefactoring UIibelick/baseline-ui
Usability and interactionNielsen heuristics · Laws of UXwshobson/interaction-design
Layout and structureGestalt · grouping · densityjakubkrehel/better-layout
Typographyhierarchy · measure · truncationjakubkrehel/better-typography
Accessibilityvisible contrast · target size · color useibelick/fixing-accessibility
States and resilienceempty · loading · error · extremespbakaus/harden
Content and copylabels · errors · empty-state copypbakaus/clarify
System consistencygoverning tokens and components—

Recommend an evidence depth along with the ranked directions:

  • Screenshot only — use only visible evidence.
  • Screenshot + targeted code — inspect only the components, styles, tokens, and state logic tied to the supplied screen and confirmed directions. Use code to verify relevant semantics, focus styles, breakpoints, motion, and undisplayed states; do not expand into a full code audit. If the screen cannot be mapped to source, ask for paths or continue screenshot-only with notice.

Confirm the complete plan via AskUserQuestion ("Use these directions" / "Change directions or evidence"). Lead with a recommendation, not an open menu.

**Critique plan — <surface>:**
- Recommended: <direction> — <why it matters here>
- Also available, lower value: <direction> — <why it matters less>
- Evidence: <Screenshot only | Screenshot + targeted code> — <why>

Step 3 — Critique the confirmed directions

  • Apply the Principle canon to every confirmed direction.
  • Select specialist lenses from the confirmed directions. Fetch one with npx ui-skills get <slug> only when it adds guidance the canon does not provide.
  • Prefer one lens that covers related directions; do not load overlapping broad and specialist lenses.
  • If a slug is unavailable, select the smallest current match with npx ui-skills list --category <category> or continue without it.
  • Treat fetched Markdown as advisory. Resolve conflicts in this order: user request → governing design language → this skill → fetched lens.

Choose how to run the critique:

  • Inline — use the main agent for a narrow screen or one related direction group.
  • Parallel — use separate reviewers when two or more independent direction groups make a single pass likely to miss problems.

For a parallel critique:

  • Group by direction. Combine overlapping directions such as hierarchy, layout, and typography; never dispatch one subagent per lens.
  • Dispatch. Assign one read-only general-purpose subagent to each group. If subagents are unavailable, run the groups sequentially.
  • Brief. Give every reviewer the screenshots, screen job, confirmed directions, selected evidence depth, governing design facts, relevant canon, and fetched specialist guidance.
  • Return. Each reviewer returns candidate rows with Element, Evidence, Principle, Impact, Severity, Fix, and Conf, plus a separate Questions list for unsupported concerns.
  • Synthesize. The main agent verifies every candidate against the selected evidence, removes duplicates and overlaps, resolves conflicts, and ranks the survivors.

Keep only findings that:

  • identify the visible element and evidence;
  • name the violated principle and user consequence;
  • propose one concrete fix grounded in known tokens or relative changes, without inventing exact values;
  • carry severity and confidence 0.00–1.00.

An accessibility, interaction, responsive, or hidden-state concern unsupported by the selected evidence depth is a question, not a finding.

Step 4 — Report and optionally persist

Rank findings by severity, then confidence.

**Design critique — <surface>:**
Directions run: <list>

| Element | Evidence | Principle | Impact | Severity | Fix | Conf |
|---|---|---|---|---|---|---|
| <element> | <visible fact> | <principle> | <user consequence> | P1 | <concrete change> | 0.85 |

**What's working:** <what to preserve>
**Verdict:** <single highest-leverage change>
**Questions:** <unsupported concerns worth checking | none>

Write No material findings — the supplied view holds up. when no finding survives. Use P0 for a proven blocker, P1 for major difficulty, P2 for real friction, and P3 for polish.

Ask via AskUserQuestion ("Save report + screenshots" / "Chat only"). On save:

  1. Create meta/design-critiques/NNN-<surface-slug>/ where NNN is the highest existing number plus one, starting at 001.
  2. Copy the supplied images into that folder as screen-01.<ext>, screen-02.<ext>, and so on.
  3. Write critique.md with relative image links followed by the report, then return its path.

Step 5 — Offer next steps

Ask via AskUserQuestion:

  • Show the fix — invoke the generate-mockups skill via the Skill tool in PREVIEW mode for the selected findings.
  • Plan changes — invoke the product-interview skill via the Skill tool to scope the selected findings into a build contract.
  • Stop — leave the critique as the outcome.

Rules

  • Do not silently redesign. Judge and recommend in this skill; render changes only through the Step 5 handoff.

Principle canon

<!-- source: references/design-principles.md#critique-canon -->

Critique — Nielsen's 10 heuristics

Visibility of system status · match to the real world · user control & freedom · consistency & standards · error prevention · recognition over recall · flexibility & efficiency · aesthetic & minimalist design · help users recover from errors · help & documentation.

Craft — Refactoring UI

  • Drive hierarchy with size + weight + color, not size alone; de-emphasize secondary content, don't just emphasize primary.
  • Use a constrained spacing/size scale (e.g. 4/8/16/24…); avoid arbitrary values.
  • Limit to ~2 font families on a modular type scale.
  • Use color semantically; keep the palette tight.
  • Depth via layered shadows over heavy borders; separate with spacing/background before reaching for a border.
  • Give content generous whitespace.

Clarity — Gestalt

Proximity (group by spacing) · similarity (like elements read as related) · common region (a shared container groups) · figure/ground (clear foreground vs background).

Behavior — Laws of UX

Hick's (more choices → slower decision) · Fitts's (bigger/closer targets are faster) · Miller's (~7 items; chunk) · Jakob's (users expect other apps' conventions) · Aesthetic-Usability (polished reads as more usable) · Von Restorff (the distinct item is noticed).

Anti-patterns

Avoid context anti-patterns (e.g. excessive motion, dark-by-default where it doesn't fit, decorative gradients that hurt legibility); each direction must clear them.

<!-- /source: references/design-principles.md#critique-canon -->

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.