Index of every page on this site: llms.txt
All skills
penpot avatar

/penpot-router

@fe4f99e
by penpotpenpot/penpot-ai-kit126 stars
17
Run it yourself

Thin dispatcher / entry point for any Penpot request. Use FIRST on any Penpot task to ensure high_level_overview ran, read the user's intent, and route to exactly one target skill or workflow (build a screen, build a slide deck, build a design system, audit accessibility, audit tokens, migrate from Figma, rename layers, code review, extract DESIGN.md, etc.). Never mutates the canvas. Triggers: 'work on this Penpot file', 'help me with Penpot', 'I want to design/build/audit/migrate in Penpot', 'where do I start', 'which skill should I use', 'route this request', ambiguous Penpot asks.

Use this Skill: https://skilld.dev/gh/penpot/penpot-ai-kit/penpot-router

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

references01-intent-taxonomy.md

≈2.5k tokens on demand. Your agent reads this file only when SKILL.md points to it.

01 — Intent Taxonomy (router classification map)

Loaded during Phase 1 (Intent classification) of penpot-router. This is the full mapping of what users actually say to the one skill or workflow that should handle it, plus the fallbacks and tie-breakers that keep the router from guessing. The router itself mutates nothing; it picks one target and hands off the Token-Aware Brief Contract (SKILL.md §5).

How to use this file

  1. Read the user's literal request.
  2. Combine it with Phase 0 state (see 02-preflight-overview.md): does a token system exist? is something selected? is the file empty or mature?
  3. Match against the Primary intents table. The first strong match wins.
  4. If two rows match with comparable confidence, apply the Tie-breakers.
  5. If the request bundles multiple intents, apply Multi-intent splitting.
  6. If nothing matches, apply Fallbacks.

Primary intents → skill

# Canonical intent Target skill Strong-signal phrasings Weak/ambiguous phrasings (need Phase 0 to confirm)
1 Establish/extend foundations: token scales (color, spacing, type, radius), themes penpot-foundations "set up our design tokens", "create a color scale", "add a spacing scale", "add a dark theme", "define our type ramp", "bootstrap foundations" "set up our design system" (route to design-system-bootstrap workflow if also components/docs are implied)
2 Build/extend reusable components & variant matrices penpot-component-factory "make a Button component", "build an Input with states", "add a Size axis", "turn this selection into a component", "create variants for hover/disabled" "make a button" (a one-off shape vs. a component — confirm reuse intent)
3 Assemble a screen/view from a brief using the existing system penpot-build-screen "design a settings screen", "lay out a dashboard", "build the pricing page from this brief", "create a profile view" "make a page" (could be a Penpot page vs. a UI screen — confirm)
3b Design a presentation / slide deck from a brief penpot-build-deck "create a presentation", "build a slide deck", "pitch deck", "keynote", "slides for this talk", "turn this outline into slides" "make a page/slide" (a Penpot page vs. a UI screen vs. a slide — confirm)
4 Build a screen/view from code/markup penpot-build-from-code "create this React page in Penpot", "push this JSX to a board", "build the screen to match this component code", "here's the HTML, make the design" "build this in Penpot" with code attached → from-code; without code → penpot-build-screen
4b Document/annotate a design for handoff penpot-document-handoff "document this design", "annotate this screen", "prepare this for handoff", "add observation notes", "create a critique card", "explain this flow for devs", "spec this for handoff" "prepare for handoff" (annotation layer vs. penpot-rename-layers for semantic names — confirm: explaining intent → document-handoff; tidy layer names → rename-layers)
5 Accessibility audit (WCAG 2.1/2.2) penpot-audit-accessibility "check accessibility", "WCAG AA audit", "contrast check", "are touch targets ≥ 44px", "heading hierarchy review", "a11y report" "review this design" (could be a11y, tokens, or code-drift — see tie-breakers)
6 Token governance audit penpot-audit-tokens "find hardcoded colors", "audit token usage", "what's off the 4px grid", "find orphan/unused tokens", "are we using semantic tokens" "clean up this design" (tokens vs. layer naming — confirm)
7 Design-vs-code drift review penpot-design-to-code-review "does this design match the code", "design-to-code review", "find drift between Penpot and the component", "is the implementation faithful" "review against the repo" (drift vs. code-to-penpot-sync workflow — one board vs. ongoing sync)
7b Portable DESIGN.md spec file penpot-design-md "generate a DESIGN.md", "design guidelines as markdown", "style guide file for our coding agent" "document our design system" (in-file annotations → document-handoff; a portable markdown file → design-md)
7c Check / steer a design away from the generic-AI look penpot-anti-slop "does this look AI-generated", "anti-slop check", "avoid the AI look", "¿parece hecho por IA?", "evita la estética IA" "make it look better" / "make it less generic" (anti-slop diagnose vs. a design-quality revision inside penpot-build-screen — confirm: a judgement of an existing design → anti-slop; rebuilding it → build-screen)
8 Import/migrate from Figma penpot-migrate "migrate this Figma file", "import from Figma", "bring our Figma library into Penpot", (a figma.com URL is present) "move our designs over" (confirm source is Figma)
9 Rename layers semantically penpot-rename-layers "rename these layers", "clean up layer names", "semantic HTML layer names", "fix Rectangle 12 names", "prepare layers for handoff" "clean up this file" (naming vs. token audit — confirm)

Primary intents → workflow (multi-skill orchestrations)

# Canonical intent Target workflow Strong-signal phrasings Composed of
W0 Meta: decide where to start routing "I don't know which tool I need", "where do I begin", "help me with this Penpot file" (this router)
W1 End-to-end design system from scratch/code design-system-bootstrap "set up a full design system", "tokens + components + docs from our codebase", "bootstrap the whole library" foundations → component-factory → audit-tokens
W2 Brief → finished, validated screen brief-to-screen "take this brief and ship a screen", "design and validate this page end to end" (foundations check) → build-screen → audit-accessibility
W3 Keep Penpot in sync with code code-to-penpot-sync "sync our components to code", "reconcile Penpot with the repo", "keep design and code aligned" design-to-code-review → build-from-code → audit-tokens
W4 Full Figma → Penpot migration program figma-migration "migrate our entire Figma project", "full Figma import with tokens, components, screens" migrate → foundations → component-factory → rename-layers
W5 Accessibility gate before handoff accessibility-gate "block handoff until a11y passes", "run the accessibility gate", "validate before we ship" audit-accessibility (+ rename-layers if heading hierarchy is unreadable)
W6 Brief → finished, playable deck brief-to-deck "turn this outline into a polished deck", "design and validate this presentation end to end" build-deck → audit-accessibility (scope:deck) loop

Tie-breakers (two rows match)

  • "review this design" → ask the user, or use Phase 0: if many raw hex/off-grid values → penpot-audit-tokens; if low-contrast/missing semantics → penpot-audit-accessibility; if a code reference is attached → penpot-design-to-code-review.
  • "set up our design system" → if the ask includes components or docs, or the file is empty → design-system-bootstrap (workflow). If it's only token scales → penpot-foundations (skill).
  • "build this in Penpot" → code/markup attached → penpot-build-from-code; only a description/brief → penpot-build-screen.
  • "clean up this file" → unnamed/auto-named layers dominate → penpot-rename-layers; raw values dominate → penpot-audit-tokens. Use Phase 0 shapeStructure to see which.
  • "match the code" → one-time check → penpot-design-to-code-review; ongoing reconciliation → code-to-penpot-sync (workflow).
  • "prepare this for handoff" → wants explanatory annotations (intent, flows, business rules, notes) → penpot-document-handoff; wants only clean semantic layer names → penpot-rename-layers. If both, rename first (cleaner pin targets), then document.
  • "make a page / make a slide" → words slide / deck / presentation / talk / keynote → penpot-build-deck; a page/screen/view of a product → penpot-build-screen; a literal Penpot page → ask.
  • "document this…" → annotations on the canvas → penpot-document-handoff; a portable markdown spec file → penpot-design-md.
  • Single skill vs. its workflow → if the user wants just that step, route the skill; if they describe an end-to-end outcome spanning steps, route the workflow.

Multi-intent splitting

When a request bundles intents ("set up tokens, build a Button, and check contrast"):

  1. Pick the primary objective (usually the first stated, or the prerequisite — foundations before components before screens before audits).
  2. Route the primary; record the rest in storage.router.queuedIntents.
  3. After the primary's downstream skill checkpoints out, re-enter the router for the next queued intent.
  4. If the bundle is a known workflow shape (e.g. tokens → components → audit = design-system-bootstrap), route the workflow instead of splitting.
  5. "design system + deck" → foundations first (penpot-foundations / design-system-bootstrap), then penpot-build-deck on top of the resulting tokens.

Fallbacks (no clean match)

  1. Empty/near-empty file + vague ask → suggest design-system-bootstrap or penpot-foundations (you need a system before you can build on it).
  2. Mature file + vague ask → ask one disambiguating question listing the two most likely targets.
  3. Non-Penpot request → this is not a routing case; the router declines and hands back to the general assistant.
  4. Host client already auto-selected a skill → do not re-dispatch; present this taxonomy as a reference map and step aside (graceful degradation, SKILL.md §1 and Critical Rule 7).

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill acts as a router for Penpot design tasks. It is generally safe but possesses a standard attack surface for indirect prompt injection by processing external design data (layer names and tokens) from the workspace without explicit sanitization.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at fe4f99e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago
disable-model-invocation
false
version
0.3.1
audiences
[
  "design-system",
  "product-designer",
  "design-engineer",
  "migration"
]
Other metadata
mode-default
suggest
requires
[
  "shared/penpot-mcp-tool-reference.md",
  "shared/plugin-api-gotchas.md",
  "shared/tokens-schema.json",
  "shared/naming-conventions.md",
  "shared/state-management.md",
  "shared/modes-and-policies.md"
]

README badge

README badge for penpot/penpot-ai-kit/penpot-router