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
累計下載
2370
星標
-
全站排名
#4,199
全站前 83% · 「設計創意」前 81%
平台累計安裝累計下載星標評論
ClawHub ↗682288--
SkillHub ↗1232370-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文列出準備文件、讀取風格指南、執行批次設計操作以及擷取結果的步驟,適用於由設計編排器呼叫的視覺提案渲染。批次操作可能替換、刪除或修改現有設計內容,應用到重要檔案前應先審查操作內容;不要把敏感文字放進外部圖像提示詞。

資料釋出於 2026-10-29

可以用來做什麼

  • 將指定風格 DNA 對映為 Pencil 元件屬性
  • 為視覺提案規劃 hero、card 或 form 等畫框
  • 檢查設計操作應用前後的檔案影響

什麼時候用

  • 設計編排流程需要把結構化視覺方案渲染為 Pencil 畫框時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

只解釋如何把佈局和顏色 DNA 對映到 Pencil 屬性,不開啟或修改檔案。
應用批次設計操作前,列出可能替換、刪除或修改的內容。

月度資料趨勢

累計下載2370
1052176024682026-03 · 累計下載 11502026-05 · 累計下載 16722026-06 · 累計下載 18232026-07 · 累計下載 20452026-08 · 累計下載 21732026-09 · 累計下載 237026-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092370—-
2026-082173+6.3%-
2026-072045+12.2%-
2026-061823+9.0%-
2026-051672—-
2026-031150—-

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),按月更新。口徑說明見資料方法。