Jcwen

Pencil Renderer

设计创意v0.1.2
作者:Jcwen更新于 2026-05-17共 3 个版本 · 最新版本发布于 2026-02-11pencil-renderer@clawhub_jcwen/pencil-renderer
视觉素材UI 设计

据 AlphaMoat 统计,截至 2026-09,Pencil Renderer 累计下载 2,370 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 4,199 位,在「设计创意」分类(512 个)中排名第 411 位。

累计安装
123
累计下载
2,370
星标
-
全站排名
#4,199
全站前 83% · 「设计创意」前 81%
平台累计安装累计下载星标评论
ClawHub ↗682,288--
SkillHub ↗1232,370-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文列出准备文档、读取风格指南、执行批量设计操作以及截取结果的步骤,适用于由设计编排器调用的视觉提案渲染。批量操作可能替换、删除或修改现有设计内容,应用到重要文件前应先审查操作内容;不要把敏感文本放进外部图像提示词。

资料发布于 2026-10-29

可以用来做什么

  • 将指定风格 DNA 映射为 Pencil 组件属性
  • 为视觉提案规划 hero、card 或 form 等画框
  • 检查设计操作应用前后的文件影响

什么时候用

  • 设计编排流程需要把结构化视觉方案渲染为 Pencil 画框时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

只解释如何把布局和颜色 DNA 映射到 Pencil 属性,不打开或修改文件。
应用批量设计操作前,列出可能替换、删除或修改的内容。

月度数据趋势

累计下载2,370
1,0521,7602,4682026-03 · 累计下载 1,1502026-05 · 累计下载 1,6722026-06 · 累计下载 1,8232026-07 · 累计下载 2,0452026-08 · 累计下载 2,1732026-09 · 累计下载 2,37026-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,370—-
2026-082,173+6.3%-
2026-072,045+12.2%-
2026-061,823+9.0%-
2026-051,672—-
2026-031,150—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.9 KB · ClawHub v0.1.2
---
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.
展开全部(共 143 行)
effort: high
---

# Pencil Renderer

Translate aesthetic DNA codes into Pencil .pen frames via MCP.

## Interface

**Input:**
- DNA code: `[layout, color, typography, motion, density, background]`
- Component type: `hero | card | form | nav | footer | section | button | input`
- Optional: Name, dimensions, parent frame ID

**Output:**
- Frame ID in .pen file
- Screenshot of rendered frame

## Workflow

### 1. Ensure Document Ready

```javascript
// Check if editor open
mcp__pencil__get_editor_state({ include_schema: false })

// If no editor, open or create
mcp__pencil__open_document({ filePathOrTemplate: "new" })
```

### 2. Get Style Foundation

```javascript
// 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] })
```

### 3. Translate DNA to Pencil Properties

Reference: `references/dna-to-pencil.md`

DNA axis → Pencil property mapping is deterministic.
Example: `centered` layout → `alignItems: "center"`, symmetric padding

### 4. Execute Design Operations

Reference: `references/batch-design-patterns.md`

```javascript
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
  `
})
```

### 5. Capture Result

```javascript
// Screenshot for visual verification
mcp__pencil__get_screenshot({ nodeId: "frameId" })
```

### 6. Return

```markdown
Frame ID: [id]
DNA: [layout, color, typography, motion, density, background]
```

Plus screenshot image.

## Component Templates

| 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 Translation Quick Reference

| 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 |

## Constraints

- **Single concern**: Render DNA → frame. No interview, no iteration.
- **Pencil MCP required**: Fails fast if unavailable
- **Deterministic mapping**: Same DNA always produces same structure
- **Composable**: Called by orchestrators, not users directly

## References

- `references/dna-to-pencil.md` — Complete axis mapping
- `references/batch-design-patterns.md` — Common operation sequences
- `aesthetic-system/references/dna-codes.md` — DNA axis definitions

## Integration

**Called by:**
- `design-exploration` orchestrator (when Pencil backend available)

**Composes:**
- `aesthetic-system` (for DNA interpretation)

「设计创意」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。