Loading...
Loading...
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.
npx skill4agent add phrazzld/claude-config pencil-renderer[layout, color, typography, motion, density, background]hero | card | form | nav | footer | section | button | input// 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] })references/dna-to-pencil.mdcenteredalignItems: "center"references/batch-design-patterns.mdmcp__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]| Type | Structure |
|---|---|
| Container + headline + subhead + CTA buttons |
| Container + image area + content + actions |
| Container + labels + inputs + submit |
| Container + logo + links + actions |
| Container + columns + links + legal |
| Container + heading + content grid |
| Frame + text + icon slot |
| Frame + label + field + validation |
| DNA Axis | Key Pencil Properties |
|---|---|
| Layout: centered | |
| Layout: asymmetric | Offset positions, varied gaps |
| Layout: bento | Grid with varied spans |
| Color: dark | Dark fill, light foreground |
| Color: gradient | |
| 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.mdreferences/batch-design-patterns.mdaesthetic-system/references/dna-codes.mddesign-explorationaesthetic-system