pencil-skill

Generate and edit UI designs in the JSON-based .pen format.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/466852675/Skills-2026 --skill pencil-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pencil-skill
Source: https://github.com/466852675/Skills-2026/tree/main/pencil-skill
Command: npx skills add https://github.com/466852675/Skills-2026 --skill pencil-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Designing UI in Pencil's JSON .pen format manually is tedious and error‑prone, and AI‑generated designs often ignore design systems, spacing, and accessibility.

Core Features & Use Cases

  • 41 curated design rules that enforce layout, tokens, anti‑AI aesthetics, component hierarchy, typography, colour, spacing and showcase guidelines.
  • CLI toolbox (read‑tree, search‑nodes, batch‑design, validate‑pen, etc.) for inspecting, searching, batch editing and validating .pen files without opening the Pencil app.
  • Token and theme management via set-variables/get-variables to ensure consistent colours, typography and dark‑mode support.
  • Component system with reusable frames, ref instances, slots and atomic design hierarchy.
  • Use case: an AI agent can generate a complete responsive UI mockup, validate it, and export it for further development.

Quick Start

Ask the agent to create a new landing‑page design in .pen format using the pencil skill.

Frequently Asked Questions about pencil-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate UI designs in JSON format via code?

You can generate UI designs in JSON format by writing code that adheres to the .pen format, using CLI tools to create, validate, and batch edit responsive web mockups and component libraries without a desktop application.

Can I validate and batch edit .pen design files without opening the desktop app?

Yes, you can validate and batch edit .pen design files without the desktop app by using CLI tools like read-tree, search-nodes, batch-design, and validate-pen to inspect and modify design nodes directly.

How do I manage design tokens and themes for dark mode in a JSON-based UI format?

You manage design tokens and themes for dark mode in a JSON-based UI format by using CLI variables tools to set and get consistent colors, typography, and spacing values across the component hierarchy.

Do I need Node.js to create responsive web mockups in the .pen format?

Yes, you need Node.js version 18 or higher to run the CLI toolbox and execute scripts for generating, validating, and editing responsive web mockups and design systems in the .pen format.

What are the best ways to enforce design system rules when generating UI mockups with AI?

The best way to enforce design system rules when generating UI mockups with AI is to apply curated design rules that validate layout, typography, color, spacing, and anti-AI aesthetics directly within the generated JSON output.

Why do AI-generated UI designs often ignore spacing and accessibility?

AI-generated UI designs often ignore spacing and accessibility because they lack built-in design system constraints, a problem solved by applying curated design rules and using token management to enforce consistent layout and typography.