/penpot-ai-kit:penpot-audit-tokensfrom penpot-ai-kit
Audits a Penpot design for design-system token governance issues: hardcoded colors where tokens exist, off-grid spacing, orphan/unused tokens, duplicated values, and detached component instances. Produces a severity report with suggested semantic-token swaps.
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.
Audit how well a design uses its token system, as a design-system governance engineer: hardcoded
colors where a token exists, off-grid spacing, orphan / unresolved / unused tokens, duplicated values,
and detached parts that should be component instances. This is a separate concern from accessibility
(penpot-audit-accessibility).
The one rule: suggest, and auto-swap only exact equalities. The single change this skill may apply is replacing a raw value that is exactly equal to an existing token's resolved value with that token — and only after the user opts in at the checkpoint. Near matches, off-grid rounding and new tokens are suggestions for review.
Tool surface: shared/penpot-mcp-tool-reference.md. API traps: shared/plugin-api-gotchas.md.
penpot.library.tokensSource).Phase 0 — Inspection. high_level_overview, then scripts/collectStyleUsage.js plus
penpotUtils.tokenOverview() (references/01-inspection.md). A property is hardcoded when it has a
raw value and no entry in shape.tokens ({ property: tokenName }).
Phase 1 — Hardcoded values. scripts/detectHardcodedValues.js
(references/02-hardcoded-value-detection.md): raw fills, strokes, radii and spacing against token
resolved values, each classified exact / near / none.
Phase 2 — Grid and orphans. scripts/checkGridAndOrphans.js
(references/03-orphan-and-grid-checks.md): off-grid spacing, unresolved references, unused tokens,
duplicates.
Phase 3 — Report. scripts/generateTokenReport.js (references/04-report-generation.md).
✋ Present the findings; offer to apply ONLY the exact-equality swaps, and route the rest (new tokens,
rounding) to penpot-foundations.
Applying the opted-in swaps (#2). In chunks of about 25–40 shapes per call. Guard every apply —
if (shape.tokens[prop] !== tok.name) shape.applyToken(tok, [prop]) — because re-applying a bound
token removes the binding. Verify shape.tokens in the next call and retry only what is still
unbound. Never write a literal to a bound property: that drops the binding too.
penpot-foundations decision.exactMatch,
confidence.Findings map to the governanceRules in shared/tokens-schema.json: noHardcodedColor,
noOffGridSpacing, noOrphanTokens, preferSemantic. Per finding:
{ severity, rule, element, property, current, suggestedToken, exactMatch, confidence }. Emit the
report ALSO as JSON per shared/report-schemas/token-governance-report.schema.json and mirror it to
the run ledger (RUN_ID: phase, findings, autoSwapped, sampled).
Mode: suggest (shared/modes-and-policies.md). The exact-equality swap is the only safe-set item;
geometry, new tokens and detach() are never automatic.
01-inspection.md, 02-hardcoded-value-detection.md,
03-orphan-and-grid-checks.md, 04-report-generation.md.execute_code, all read-only) — collectStyleUsage.js,
detectHardcodedValues.js, checkGridAndOrphans.js, generateTokenReport.js.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-inspection.md (opens in a new tab)references/02-hardcoded-value-detection.md (opens in a new tab)references/03-orphan-and-grid-checks.md (opens in a new tab)references/04-report-generation.md (opens in a new tab)scripts/checkGridAndOrphans.js (opens in a new tab)scripts/collectStyleUsage.js (opens in a new tab)scripts/detectHardcodedValues.js (opens in a new tab)scripts/generateTokenReport.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub penpot/penpot-ai-kit --plugin penpot-ai-kit15 skills in this plugin
/penpot-anti-slopOpt-in layer that keeps Penpot designs from looking generically AI-generated: a direction step before building, a scored 0–100 slop check of a screen or deck (tree probes + visual review), and reviewed fixes. Triggers: 'avoid the AI look', 'does this look AI-generated', 'anti-slop check', 'make it feel less generic', 'evitar estética IA', '¿parece hecho por IA?'./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-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'./penpot-build-from-codeTranslate an existing application page, view, or component code into a Penpot screen that is bound to the existing design system — mapping code styles onto semantic tokens and reusing library components instead of raw shapes. Use when the user has real code/markup and wants it reconstructed in Penpot, section by section, on-system. Triggers: 'build this in Penpot from code', 'turn this React/HTML/CSS into a Penpot screen', 'recreate this view in Penpot', 'port this page to Penpot', 'translate this component to Penpot bound to our tokens', 'code to Penpot'./penpot-build-screenDesign production-grade screens in Penpot from a brief, as a senior visual designer — reusing the existing design system (tokens + components) and assembling section by section, never one-shot. Use to create a screen/page/landing/dashboard from a description. NOT for translating existing code (use penpot-build-from-code). Triggers: 'design a dashboard', 'create a landing page', 'design this app screen', 'build a UI from this brief', 'design a settings page', 'mock up a screen in Penpot'./penpot-component-factoryBuild and maintain Penpot components with COMPLETE variant matrices — sizes, hierarchies, and all interactive states (default/hover/pressed/focus/disabled) — fully tokenized and correctly named. Use to create a new component with variants, fill in missing states, or normalize an existing component. Triggers: 'create a Button component with variants', 'build component variants', 'add hover/pressed/disabled states', 'make a variant matrix', 'turn this into a component with sizes', 'normalize this component'.Other plugins' skills for the same job