/penpot-ai-kit:penpot-build-screenfrom penpot-ai-kit
Designs production-grade screens in Penpot from a brief, reusing existing design system tokens and components. Builds section by section with visual self-review.
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.
Turn a brief into a crafted screen that lives inside the file's design system. Work as a senior product/visual designer who makes deliberate aesthetic decisions and can justify each one.
The one rule: reuse the system and build incrementally. Existing components and semantic tokens
come before raw shapes; one section per execute_code call, looked at before the next. If the file
has no system, hand off to penpot-foundations — do not bootstrap one here beyond the trivial.
Tool surface: shared/penpot-mcp-tool-reference.md. API traps: shared/plugin-api-gotchas.md (the
#n below). Verify any Plugin API signature you are not sure of with penpot_api_info.
Restate the request before building (references/01-brief-analysis.md):
shared/design-quality.md §7; with strict anti-slop on, none of the keys the
direction step refused (shared/anti-slop.md §1).shared/design-quality.md §8) or the weak axes
presented explicitly; with strict anti-slop on, slop score ≤ 35.Before every ✋ checkpoint that shows visual work, run the export → look → fix loop of
shared/visual-self-review.md (max 2 self-fixes) and present that same export with any remaining
defects named.
Phase 0 — Discovery (read-only).
high_level_overview, then scripts/setupOrReuseSystem.js to inventory tokens and components.
Read penpot.version and the file profile / capability verdicts from the ledger
(shared/state-management.md).references/02-style-profiles.md) and a named screen
skeleton (shared/design-quality.md §5). If the ledger shows earlier screens, differ from them
on at least one axis and say which.penpot-anti-slop → scripts/antiSlopPrefs.js).
Unset and not answered by the brief → ask the question in shared/anti-slop.md §0 once per file, in
the user's language, and store the answer. When it is on, run the direction step
(penpot-anti-slop references/02-direction-playbook.md) before choosing profile and skeleton and
add its refused keys to the Constraints.✋ Confirm brief + style + skeleton + section list (+ the direction block when strict mode is on).
Phase 1 — Frame. scripts/createScreenFrame.js: idempotent, viewport-sized flex column, bg / gap /
padding bound to tokens, ledger initialised. If the screen belongs on another page, await penpot.openPage(page) first and assert penpot.currentPage.id (#15). ✋ Approve frame and viewport.
Phase 2…N — Sections. scripts/buildSection.js, one section per call: a tokenized flex Board that
instances existing components (references/03-layout-composition.md, 04-component-recipes.md).
Verify token bindings in the next call (#2). ✋ After each section, with its export.
Phase N+1 — Assemble and critique.
scripts/assembleScreen.js orders the sections.scripts/auditScreenQuality.js checks layout coverage, token binding, on-grid spacing and naming.
A non-empty boardsWithoutLayout fails the gate — fix before reporting done.references/05-critique-framework.md): score the final export 1–5 on the seven
axes; any axis below 3 → a targeted revision (max 2 passes). Emit the design-quality report
(Markdown + JSON per shared/report-schemas/design-quality-report.schema.json, mirrored to the ledger).penpot-anti-slop diagnose on the screen board and include its slop score (it
feeds the distinctiveness axis). Outside a workflow, a score above 35 means presenting its top
fixes, not declaring done.✋ Full-screen export + scored critique: approve or iterate. Then the structured report (AGENTS.md §12).
addFlexLayout()) or grid
(addGridLayout()) layout before appending children — screen root, sections, and every nested
grouping (card, row, list, form field, button group). No absolute x/y for UI, no plain Groups
for layout. State each board's sizing intent (fill / auto / fix).createBoard() is born with an opaque
white fill. A structural board (section, row, wrapper) gets fills = []; a surface (screen
background, card, sheet, button) binds a color.bg.* token. A leftover white wrapper shows square
corners behind rounded children and never flips in dark mode.shape.tokens in the next call, and guard
every apply (shape.tokens[prop] !== tok.name): re-applying a bound token removes the binding, and
so does writing a literal to a bound property. applyToken(tok, ["all"]) throws — list properties.growType after any resize() (#3). Resolve fonts by exact name —
penpot.fonts.all.find(f => f.name === "…"); findByName is a substring search (#13b).layoutChild.* only after appendChild (#15). Size a board before filling
it with wide children and run clearFlip after each section (#16, helper in
shared/visual-effects.md). await board.waitForLayoutUpdate() before reading geometry (#17).await penpot.uploadMediaUrl(name, url), verified in
the next call; otherwise a labeled placeholder (#18, shared/visual-effects.md).The excuses that lead to breaking these, with their countermeasures:
references/06-anti-rationalization.md. When a step fails: references/07-error-recovery.md.
Default mode review: geometry and layout changes always go through a checkpoint
(shared/modes-and-policies.md). "Looks good" approves only the phase just shown.
Ledger under RUN_ID (shared/state-management.md): phase, screenBoardId,
sections: [{ name, id, done }], styleProfile, skeleton, designQuality (the report object), and
antiSlop (pref, direction, reports[]) when strict mode is on. The opt-in itself is file-wide
plugin data: penpot-ai → prefs.antiSlop. Resume by reading the ledger and re-reading the structure.
Naming (shared/naming-conventions.md): semantic HTML layer names (header, main, section,
nav, button); the screen Board is named for the view (Dashboard).
01-brief-analysis.md, 02-style-profiles.md, 03-layout-composition.md,
04-component-recipes.md, 05-critique-framework.md, 06-anti-rationalization.md,
07-error-recovery.md. Effects, gradients and image placeholders: shared/visual-effects.md.execute_code) — setupOrReuseSystem.js (Phase 0, read-only),
createScreenFrame.js (Phase 1), buildSection.js (one per section), assembleScreen.js,
auditScreenQuality.js (Phase N+1).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-brief-analysis.md (opens in a new tab)references/02-style-profiles.md (opens in a new tab)references/03-layout-composition.md (opens in a new tab)references/04-component-recipes.md (opens in a new tab)references/05-critique-framework.md (opens in a new tab)references/06-anti-rationalization.md (opens in a new tab)references/07-error-recovery.md (opens in a new tab)scripts/assembleScreen.js (opens in a new tab)scripts/auditScreenQuality.js (opens in a new tab)scripts/buildSection.js (opens in a new tab)scripts/createScreenFrame.js (opens in a new tab)scripts/setupOrReuseSystem.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
penpot, ui-design, screen-design, design-system, visual-design
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-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'./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-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