← 返回 Skills 市场
1203
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install pencil-to-code
功能描述
Export .pen design to React/Tailwind code. Does ONE thing well.
Input: .pen frame ID or file path
Output: React component code + Tailwind config
Use when: design-exploration or user needs implementation code
from a finalized Pencil design.
安全使用建议
This skill appears coherent and limited to converting Pencil (.pen) designs into React + Tailwind output. Before installing: (1) confirm you only give it access to design files you intend to convert (it reads filePath/nodeId and can take screenshots of frames), (2) review generated code for any external image URLs or embedded data (images in designs may point to external hosts), and (3) if provenance matters, consider the unknown source/homepage — although the skill is instruction-only (no install), verify the owner/trust if you plan to use it in automated pipelines. If you need stronger assurance, ask the publisher for a homepage or source repository so you can inspect any implementation that may be added later.
功能分析
Type: OpenClaw Skill
Name: pencil-to-code
Version: 0.1.0
The OpenClaw AgentSkills bundle 'pencil-to-code' appears benign. Its purpose is clearly defined as exporting .pen designs to React/Tailwind code, and all instructions in SKILL.md and references/node-mapping.md are directly aligned with this goal. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts designed to manipulate the AI agent into harmful or out-of-scope actions. The use of `filePath` in `mcp__pencil__` calls is inherent to the skill's function and does not indicate malicious intent from this skill, though platform-level input sanitization would be critical for such APIs.
能力评估
Purpose & Capability
Name/description (export .pen → React/Tailwind) matches the SKILL.md: all declared operations focus on reading .pen files, extracting tokens, mapping nodes to components, and emitting code. There are no unrelated binaries, credentials, or external service requirements listed.
Instruction Scope
Instructions call platform-style RPCs (mcp__pencil__batch_get, mcp__pencil__get_variables, mcp__pencil__get_screenshot) and operate on a provided .pen filePath or nodeId — this is appropriate for the task. Note: the skill reads user-supplied design files and may request screenshots of frames; users should expect the skill to access the specified design files but the instructions do not attempt to access other system files or environment variables.
Install Mechanism
No install spec and no code files — instruction-only skill. This minimizes on-disk persistence and reduces install-time risk.
Credentials
No environment variables, credentials, or config paths are requested. The operations described (reading .pen, extracting variables, producing code) do not need additional secrets, so the lack of requested credentials is proportionate.
Persistence & Privilege
always is false and the skill does not request persistent system privileges or modify other skills. Autonomous invocation is allowed (platform default) but not combined with broad credentials or privileged behavior.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install pencil-to-code - 安装完成后,直接呼叫该 Skill 的名称或使用
/pencil-to-code触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: Export Pencil .pen designs directly to production-ready React components using Tailwind.
- Converts .pen frame or document to React (default), Vue, or HTML code.
- Extracts Pencil design tokens and generates corresponding Tailwind theme configuration.
- Maps .pen node types (frames, text, images, shapes) to semantic React components with Tailwind classes.
- Supports outputting reusable components and props, with optional screenshot validation.
- Follows strict conventions: no design editing, accessible markup, and CSS-first token mapping.
元数据
常见问题
Pencil To Code 是什么?
Export .pen design to React/Tailwind code. Does ONE thing well. Input: .pen frame ID or file path Output: React component code + Tailwind config Use when: design-exploration or user needs implementation code from a finalized Pencil design. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1203 次。
如何安装 Pencil To Code?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install pencil-to-code」即可一键安装,无需额外配置。
Pencil To Code 是免费的吗?
是的,Pencil To Code 完全免费(开源免费),可自由下载、安装和使用。
Pencil To Code 支持哪些平台?
Pencil To Code 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Pencil To Code?
由 Jcwen(@jcwen)开发并维护,当前版本 v0.1.0。
推荐 Skills