Skip to content

Pencilplaybook

PencilPlaybook is the UI Skills / Taste-Skill for Pencil.dev + Claude Code, a design playbook that gives Claude real perceptual psychology and senior-level guardrails so it…

Install: git clone https://github.com/stevembarclay/pencilplaybook

Works with Claude Code · 50 GitHub stars

Install

$git clone https://github.com/stevembarclay/pencilplaybook

Install command taken from the project's README or registry entry. Always review code before running it.

PencilPlaybook

Install once. Claude now knows why disabled buttons are 40% opacity, not 50%.

That specificity — defensible, tested, perceptually grounded — is what separates production UI from AI slop. PencilPlaybook embeds those rules directly into Claude Code, so every Pencil.dev session automatically gets the values a senior designer carries in their head.

Now Claude knows:

  • Disabled at 40%, not 50% — MD3 and Workday both converged here after user testing; 50% creates visual competition with active elements
  • Hover states need an 8% lightness delta minimum — below that, the state is imperceptible on most monitors
  • Body text on dark backgrounds: not pure white — halation makes it harder to read; use #E2E8F0 or #F1F5F9
  • Display type at 56px+: −0.03em letter spacing — optical counters open up at large sizes
  • Touch targets: 44×44px minimum on mobile, period

Nine scaffold archetypes. Seven preset design systems. Structured workflows for every Pencil.dev operation. One git clone.


Before (raw Claude output) → After (with PencilPlaybook)

Before After
Before: generic AI output After: with PencilPlaybook

The rules Claude doesn't ship with

The problem isn't Claude's capability — it's that good design has specific, defensible values that AI doesn't know unless you tell it. Without them, it averages what it's seen on the internet.

These aren't opinions. They're the kind of thing a senior product designer learns from doing it wrong a few times. Hover states that don't clear the 8% lightness threshold are invisible on most monitors. Disabled elements at 50% opacity compete visually with active ones. Pure white on dark backgrounds causes halation. These are measurable, testable, reproducible failures — and they're exactly what raw Claude output defaults to.

PencilPlaybook embeds those values as lookup tables Claude checks before making any decision. It also gives Claude a structured workflow for .pen files: explore the canvas before touching it, inject brand tokens at session start, find empty space before placing a new screen, use bulk replacement tools for token propagation instead of clicking through nodes one by one.

The result: designs that are structurally sound and perceptually intentional — not averaged from what the internet thinks a dashboard should look like.


Save Tokens & Go Faster

PencilPlaybook is built to reduce token waste and speed up your loops:

  • Always start with Canvas Archaeology: Using PencilPlaybook, analyze this canvas and list every screen + current design tokens.

  • Use scoped prompts for small changes: Using PencilPlaybook, only update the modal on screen "checkout" with better hierarchy. Do not touch other screens.

  • Run Bulk Property Inspection first before big refactors.

  • Stick to one of the 7 presets unless you have a very specific need.

Pro tip: Keep individual .pen files under ~15–20 screens. Use spatial management workflows when splitting large projects.


Common Pitfalls & Fixes

  • MCP keeps disappearing or re-injecting Run the setup wizard once, then pin the skill. Work primarily inside the IDE and avoid opening the Pencil desktop app while Claude Code is active — the app can override MCP configs.

Similar plugs

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create prototypes, websites, apps, dashboards, presentations, images, and videos with your team…

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, and Pi. 44 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.

Explore related