agentleFS
lexsantorlexsantor/lexia-design/skills/design-audit/SKILL.md

design-audit

Skill0 starsChanged 4 months agoMITView on GitHub

This skill should be used to audit an interface: "audit this UI", "review this design", "check accessibility", "find design problems", "why does this look AI-generated", "review UX of this page". Runs the deterministic detector plus fresh-context agent reviews, scores 15 dimensions with evidence, and writes DESIGN-AUDIT.md. Also invoked by the lexia-design orchestrator during the convergence cycle.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use gsap and ui-ux-pro-max.

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.
  • OpenAISkill

    gsap

    GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter, labels, nesting, playback), and performance (transforms, will-change, quickTo). Use when writing GSAP animations in HyperFrames compositions.

    Also in 3 projects that use this

  • StrayDragonSkill

    ui-ux-pro-max

    UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 3

    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
  1. Distinctive:

    If the surface will be demoed to investors or clients, run the pre-demo purge gate: zero fabricated claims, every simulation labeled, every …

    line 73
  2. Very specific:

    Write .lexia-design/DESIGN-AUDIT.md alongside it from the template: findings grouped by severity with file:line + verdict + evidence + …

    line 111
  3. Distinctive:

    Do not fix during the audit.

    line 133
  4. Distinctive:

    If the project defines a design-lint script, verify the BUILD actually runs it, and on deploy that the host's build command runs the …

    line 146

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

Two independent tracks, never merged until synthesis: a deterministic detector (no judgment) and agent judgment (fresh context). Detector findings must not anchor the design judgment; run agents without showing them the detector output.

Procedure

  1. Scope. Identify UI files (jsx/tsx/vue/svelte/html/css) and pages; read .lexia-design/ for the brief, system contract and prior waivers. No brief? Audit against general rules and say the direction dimension is unanchored.
  2. Deterministic pass: node ${CLAUDE_PLUGIN_ROOT}/scripts/lexia-design-audit.mjs --deep <dir> --format json. Rules with IDs (a11y/, motion/, slop/, content/, system/, correctness/, ux/*); exit 1 means serious+ findings exist. Then run the VERIFICATION pass: check every flag against its context and assign a verdict: TRUE_POSITIVE / MITIGATED (the concern is already handled: sr-only label present, skeleton carries role="status") / FALSE_POSITIVE. Report verdicts, never raw flags; regex tripwires without verification erode trust in the whole audit. Waived findings carry their decisions.jsonl reference. Also run the project's own build/typecheck/lint/tests if present: a red build caps PRODUCTION_READINESS at 3.
  3. Render pass. Screenshot key pages at 375/768/1440 (+ both themes). Capture protocol, because full-page captures lie: sections behind scroll reveals render blank below the fold, and programmatic scroll faster than ~500ms per section fires neither the reveal nor lazy loading. Scroll for real with 700-900ms pauses and take VIEWPORT captures. Narrow widths need device-metrics emulation (headless window width bottoms out around 469px, so a "mobile" capture may be desktop). Automation screenshots come back downscaled: grain, glow and motion intensity cannot be judged from them, and saying so is part of the report. If rendering is impossible, mark visual dimensions "not visually verified" and pass --not-rendered to the gate: never score screenshots that don't exist.
  4. Agent pass (parallel, disjoint lenses, screenshots + brief as input):
    • ux-auditor: heuristics, accessibility, states, forms, content integrity.
    • visual-critic: hierarchy, typography, color, spacing, coherence, distinctiveness, anti-slop judgment calls.
    • motion-engineer: only if motion exists or was requested. First audit of a build: fresh context (no inherited optimism). Re-audits of the same build: reuse the same reviewers with their prior findings, so the scale stays stable and "fixed" is verified against the original complaint. Findings where two lenses converge independently on the same file are near-certain: surface them first. Reviewers report their own verdicts; do not soften their wording in synthesis.
  5. Checklist sweeps (self, using references under ${CLAUDE_PLUGIN_ROOT}/references/): wcag-checklist.md gate items, forms-and-states.md seven states, anti-slop/registry.md two tests (interchangeability + reflex), responsive + content-length stress. Copy sweep per anti-slop/copy-rules.md: read every visible string aloud; flag reframes, bloated verbs, dead metaphors, chatter and repetition - then apply the counter-check: the corrected copy must not read as a list of avoided mistakes (all-staccato is the second tell). If the surface will be demoed to investors or clients, run the pre-demo purge gate: zero fabricated claims, every simulation labeled, every [PENDING] resolved or consciously accepted. On brand surfaces with a conversion goal add conversion/architecture.md: name each viewport's single idea, check the section order against the brief's stated awareness stage, one primary CTA per page, proof within a viewport of every strong claim, objections answered adjacent to where they occur, form-friction sweep. Ordering verdicts record the awareness assumption they depend on. On AI surfaces (extraction, copilot, generation) add production/ai-surfaces.md: editable-before-apply, visible confidence, inference states, rendered-value verification of headline metrics. On app surfaces add production/launch-and-structure.md: trust surface (legal routes, favicon, metadata, robots), timezone-safe "today" logic, revalidation targets vs rendering routes, waterfall counts, and the interaction motion of the highest-value component (teams polish landings and ship the core widget motion-dead).
  6. Synthesize. Merge tracks; deduplicate; classify severity: critical (blocks use / a11y gate / fabrication), serious (materially degrades), moderate, minor, review (needs human judgment). Distinguish error vs inconsistency vs debt vs preference vs deliberate exception (check decisions.jsonl waivers before flagging known exceptions).
  7. Score 15 dimensions per ${CLAUDE_PLUGIN_ROOT}/skills/lexia-design/references/scoring.md, evidence mandatory, n/a renormalized. Performance is measured against a PRODUCTION build served locally, never a dev server, and speed-index and total-blocking-time are treated as directional only (they swing with machine load); decide on first paint, layout shift and bundle size. Findings that are HTTP response headers (content policy, transport security, frame options) go in a separate "not fixable here" bucket with the deployment owner named, so the score reflects what design and code control. Run node ${CLAUDE_PLUGIN_ROOT}/scripts/lexia-design-score.mjs gate --scores <file> to record history, compute the LEXIA SCORE and write the report.
  8. Report. The gate writes .lexia-design/DESIGN-REPORT.md: the /100 table, blockers first, dimensions with weight and evidence, gates. Write .lexia-design/DESIGN-AUDIT.md alongside it from the template: findings grouped by severity with file:line + verdict + evidence + recommendation + status column, exceptions honored. In chat: open with the blocking finding, not the score table, and close with ONE recommended next step, not a menu. Label each finding measured (a computed or rendered value with its location) or inferred (judgment), so score movement between audits is attributable to work rather than to a reviewer disagreeing with a prior call.

Audit dimensions (what to look at, minimum)

UX flows, accessibility, semantics, hierarchy, layout, typography, color, states, responsive, content, performance, motion, AI-slop, visual debt, system coherence. Selection guidance: ${CLAUDE_PLUGIN_ROOT}/references/heuristics/application-map.md.

Discipline

  • Report what is, not what would be comfortable. A clean audit of a broken interface is the worst outcome this skill can produce.
  • False positives honestly: "review" severity means human judgment required; say so instead of inflating certainty.
  • Do not fix during the audit. Findings first, fixes as a separate step (the orchestrator or the user decides what to act on).
  • Root-cause escalation: when the same finding CATEGORY appears in two or more consecutive audits, stop reporting instances and name the cause: an under-adopted primitive or a missing invariant. Patching the screenshot is not fixing the defect, and to the client it reads as "it keeps breaking". Recommend the invariant (build gate, primitive adoption) as the fix, not another pass of instance edits.
  • Automate only what grep can decide; judge the rest. Exemptions to mechanical rules are NAMED lists with written reasons (financial tables that need a footer row, print and email templates, dense inline editors) recorded in decisions.jsonl and honored via lexia-disable directives. A silent skip destroys trust in the whole gate.
  • If the project defines a design-lint script, verify the BUILD actually runs it, and on deploy that the host's build command runs the wrapper [system/design-gate-not-wired]: a gate outside the build catches drift only when someone remembers.

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.