Skip to content

Latest commit

 

History

History
80 lines (56 loc) · 2.67 KB

File metadata and controls

80 lines (56 loc) · 2.67 KB

OpenPencil Skill

English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Français · Español · Deutsch · Português · Русский

面向 OpenPencil 的 LLM 設計技能 — 教 AI 智慧體使用 op CLI、批量設計 DSL、MCP 工具和設計最佳實踐。

遵循 agentskills.io 規範。

前置要求

使用前需先安裝 op CLI:

brew install zseven-w/openpencil/op
# 或在 macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/ZSeven-W/openpencil/main/scripts/install-op.sh | bash
irm https://raw.githubusercontent.com/ZSeven-W/openpencil/main/scripts/install-op.ps1 | iex

確保有一個正在運行的 OpenPencil 實例(桌面應用或 Web 伺服器)供 op 連接。

安裝

注意: 各平台安裝方式不同,請選擇下方對應的整合方式。

Claude Code(插件市場)

/plugin marketplace add zseven-w/openpencil-skill
/plugin install openpencil-skill@openpencil-skill

Cursor

/add-plugin openpencil-skill

Codex

Fetch and follow instructions from https://raw.githubusercontent.com/zseven-w/openpencil-skill/main/.codex/INSTALL.md

OpenCode

Fetch and follow instructions from https://raw.githubusercontent.com/zseven-w/openpencil-skill/main/.opencode/INSTALL.md

Gemini CLI

gemini extensions install https://github.com/zseven-w/openpencil-skill

包含內容

  • op CLI 命令參考(應用控制、文件操作、節點、匯入、匯出、範本、佈局、頁面、變數、程式碼生成)
  • 批量設計 DSL 與沙箱 JavaScript 模式及完整範例
  • PenNode 結構 — v0.8.4 的所有節點類型(含互動式元件)、屬性與填充
  • 40+ 語義角色及智慧預設值
  • 設計原則 — 字體、配色、間距、陰影
  • 佈局引擎規則與尺寸決策
  • 分層 MCP 工作流(skeleton → content → refine)
  • 程式碼生成管線(plan → submit → assemble → clean)
  • 匯入支援(SVG、HTML 頁面與線上網址、網頁擷取快照、Figma .fig 檔案)
  • 匯出與交付 — 圖片、PDF 及簡報(PowerPoint、自包含 HTML)
  • 場景範本與樣式資產,含你自行匯入的 DESIGN.md 指南
  • 常用模式 — 導覽列、英雄區、卡片、表單、頁尾
  • 常見錯誤表

授權

MIT