/penpot-ai-kit:penpot-document-handofffrom penpot-ai-kit
Annotates a Penpot design for developer handoff with a hideable annotation layer beside the design: context card, numbered pins, matching notes, and optional tooltips. One annotation per call, design never modified.
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 design into a self-explaining handoff, as a senior handoff specialist who never annotates on top of the work: a context card to its left (goal, business rules, links, designers, status, feedback wanted / not wanted), numbered pins on the UI regions, a matching note card per pin to its right, and optional tooltips for transient states — all inside one hideable group, so a reviewer gets back to the clean design with one click.
The one rule: annotate beside, never on top — and one annotation per call. The design is read-only input: nothing in it is moved, restyled, renamed or restructured. Build the context card, then each pin + note individually, checkpointing as you go.
Tool surface: shared/penpot-mcp-tool-reference.md. API traps: shared/plugin-api-gotchas.md (the
#n below).
Before every ✋ checkpoint that shows visual work, run the export → look → fix loop of
shared/visual-self-review.md (max 2 self-fixes).
Phase 0 — Discovery (read-only). high_level_overview; resolve the target (penpot.selection or a
named board) and keep its id in storage.dh; read its structure (depth 2–3) to list pinnable regions
with their bounds; inventory the annotation kit and tokens with scripts/setupAnnotationKit.js in
dryRun. ✋ Confirm the target and whether a kit exists.
Phase 1 — Brief. Collect or confirm the context-card content and the pin list (region →
observation → optional recommendation); references/02-handoff-brief.md. ✋ Approve both before any
drawing.
Phase 2 — Annotation kit. Kit components and annotation.* tokens exist → reuse them. Otherwise
propose the minimal kit (Critique Card, Chip Note, Pointer S/L, Tooltip) and its tokens
(color.annotation.accent | surface | on-accent | body, font.annotation.title | body | label) per
references/04-component-and-tokens.md, and create it only after approval:
scripts/setupAnnotationKit.js creates the tokens and the Pointer components; Chip Note, Critique Card
and Tooltip are then built from the reference, one component per call. ✋ Approve kit and token names,
values and tier.
Phase 3 — Context card. scripts/buildContextCard.js: instance the Critique Card, fill it from the
brief, place it to the left of the design (references/03-layout-placement.md). ✋ Export the card.
Phase 4 — Pins and notes, one per call. scripts/placePinAndNote.js: a numbered Pointer on the
region plus a Chip Note with the same number in the right column. Optionally
scripts/addTooltipCallout.js for a transient state. ✋ Export after each (or each small batch).
Phase 5 — Wrap and audit. scripts/finalizeHandoff.js groups every annotation shape under one
group named Hide this to quit notes and runs the self-audit: design untouched, pin ↔ note parity,
contiguous numbering, tokens bound, column order. A non-empty violations fails the gate — fix before
reporting done. Then the structured report.
[ Critique Card ] [ the design (read-only) ] [ Chip Note #1 ]
#US · title ┌─────────┐ number + TITLE
status · platform │ ① ② ③ │ ← Pointer pins Observation
HMW goal │ UI… │ on the regions Recommendation?
links · designers └─────────┘ [ Chip Note #2 ] …
context / feedback (+ Tooltip for transient states)
Anatomy and reference values: references/01-annotation-anatomy.md.
resize, reparenting, detach, remove, fill or name change
on any original shape. Highlighting a region means a pin over it, not a recolored layer. The audit
fails the run if the design's shape set or bounds changed.execute_code call. A one-shot layer is unauditable and de-syncs numbering.color.annotation.* — proposing the tokens if they are missing.color.annotation.surface; inner
section boards and wrappers are structural → fills = [].column-reverse; the scripts' fallback cards use a plain column — match whichever kit
the file has). Pins and the context card
are placed at absolute page positions; an absolute layout child uses page coordinates and
boards clip at their edges (#14).growType after any resize() (#3) and read textBounds in a later call. Resolve
the font by exact name (penpot.fonts.all.find(f => f.name === "Work Sans"), #13b); if it is
absent keep the default and report font-fallback.shape.tokens[prop] !== tok.name)
— a re-applied token loses its binding.penpot.group(shapes)), named Hide this to quit notes; hiding is
group.hidden = true.More failure modes: references/05-anti-rationalization.md. Recovery (missing kit, broken numbering,
accidental design edits, grouping issues): references/06-error-recovery.md.
Mode review (shared/modes-and-policies.md): geometry, components and tokens all go through a
checkpoint. Safe set: documentation metadata (plugin data) and renaming an auto-named annotation layer
this skill just created. Never automatic: creating the kit, creating annotation.* tokens, and any
change to the design.
Ledger under RUN_ID (shared/state-management.md; data in storage.dh plus the in-file ledger):
phase, designBoardId, kit: { critiqueCardId, chipNoteId, pointerSId, pointerLId, tooltipId, created }, tokens, contextCardId, notesColumnX, groupId, pins: [{ n, regionId, pinId, noteId }], pinCounter. Resume: read the ledger, re-read the group and pins, continue from
pinCounter.
Naming (shared/naming-conventions.md): components keep the reference system's names (Critique Card,
Chip Note, Pointer, Tooltip); tokens are dot-notation in an annotation set; layers are
kebab-case (context-card, note-card, pin); pin labels are the integer index.
01-annotation-anatomy.md, 02-handoff-brief.md, 03-layout-placement.md,
04-component-and-tokens.md, 05-anti-rationalization.md, 06-error-recovery.md.execute_code) — setupAnnotationKit.js (inventory; creates the kit when
not dryRun), buildContextCard.js, placePinAndNote.js (one pin + note; exceptions lists any note field it could not fill), addTooltipCallout.js,
finalizeHandoff.js (group + audit).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-annotation-anatomy.md (opens in a new tab)references/02-handoff-brief.md (opens in a new tab)references/03-layout-placement.md (opens in a new tab)references/04-component-and-tokens.md (opens in a new tab)references/05-anti-rationalization.md (opens in a new tab)references/06-error-recovery.md (opens in a new tab)scripts/addTooltipCallout.js (opens in a new tab)scripts/buildContextCard.js (opens in a new tab)scripts/finalizeHandoff.js (opens in a new tab)scripts/placePinAndNote.js (opens in a new tab)scripts/setupAnnotationKit.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-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'.Other plugins' skills for the same job