design-critic

design-critic is a skill for Claude Code, Codex from JansenAnalytics/claudex. It costs 111 tokens per session (2,628 once invoked), scanned A, original, MIT.

An automated reviewer for web interfaces that captures pages at different screen sizes and checks their appearance, accessibility, and behavior.

In plain words
What is it for?
Reviewing a running web app on phones, tablets, and desktops; checking contrast, spacing, fonts, links, buttons, overlapping elements, and accessibility issues.
Why use it?
It finds visual, responsive, accessibility, and interaction problems that are easy to miss during manual testing.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jansenanalytics/claudex/design-critic
Any agent
npx skills add JansenAnalytics/claudex --skill design-critic
Clone the repo
git clone --depth 1 https://github.com/JansenAnalytics/claudex

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-critic

README.md
[![agentmods](https://agentmods.dev/badge/skills/jansenanalytics/claudex/design-critic.svg)](https://agentmods.dev/skills/jansenanalytics/claudex/design-critic)
Your own site
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/design-critic"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/design-critic.svg" alt="Measured on agentmods" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,628 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00111 $0.02628
Opus 5 $0.00056 $0.01314
Sonnet 5 $0.00022 $0.00526
Haiku 4.5 $0.00011 $0.00263

Measured 5d ago against content hash df4dad5f1be9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

design-critic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/analyze.cjs, scripts/capture.cjs, scripts/lighthouse.cjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/design-critic/SKILL.md · 321 lines

How it starts

The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Design Critic

Autonomous UI/UX reviewer. Point it at any running web app → get a prioritized list of every visual, responsive, accessibility, and functionality issue with actionable fixes.

Scripts: ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/design-critic/scripts/ Reviews: ~/.design-critic/reviews/ Binary: ~/bin/design-critic

Quick Reference

S=${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/design-critic/scripts

# Full review (the default workflow)
design-critic http://localhost:5173

# Quick check (mobile + desktop, no lighthouse)
design-critic http://localhost:5173 --quick

# Full audit (all 9 viewports, lighthouse, dark mode, discovery, vision prompts)
design-critic http://localhost:5173 --full

# Responsive focus (all viewport sizes, no lighthouse)
design-critic http://localhost:5173 --responsive

# After fixes — compare with previous review
design-critic http://localhost:5173 --compare ~/.design-critic/reviews/PREVIOUS_DIR

The Autonomous Review Workflow

This is the workflow to use before telling the user anything is "done":

Step 1: Run the review

design-critic http://localhost:5173 --full

Step 2: Read the report

cat ~/.design-critic/reviews/LATEST/report.md

Step 3: AI visual review of screenshots

# Use the image tool on captured screenshots with generated vision prompts
cat CAPTURE_DIR/vision-prompts.json | jq '.[0]'
# Then use image tool: analyze the screenshot with the vision prompt

Step 4: Fix all critical + high issues

Step 5: Re-run and compare

design-critic http://localhost:5173 --compare ~/.design-critic/reviews/PREVIOUS_DIR

Step 6: Only report "done" when score ≥ 80 and 0 critical issues


What It Detects

📱 Responsive / Layout

  • Horizontal overflow — elements extending beyond viewport (causes horizontal scrolling)
  • Content hidden on mobile — scroll height dramatically shorter than desktop
  • Buttons/links disappearing at smaller viewports
  • Broken grids — misaligned columns, uneven gutters

Read the full file on GitHub · 321 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 321 lines · 111 tokens per session scan A df4dad5f1be9

Subscribe to this mod's changes

design-critic is a skill published in the GitHub repository JansenAnalytics/claudex (5 stars, last pushed 2mo ago), licensed MIT. It adds 111 tokens to every session and 2,628 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

accessibility

Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

addyosmani/web-quality-skills · 51 tokens

best-practices

Apply modern web development best practices for security, compatibility, and code quality. Use when asked to "apply best practices", "security audit", "modernize code", "code quality review", or "check for vulnerabilities".

addyosmani/web-quality-skills · 49 tokens

performance

Optimize web performance for faster loading and better user experience. Use when asked to "speed up my site", "optimize performance", "reduce load time", "fix slow loading", "improve page speed", or "performance audit".

addyosmani/web-quality-skills · 49 tokens

seo

Optimize for search engine visibility and ranking. Use when asked to "improve SEO", "optimize for search", "fix meta tags", "add structured data", "sitemap optimization", or "search engine optimization".

addyosmani/web-quality-skills · 46 tokens

core-web-vitals

Optimize Core Web Vitals (LCP, INP, CLS) for better page experience using field and lab evidence. Use when asked to "improve Core Web Vitals", "fix LCP", "reduce CLS", "optimize INP", "page experience optimization", or "fix layout shifts".

addyosmani/web-quality-skills · 67 tokens

web-quality-audit

Run an evidence-led web quality audit covering performance, accessibility, SEO, best practices, and agentic browsing. Use when asked to "audit my site", "review web quality", "run lighthouse audit", "check page quality", or "optimize my website".

addyosmani/web-quality-skills · 58 tokens