agentleFS
tanbopptanbopp/ai-development-framework/.agents/skills/design-audit/SKILL.md

design-audit

Skill1 starsChanged 19 days agoMITView on GitHub

Audits frontend output against a hard floor (must fail) and soft preferences (overridable with written justification in DESIGN.md) using Hallmark and unslop as auditors only. Use before delivering any frontend output.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use canvas-generative, compose-graphics and 10 more.

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

    canvas-generative

    Algorithmic and generative art with Canvas 2D - particles, flow fields, noise, fractals, L-systems.

    Also in 3 projects that use this

  • JwuthriSkill

    compose-graphics

    Advanced Compose visuals - Material 3 Expressive motion physics, AGSL shaders (Android 13+), Canvas/DrawScope generative, graphicsLayer effects.

    Also in 3 projects that use this

  • soilmassSkill

    motion-principles

    Motion design philosophy and principles from major design systems. Use when understanding why animations should behave certain ways, learning motion fundamentals, or aligning with design system philosophy. References M3, Carbon, Fluent, and Apple HIG principles.

    Also in 3 projects that use this

  • +9 more from Jwuthri

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before delivering frontend output.

    line 11
  2. Very specific:

    If the user provided a reference image or URL in Phase 1 (or recorded one in DESIGN.md), compare the captured screenshot with the reference …

    line 18
  3. Very specific:

    Verify that rendered colors, typography, and spacing match the approved tokens in docs/project/DESIGN.md.

    line 19
  4. Very specific:

    If visual mismatches exceed 5% or token colors do not match DESIGN.md, REJECT the implementation and send a concrete list of visual …

    line 20
  5. Very specific:

    If plumb-cli or onsystem MCP is available, run it to perform a deterministic pixel-perfect check against the tokens defined in …

    line 22
  6. Distinctive:

    Use whichever exists. If neither exists, Hallmark is not installed -- report this and stop the audit.

    line 33

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

Trigger

Before delivering frontend output.

Process

  1. Hard-floor checks. Any violation fails the audit: WCAG AA contrast, focus state, prefers-reduced-motion, mobile overflow, truncated text.
  2. Soft-preference checks (Hallmark Reflex and Finish tiers, unslop rules). On violation, look in docs/project/DESIGN.md for a written brand justification. If present, pass. If absent, request a fix.
  3. Screenshot capture. Render the built page in a real browser and capture screenshots (using Playwright, Puppeteer, or sloplint.mjs --render).
  4. Visual Regression Testing & Token Match.
    • If the user provided a reference image or URL in Phase 1 (or recorded one in DESIGN.md), compare the captured screenshot with the reference using an MCP visual regression tool (vrt-mcp or zerovisual).
    • Verify that rendered colors, typography, and spacing match the approved tokens in docs/project/DESIGN.md.
    • If visual mismatches exceed 5% or token colors do not match DESIGN.md, REJECT the implementation and send a concrete list of visual discrepancies to the Frontend Agent.
  5. Deterministic Pixel & Token Audit.
    • If plumb-cli or onsystem MCP is available, run it to perform a deterministic pixel-perfect check against the tokens defined in docs/project/DESIGN.md. If unavailable, fallback to Hallmark/unslop.
  6. Two-Axis Review Output: Produce a per-item report (pass/fail, tier: hard/soft/visual-regression/deterministic, rationale, suggested fix) split into two distinct sections:
    • Axis 1: Agent Fix List: Technical findings that the AI MUST fix automatically (for example, WCAG contrast < 4.5, missing alt tags, TypeScript any, truncated mobile layouts, or broken tokens).
    • Axis 2: Human Decision List: Findings that require human intent (for example, "Is this UX flow intuitive?", "Should this override remain part of brand expression?", or product trade-offs).

Tools (audit only, never generate):

  • Deterministic audit: plumb-cli, onsystem, or @usespectra/mcp MCP tools when available.
  • Hallmark: node <sloplint-path> <path> --render or /hallmark audit <path>. Hallmark's sloplint script may be at either path depending on how Hallmark was installed:

    • .agents/skills/hallmark/scripts/sloplint.mjs (installed via npx skills add)
    • .agents/vendor/hallmark/skills/hallmark/scripts/sloplint.mjs (cloned manually)

    Use whichever exists. If neither exists, Hallmark is not installed -- report this and stop the audit.

  • unslop: npx -y unslop-mcp audit . --json --no-fail. If unavailable, perform the checks manually and say so in the report.
  • Visual regression: vrt-mcp or zerovisual MCP tools, paired with Playwright or Puppeteer screenshots.

Output Contract

A Two-Axis audit report (Axis 1: Agent Fix List and Axis 2: Human Decision List). Reject on any hard-floor violation, any deterministic token mismatch, any visual regression diff above 5%, or any token mismatch against DESIGN.md. Reject on soft preferences only when no justification exists. The report MUST explicitly state: "Agents will fix Axis 1. The human must review Axis 2."

Checklist

  • All five hard-floor checks run
  • Every soft failure checked against DESIGN.md
  • Deterministic token check run via plumb-cli / onsystem MCP (or fallback to Hallmark/unslop recorded)
  • Screenshot captured and rendered tokens verified against DESIGN.md
  • Visual regression check run when a reference exists (diff <= 5%)
  • Output split into Axis 1: Agent Fix List and Axis 2: Human Decision List with tier per item

Prohibitions

  • Imposing a single design taste on every project.
  • Going soft on the hard floor.
  • Generating new design.

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.