ui-critique
Skill1 starsChanged 7 months agoMITView on GitHub
Dual-agent UX design review — Assessment A runs design-director heuristics while Assessment B runs visual pattern analysis; results synthesized into a prioritized critique snapshot
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Markssuave/Markssuave-Agent-skillstheir own version, first seen Nov 8, 2026
- Marco-Satis/claude-setuptheir own version, first seen Oct 20, 2026
- ayushg8/ui-intelligencetheir own version, first seen Oct 13, 2026
- Jinbae10/skillstheir own version, first seen Jul 7, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Markssuave/Markssuave-Agent-skills★ 1same name
- ayushg8/ui-intelligence★ 0same name
- Jinbae10/skills★ 0same name
- Marco-Satis/claude-setup★ 0same 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 repository206 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- project-healthSkill
- skill-validatorSkill
- accessibilitySkill
- agent-debugSkill
- agent-evaluateSkill
- ai-governanceSkill
- ai-system-reviewSkill
- api-docs-generateSkill
- api-examplesSkill
- api-mockSkill
- api-test-generateSkill
- api-validateSkill
- architecture-diagramSkill
- ask-mattSkill
- assumption-mapSkill
- boilerplateSkill
- brainstormSkill
- branch-finishSkill
- briefingSkill
- browser-testing-with-devtoolsSkill
- bundle-analyzeSkill
- cache-strategySkill
- canarySkill
- carefulSkill
- cavemanSkill
- changelog-autoSkill
- chaos-testSkill
- ci-setupSkill
- ci-sweepSkill
- cleanprojectSkill
- click-path-auditSkill
- codebase-designSkill
- code-review-checklistSkill
- code-tourSkill
- commitSkill
- completion-verifySkill
- complexity-reduceSkill
- component-librarySkill
- config-cleanupSkill
- config-generateSkill
- conflict-resolveSkill
- container-optimizeSkill
- context-budgetSkill
- context-engineeringSkill
- context-restoreSkill
- context-saveSkill
- continuous-learningSkill
- contributingSkill
- cost-trackSkill
- councilSkill
- create-todosSkill
- cross-modal-reviewSkill
- database-connectSkill
- db-diagramSkill
- ddd-modelSkill
- debug-root-causeSkill
- debug-sessionSkill
- debug-systematicSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
If still empty and no argument provided, report "No UI files in scope" and stop.
- Distinctive: line 89
If both assessments ran independently: synthesize normally.
- Distinctive: line 90
If only one ran: prepend [DEGRADED — single-perspective review] to the output.
- Distinctive: line 131
Early exit: No UI files in scope → stop immediately (50 tokens).
- Very specific: line 139
All grep matches are false positives (e.g., border-left: 0): report "Pattern checks clean"
- Distinctive: line 140
No shape brief present: Assessment A runs with general design heuristics
- Distinctive: line 145
Read-only except for writing the critique cache snapshot.
“Common” is measured: kept by at least 6 in 10 of the 4 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.
Files
UI Critique
I'll conduct a two-perspective design review and synthesize findings into a prioritized, persisted snapshot that feeds /ui-polish.
Purpose
Catch design quality issues before they reach users. The dual-agent approach surfaces problems that a single-perspective review misses — heuristic reviewers overlook CSS anti-patterns; pattern checkers miss information hierarchy failures.
Usage
/ui-critique— review changed UI files/ui-critique [file or directory]— review a specific target/ui-critique --full— review all UI files in the project
Behavior
Step 1 — Identify target files
# Default: changed UI files only
git diff --name-only HEAD -- '*.tsx' '*.jsx' '*.html' '*.css' '*.vue' '*.svelte' '*.css' '*.scss'
# If no changed UI files, check staged:
git diff --cached --name-only -- '*.tsx' '*.jsx' '*.html' '*.css' '*.vue' '*.svelte'If still empty and no argument provided, report "No UI files in scope" and stop.
Step 2 — Load context
# Read shape brief if present (guides heuristic review)
ls .claude/cache/ui-shape/ 2>/dev/null | head -5
# Read previous critique snapshot if present (avoids re-reporting fixed issues)
ls .claude/cache/ui-critique/ 2>/dev/null | head -5Step 3 — Run dual assessment (parallel)
Spawn two independent assessment agents. Neither sees the other's output before synthesis.
Assessment A — Design Director Heuristics: Review for:
- Information hierarchy: does visual weight match content importance?
- Typography: consistent scale, appropriate line-height, readable measure (65–75ch target)
- Spacing rhythm: consistent spacing units, not cramped (< 8px padding on interactive elements)
- Color: sufficient contrast (WCAG AA minimum), purposeful use, not decorative noise
- Empty and error states: are they designed or absent?
- Touch targets: interactive elements ≥ 44×44px
Assessment B — Visual Pattern Analysis: Grep target files for known AI/template anti-patterns:
# Side-tab accent (border-left/right as decorative stripe)
grep -rn "border-left\|border-right" --include="*.css" --include="*.tsx" | grep -v "border-left: 0\|border-right: 0"
# Gradient text
grep -rn "background-clip.*text\|webkit-background-clip.*text" --include="*.css" --include="*.tsx"
# Glassmorphism overuse
grep -rn "backdrop-filter\|backdrop-blur" --include="*.css" --include="*.tsx"
# Bounce/elastic easing
grep -rn "bounce\|elastic\|spring\|cubic-bezier.*1\.[2-9]" --include="*.css" --include="*.tsx"
# Over-rounded corners (≥ 24px on cards)
grep -rn "border-radius.*[2-9][4-9]px\|border-radius.*[3-9][0-9]px" --include="*.css"
# Eyebrow-on-every-section (small all-caps tracking)
grep -rn "letter-spacing.*[2-9]px\|text-transform.*uppercase" --include="*.css" --include="*.tsx"
# Numbered section markers (01/02/03)
grep -rn '"0[1-9]"\|"[0-9][0-9]"\.' --include="*.tsx" --include="*.jsx" | head -10Report each match with file:line and a one-line description of why it's a problem.
Step 4 — Synthesize
If both assessments ran independently: synthesize normally. If only one ran: prepend [DEGRADED — single-perspective review] to the output.
Produce a scored critique:
- P0 — Blockers: accessibility failures, illegible text, broken layouts
- P1 — Major: hierarchy failures, prominent anti-patterns, missing states
- P2 — Minor: polish opportunities, subtle pattern issues
Step 5 — Persist snapshot
mkdir -p .claude/cache/ui-critique
# Write snapshot as SCOPE-DATE.mdSnapshot format:
Score: P0: N, P1: N, P2: N
Target: <files reviewed>
Date: <ISO date>
[P0] <issue> — <file:line>
[P1] <issue> — <file:line>
...Report: "Critique complete. Run /ui-polish to work through the backlog."
Examples
/ui-critique src/components/Dashboard.tsx
→ dual assessment → synthesis → snapshot saved
/ui-critique
→ reviews changed UI files → P0/P1/P2 prioritized findingsToken Optimization
Expected range: 800–2,500 tokens (dual assessment + synthesis)
Early exit: No UI files in scope → stop immediately (50 tokens).
Patterns used: Grep-before-Read (Assessment B uses grep only), git diff scope default, progressive disclosure (P0 first, P1/P2 summarized)
Cache: Reads shape brief; writes critique snapshot for /ui-polish to consume.
Edge Cases
- All grep matches are false positives (e.g.,
border-left: 0): report "Pattern checks clean" - No shape brief present: Assessment A runs with general design heuristics
- Large files (> 500 lines): grep only, note that full read was skipped
Safety
Read-only except for writing the critique cache snapshot. No source file edits.
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
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.

