Transform Pencil .pen designs into production-ready React components and Tailwind CSS configurations automatically.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install pencil-to-code
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install pencil-to-code using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Pencil to Code skill provides a direct pipeline for converting .pen design files into production-grade React components styled with Tailwind CSS. By leveraging the Openclaw Skills ecosystem, developers can eliminate the manual translation of design properties, ensuring that spacing, typography, and color tokens are perfectly synchronized with the source design. This tool is built to handle complex layouts, including nested frames and auto-layout configurations, translating them into semantic HTML and utility-first CSS.
This skill is specifically optimized for high-fidelity exports, meaning it doesn't just approximate the design—it maps the underlying design system logic directly to code. It is a vital tool for teams using Openclaw Skills to bridge the gap between creative design exploration and frontend engineering.
To utilize this skill within the Openclaw Skills framework, you must provide the file path to a valid .pen design and the specific Frame ID you wish to export.
# The skill is typically invoked by an agent using the following logic:
mcp__pencil__batch_get({
filePath: "path/to/your/design.pen",
nodeIds: ["frameId"],
resolveVariables: true
})
Ensure your project is configured to support Tailwind CSS to properly render the generated utility classes.
The skill organizes its output by mapping .pen properties to a structured code schema.
| .pen Property | Tailwind / React Output |
|---|---|
| layout: "vertical" | className="flex flex-col" |
| layout: "horizontal" | className="flex flex-row" |
| gap: 16 | className="gap-4" |
| fontSize: 24 | className="text-2xl" |
| cornerRadius: 8 | className="rounded-lg" |
| fill: #000000 | className="bg-black" |
.tsx file containing the React functional component with props.app/globals.css derived from .pen design tokens.Loading
A deterministic rendering engine that translates abstract aesthetic DNA codes into concrete Pencil .pen frames and visual screenshots.

A framework for defining structured AI agent identities using psychological models and compiling them into system prompts.

An advanced skill for defining and integrating spiritual, religious, and ethical frameworks into AI agent identities using structured YAML configuration.

A sophisticated framework for integrating a virtual advisory board of historical figures into AI agent identities through structured YAML configurations.

An advanced security and trust verification layer designed to protect AI agents from prompt injection, jailbreaks, and malicious communications.

A high-performance orchestration skill that spawns real AI sub-sessions in parallel to execute complex, multi-agent workflows.








































