跳到正文
TakoAPI
返回技能列表

pencil-renderer

由 jcwen 提供

DevOps & Cloud
901下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Render DNA codes to Pencil .pen frames.

描述

该技能的功能

Translates aesthetic DNA codes into rendered frames in Pencil .pen files via MCP. Takes a DNA code array and component type as input, returns a frame ID and screenshot. Designed to be called by orchestrators rather than used directly.

Deterministic DNA-to-property mapping ensures the same DNA code always produces the same frame structure, making it reliable as a composable building block in design orchestration workflows.

何时使用

  • Rendering a hero section frame from a brutalist DNA code during design exploration
  • Generating card component mockups across multiple aesthetic variations
  • Producing form layout frames for visual review without manual design work
  • Creating nav and footer frames as part of an automated design pipeline
  • Capturing screenshots of rendered UI components for proposal comparison

示例工作流

输入

User asks: Render a hero component using DNA [centered, dark, display-heavy, none, spacious, solid]

智能体
  1. 1

    Check Pencil editor state with mcp__pencil__get_editor_state; open document if none is active

  2. 2

    Retrieve style guide tags matching the DNA mood (dark color → ["dark-mode", "moody"]) via mcp__pencil__get_style_guide_tags and mcp__pencil__get_style_guide

  3. 3

    Map each DNA axis to Pencil properties: centered → alignItems center, dark → dark fill with light foreground, display-heavy → large heading sizes

  4. 4

    Execute mcp__pencil__batch_design to create the hero frame with headline, subhead, and CTA button elements

  5. 5

    Capture the result with mcp__pencil__get_screenshot and return the frame ID plus screenshot

输出

Frame ID in the .pen file and a screenshot image of the rendered hero component

安装

clawhub install jcwen/pencil-renderer

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接