Render DNA codes to Pencil .pen frames. Does ONE thing well. Input: DNA code + component type (hero, card, form, etc.) Output: .pen frame ID + screenshot Use when: design-exploration or other orchestrators need to render visual proposals using Pencil MCP backend.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install pencil-renderer或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install pencil-renderer⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/pencil-renderer/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: pencil-renderer description: | Render DNA codes to Pencil .pen frames. Does ONE thing well.
Input: DNA code + component type (hero, card, form, etc.) Output: .pen frame ID + screenshot
Use when: design-exploration or other orchestrators need to render visual proposals using Pencil MCP backend. effort: high ---
Translate aesthetic DNA codes into Pencil .pen frames via MCP.
Input:
[layout, color, typography, motion, density, background]hero | card | form | nav | footer | section | button | inputOutput:
// Check if editor open
mcp__pencil__get_editor_state({ include_schema: false })
// If no editor, open or create
mcp__pencil__open_document({ filePathOrTemplate: "new" })
// Get available style guide tags
mcp__pencil__get_style_guide_tags()
// Get style guide matching DNA mood
// Map DNA to relevant tags:
// - dark color → ["dark-mode", "moody"]
// - light color → ["light", "clean"]
// - spacious density → ["airy", "whitespace"]
// etc.
mcp__pencil__get_style_guide({ tags: [mapped_tags] })
Reference: references/dna-to-pencil.md
DNA axis → Pencil property mapping is deterministic. Example: centered layout → alignItems: "center", symmetric padding
Reference: references/batch-design-patterns.md
mcp__pencil__batch_design({
filePath: "<path>.pen",
operations: `
frame=I(document, {type: "frame", name: "Hero-Brutalist", ...properties})
heading=I(frame, {type: "text", content: "Headline", ...typography})
// ... additional operations
`
})
// Screenshot for visual verification
mcp__pencil__get_screenshot({ nodeId: "frameId" })
Frame ID: [id]
DNA: [layout, color, typography, motion, density, background]
Plus screenshot image.
| Type | Structure | |------|-----------| | hero | Container + headline + subhead + CTA buttons | | card | Container + image area + content + actions | | form | Container + labels + inputs + submit | | nav | Container + logo + links + actions | | footer | Container + columns + links + legal | | section | Container + heading + content grid | | button | Frame + text + icon slot | | input | Frame + label + field + validation |
| DNA Axis | Key Pencil Properties | |----------|----------------------| | Layout: centered | alignItems: "center", equal padding | | Layout: asymmetric | Offset positions, varied gaps | | Layout: bento | Grid with varied spans | | Color: dark | Dark fill, light foreground | | Color: gradient | fill: {type: "linear", stops: [...]} | | Typography: display-heavy | Large heading sizes, high contrast | | Typography: minimal | Restrained scale, single family | | Density: spacious | gap: 24-48, generous padding | | Density: compact | gap: 8-16, tight padding | | Background: solid | Single fill color | | Background: textured | G() for patterns/images |
references/dna-to-pencil.md — Complete axis mappingreferences/batch-design-patterns.md — Common operation sequencesaesthetic-system/references/dna-codes.md — DNA axis definitionsCalled by:
design-exploration orchestrator (when Pencil backend available)Composes:
aesthetic-system (for DNA interpretation)安装 Pencil Renderer 后,可以对 AI 说这些话来触发它
Help me get started with Pencil Renderer
Explains what Pencil Renderer does, walks through the setup, and runs a quick demo based on your current project
Use Pencil Renderer to render DNA codes to Pencil
Invokes Pencil Renderer with the right parameters and returns the result directly in the conversation
What can I do with Pencil Renderer in my developer & devops workflow?
Lists the top use cases for Pencil Renderer, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/pencil-renderer/ 目录(个人级,所有项目可用),或 .claude/skills/pencil-renderer/(项目级)。重启 AI 客户端后,用 /pencil-renderer 主动调用,或让 AI 根据上下文自动发现并使用。
Pencil Renderer 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Pencil Renderer 可免费安装使用。请查阅仓库了解许可证信息。
Render DNA codes to Pencil .pen frames. Does ONE thing well. Input: DNA code + component type (hero, card, form, etc.) Output: .pen frame ID + screenshot Use when: design-exploration or other orchestrators need to render visual proposals using Pencil MCP backend.
Pencil Renderer 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Pencil Renderer
Identifies repetitive steps in your workflow and sets up Pencil Renderer to handle them automatically