pencil-ui-design-spec-generator
Installation
SKILL.md
Pencil UI Design Spec Generator
Constraint: Only use this skill when the user explicitly mentions "Pencil" or when orchestrating a Pencil design task (e.g. "use Pencil to draw", "initialize design system with Pencil").
Purpose
This skill acts as a planner. It takes a high-level user request (e.g. "create a login form in Pencil", "init layui design system with Pencil") and outputs a PENCIL_PLAN: a strict sequence of steps, each step specifying which Pencil MCP tool to call and with what intent/parameters. The Agent then executes the plan by calling Pencil MCP tools in order; this skill does not call any MCP tool.
Input
- User request: e.g. "Create a login form with Pencil", "Initialize uView Pro design system in Pencil", "Draw a dashboard layout in Pencil".
Output format (STRICT)
Return a PENCIL_PLAN as a numbered list. Each step must specify:
- Tool (MCP tool name, e.g.
mcp__pencil__open_document,mcp__pencil__set_variables,mcp__pencil__batch_design,mcp__pencil__get_screenshot). - Intent: What this step achieves.
- Key parameters: Minimal parameter summary (e.g.
filePathOrTemplate: 'new',variables: { primary: '#1890ff', ... },operations: "root=I(document, ...)").