/penpot-ai-kit:penpot-anti-slopfrom penpot-ai-kit
Opt-in layer that keeps Penpot designs from looking generically AI-generated. Provides direction before building, a scored 0-100 slop check of screens or decks using tree probes and visual review, and concrete fixes.
Ships in penpot-ai-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The opt-in strict layer over shared/design-quality.md. It knows the patterns that make output
read as AI-generated (shared/anti-slop.md §1), steers a build away from them before it starts, and
scores a finished screen or deck from 0 (genuine) to 100 (AI default). Work as a senior art director
who can tell a decision from a default — and says which is which.
| Mode | Invoked by | Does |
|---|---|---|
| direction | Phase 0 of penpot-build-screen / penpot-build-deck when prefs.antiSlop === "on" | names the defaults for this brief, replaces each with a brief-driven reason, proposes a typeface, lists the tells to refuse |
| diagnose | the slop step of brief-to-screen / brief-to-deck, or a user asking "does this look AI-made?" | tree probes → describe-then-judge visual review → slop score and report |
| treat | the user, after a failing diagnosis | proposes the top fixes as concrete edits and applies them with review, one per call |
The one rule: measure before judging, and never trade one default for another. Whatever can be measured on the shape tree is probed and outranks the visual opinion; the visual pass describes before it judges. A "fix" that lands on the fashionable anti-AI look (cream + italic serif accent + sage, or one house style reused everywhere) is still a default — every replacement needs a reason from the brief.
Tool surface: shared/penpot-mcp-tool-reference.md. API traps: shared/plugin-api-gotchas.md (the
#n below).
antiSlop.direction picks.shared/anti-slop.md §5); no invented replacement evidence; fixes are
Apply-with-review.scripts/slopScore.js; pass = score ≤ 35 (target ≤ 15); the report
JSON validates against shared/report-schemas/slop-report.schema.json.Phase 0 — Opt-in and scope (read-only). high_level_overview; scripts/antiSlopPrefs.js
(ACTION="read"). Invoked from a build skill with the preference unset → ask the question in
shared/anti-slop.md §0 in the user's language, then store the answer (ACTION="set"). A user who
asks for a diagnosis directly has opted in for that diagnosis — do not ask.
penpotUtils.shapeStructure(root, 2) to confirm the scope: one screen board, or a deck page.
Direction (inside a build skill's Phase 0). references/02-direction-playbook.md: defaults named →
replacements with reasons → typeface (scripts/listFontCandidates.js, only when the file has no type
tokens) → counter-default check against the ledger → the checkpoint block. Hand the "will refuse" keys
back as Constraints. The build skill's own Phase 0 checkpoint shows the block.
Diagnose 1 — Probes. One call with scripts/scanSlopProbes.js (ROOT_ID, MODE);
references/01-penpot-mapping.md says what each key measures. Mark what the user explicitly asked for
as accepted (a brief-requested dark theme is accepted for dark-neon-default).
Diagnose 2 — Visual review. export_shape the board (decks: batches of at most 4 slides) and
follow references/03-exam-protocol.md: Pass A (describe, written out) → Pass B (judge the review
keys, citing Pass A) → template judgement → authenticity signals. Decks: references/04-deck-tells.md.
Diagnose 3 — Score and report. scripts/slopScore.js over storage.slop. Markdown report (score,
band, counted tells with evidence, unsure tells, inherited / accepted, signals, top 3 fixes) plus the
JSON; mirror both to the ledger. ✋ Present export + report; offer treat for the top fixes.
Treat (opt-in per fix). One fix per call, each a concrete edit naming the token or pattern it
moves to ("replace the hero gradient with color.bg.default; left-align headline and subheading;
remove pill-badge"). Run the export → look loop of shared/visual-self-review.md, then ✋ approve
each. After the last approved fix, re-run Diagnose 1–3 and report the before/after score and
points: the score saturates at 15 points, so on a very generic design the first fixes move the
points long before they move the score (live run: 29.7 → 24.7 points, 100 → 94).
prefs.antiSlop === "on" or the user asked for a diagnosis.
Read the stored preference first and ask at most once per file — it is the user's style decision.present findings with p ≥ 0.65 count. unsure, inherited and accepted are reported,
never counted.inherited: report it and propose a token change through penpot-foundations; do not swap it.fills / shadows arrays (#1); a removed gradient lands
on a token-bound surface or [], never on literal white (#11) — with no color tokens in the file,
on a literal recorded as a ledger exception plus a token proposal; verify a new binding in the next
call and never re-apply a bound token (#2); resolve fonts by exact name (#13b).Reading the tree: text fontFamily, fontStyle and align return "mixed" when ranges differ (the
serif-accent signal) and fontSize is a string; shape.blur / board.backgroundBlur are
{ value, hidden }; gradients live in fills[].fillColorGradient.stops[]; strokes are uniform per
shape, so a one-edge accent is always a thin child rectangle. Region detection relies on semantic
board names (hero, features, pricing, footer) — when most regions come back as content,
suggest penpot-rename-layers.
storage.slop = { // plain data only
listsVersion, scopeId,
findings: [{ key, weight, p, source: "probe" | "review", status?, region, shapeIds, evidence, fix? }],
template: { value: 0..4, confidence },
signals: [{ key, present, evidence }],
result: { score, band, pass, points, findings, topFixes } // written by slopScore.js
}
ledger.antiSlop = { pref: "on" | "off", direction: { defaults, picks, typefaceProposal, refused }, reports: […] }
Score formula, bands and the gate: shared/anti-slop.md §3. Workflows branch on slop.score and
slop.pass. Finding ids are slop-<key>-NN, stable across iterations. The preference itself lives
file-wide in plugin data penpot-ai → prefs.antiSlop, independent of any run. On resume, re-run the
probe (cheap and idempotent) rather than trusting cached findings.
Mode suggest (shared/modes-and-policies.md, policies/modes.json): direction and diagnose are
read-only.
01-penpot-mapping.md (probes), 02-direction-playbook.md (direction),
03-exam-protocol.md (visual review), 04-deck-tells.md (decks),
05-anti-rationalization.md (excuses and countermeasures).antiSlopPrefs.js (opt-in read / store), scanSlopProbes.js (deterministic probes),
slopScore.js (pure scoring, unit-tested by scripts/dev/test-anti-slop.mjs),
listFontCandidates.js (typeface shortlist).anti-slop.md (taxonomy, signals, score, direction, precedence),
anti-slop/lists.json (fonts, buzzwords EN/ES, placeholders, patterns — versioned).Doctrine paths. shared/… and policies/… resolve inside this bundle in native installs (vendored by the installer); in a Claude Code plugin install they live at the plugin root — ${CLAUDE_PLUGIN_ROOT}/shared/…, two directories up from this file.
references/01-penpot-mapping.md (opens in a new tab)references/02-direction-playbook.md (opens in a new tab)references/03-exam-protocol.md (opens in a new tab)references/04-deck-tells.md (opens in a new tab)references/05-anti-rationalization.md (opens in a new tab)scripts/antiSlopPrefs.js (opens in a new tab)scripts/listFontCandidates.js (opens in a new tab)scripts/scanSlopProbes.js (opens in a new tab)scripts/slopScore.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
penpot, design-quality, ai-generated, anti-slop, design-review
15 skills in this plugin
/penpot-audit-accessibilityAudit a Penpot design against WCAG 2.1/2.2 AA (optionally AAA) and produce a structured severity report: color contrast, touch/target sizes, text alternatives, heading hierarchy, and keyboard/focus order. Proposes fixes — does not auto-apply. Also serves as the Evaluator in the brief-to-screen and brief-to-deck loops (scope:deck = slide contrast rules). Triggers: 'check accessibility', 'accessibility audit', 'WCAG check', 'contrast audit', 'a11y review', 'check color contrast', 'is this accessible'./penpot-audit-tokensAudit a Penpot design for design-system / token GOVERNANCE issues (distinct from accessibility): hardcoded colors where a token exists, off-grid spacing, orphan/unresolved/unused tokens, duplicated values, and detached parts that should be component instances. Produces a severity report and suggests semantic-token swaps. Triggers: 'audit tokens', 'find hardcoded colors', 'token governance', 'check design system consistency', 'find off-grid spacing', 'detect raw values', 'are we using tokens correctly'./penpot-build-deckDesign a presentation / slide deck in Penpot from a brief, as a senior presentation designer: 1920x1080 slide boards built one slide per call from an approved outline, a committed deck style, varied slide archetypes (cover, agenda, section, content, big-number, comparison, grid, bento, quote, timeline, image-bleed, closing), tokenized, wired into a playable View-mode flow and exportable to PDF. NOT for app screens (use penpot-build-screen). Triggers: 'create a presentation', 'build a slide deck', 'design slides in Penpot', 'pitch deck', 'keynote', 'make slides for this talk', 'turn this outline into slides'.npx claudepluginhub penpot/penpot-ai-kit --plugin penpot-ai-kitOther plugins' skills for the same job