Communitygithub.com

ai-design-slop-audit

Audit a web project's HTML, CSS, templates and components for 35 "AI design slop" indicators (SLOP-01..SLOP-35: trend serif fonts, pills above headlines, eyebrows, gradient/cream/glow backgrounds, sparkle icons, scroll-fade, filler copy, unsourced stats, and more) and propose fixes. Use when asked to review, critique, de-slop or CI-check a site or UI codebase, or before shipping generated front-end code.

ai-design-slop-audit 是什么?

ai-design-slop-audit is a Claude Code agent skill that audit a web project's HTML, CSS, templates and components for 35 "AI design slop" indicators (SLOP-01..SLOP-35: trend serif fonts, pills above headlines, eyebrows, gradient/cream/glow backgrounds, sparkle icons, scroll-fade, filler copy, unsourced stats, and more) and propose fixes. Use when asked to review, critique, de-slop or CI-check a site or UI codebase, or before shipping generated front-end code.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/R3app3r/ai-design-slop-audit/tree/HEAD

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档


name: ai-design-slop-audit description: Audit a web project's HTML, CSS, templates and components for 35 "AI design slop" indicators (SLOP-01..SLOP-35: trend serif fonts, pills above headlines, eyebrows, gradient/cream/glow backgrounds, sparkle icons, scroll-fade, filler copy, unsourced stats, and more) and propose fixes. Use when asked to review, critique, de-slop or CI-check a site or UI codebase, or before shipping generated front-end code. license: MIT metadata: author: Marton Rozsas version: "1.1"

AI design slop audit

Static audit of front-end source for 35 recurring tells of generic AI-generated design. Rule text lives in references/slop-indicators.md (Avoid / Detect / Do instead per ID).

When to run

  • The user asks to audit, review, critique or "de-slop" a site, landing page or UI codebase.
  • After you generate or heavily edit front-end code, before reporting it done.
  • In CI, to stop regressions (--fail-on).

Do not run it on build output (dist/, .next/); audit the source. It never renders pages, so runtime-only content is invisible to it.

Run

python scripts/slop_audit.py <path> [--format md|json] [--min-severity low|medium|high] \
    [--min-confidence low|medium|high] [--ignore SLOP-12 --ignore "legacy/**"] [--fail-on N] [-o report.md]
  • Python 3.9+, standard library only. <path> is a project directory or one file.
  • Skips node_modules, .git, dist, build, .next, vendor, hidden dirs and minified files.
  • --fail-on N exits 1 when at least N indicators are tripped (default 0 = never fail). Exit 2 = bad path.
  • --list-rules prints the rule table. Use --format json when you need every finding.

Read the report

  1. The summary table lists all 35 indicators: status, finding count, files, top confidence. The score is 0 (clean) to 100.
  2. Each tripped indicator lists file:line, a confidence and the matched snippet.
  3. Confidence: high = specific signature (font name, library, exact pattern); medium = strong pattern with legitimate uses; low = weak signal for human review.
  4. Indicators tagged heuristic (SLOP-01, 07, 08, 09, 10, 11, 12, 18, 31) cannot be proven by code; treat them as prompts, never as failures on their own.

Triage false positives

Open the file at each finding before acting. Typical false positives:

  • Counting rules (italics, dividers, mono, caps, radii, cards, dots) fire on volume. A few uses can be intentional; many cannot.
  • font-mono, uppercase, · inside real code samples, data tables or legal text.
  • IntersectionObserver for lazy-loading, animate-pulse for skeleton loaders, scrims built from linear-gradient over photos.
  • Stats that are sourced in a place the script cannot see (footnote on another page).
  • "real" in "real estate", "quiet" in a product that is literally about noise.

Silence a confirmed false positive with a comment slop-ignore SLOP-NN on the same or previous line, slop-ignore-file near the top of a file, or --ignore SLOP-NN / --ignore "path/**". Do not silence an indicator just to pass.

Propose fixes

For every confirmed finding, quote the indicator's Do instead line (in the report, full text in references/slop-indicators.md) and make the concrete change:

  • Remove, do not restyle: drop the pill, the eyebrow, the sparkle icon, the glow, the scroll-fade script, the pulse dot.
  • Replace tokens, not one-offs: change the theme variable or Tailwind config once (tracking, radii, cream colour, font) instead of patching each use.
  • Copy: delete "quiet", "real", filler phrases and two-word fragments; keep a stat only with a source and date, otherwise remove it.
  • Re-run the script and confirm the count dropped; list what remains and why it was kept.

Report back: indicators tripped before/after, files changed, and anything left deliberately (with the reason).

Extend

Rules are the RULES table in scripts/slop_audit.py: append Rule(id, name, group, severity, avoid, instead, pats=[P(scope, regex, confidence, message)], check=fn). Update references/slop-indicators.md and the tests with it.

相关技能