pencil-ui-design-spec-generator
Skill0 starsChanged 10 months agoApache-2.0View on GitHub
Translates vague user requirements into an action-level PENCIL_PLAN sequence of Pencil MCP tool calls . Does not execute; outputs the plan only.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- pencil-design-from-stitch-htmlSkill
- pencil-mcp-batch-designSkill
- pencil-mcp-batch-getSkill
- pencil-mcp-find-empty-space-on-canvasSkill
- pencil-mcp-get-editor-stateSkill
- pencil-mcp-get-guidelinesSkill
- pencil-mcp-get-screenshotSkill
- pencil-mcp-get-style-guideSkill
- pencil-mcp-get-style-guide-tagsSkill
- pencil-mcp-get-variablesSkill
- pencil-mcp-open-documentSkill
- pencil-mcp-replace-all-matching-propertiesSkill
- pencil-mcp-search-all-unique-propertiesSkill
- pencil-mcp-set-variablesSkill
- pencil-mcp-snapshot-layoutSkill
- pencil-skill-creatorSkill
- pencilSkill
- pencil-ui-designerSkill
- pencil-ui-design-system-antdSkill
- pencil-ui-design-system-bootstrapSkill
- pencil-ui-design-system-echartsSkill
- pencil-ui-design-system-elementSkill
- pencil-ui-design-system-layuiSkill
- pencil-ui-design-system-uchartsSkill
- pencil-ui-design-system-uviewproSkill
- pencil-ui-design-system-uviewSkill
- pencil-ui-design-system-vantSkill
- pencil-{category}-{scenario}Skill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Constraint: Only use this skill when the user explicitly mentions "Pencil" or when orchestrating a Pencil design task (e.g.
- Very specific: line 56
New document: If the user asks to "create" or "init" and no file is open, start with open_document('new') and optionally get_editor_state.
- Very specific: line 57
Design system init: If the user asks to "init XXX design system", include set_variables (from the corresponding pencil-ui-design-system-* …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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, ...)").
Example:
PENCIL_PLAN
Step 1: mcp__pencil__open_document
Intent: Create a new design document.
Parameters: filePathOrTemplate: 'new'
Step 2: mcp__pencil__get_editor_state
Intent: Get current document root and reusable components.
Parameters: include_schema: false
Step 3: mcp__pencil__set_variables
Intent: Initialize design system color palette.
Parameters: variables: { primary: '#1890ff', ... }, replace: false
Step 4: mcp__pencil__batch_design
Intent: Create "Components Overview" frame with Basic/Form/Data sections.
Parameters: operations: "root=I(document, { type: 'frame', layout: 'vertical', name: 'Components Overview' }) ..."
Step 5: mcp__pencil__get_screenshot
Intent: Verify the generated layout.
Parameters: nodeId: <root-id from Step 4>Logic rules
- New document: If the user asks to "create" or "init" and no file is open, start with
open_document('new')and optionallyget_editor_state. - Design system init: If the user asks to "init XXX design system", include
set_variables(from the corresponding pencil-ui-design-system-* skill) andbatch_designfor component overview; optionally callget_guidelines(topic: 'design-system')first. - Single screen / form: Plan
batch_designoperations (insert frames, text, components); keep each call to at most ~25 operations; thenget_screenshotto verify. - No execution: This skill only outputs the PENCIL_PLAN. The Agent (or user) executes by calling the listed MCP tools in order.
Integration with Pencil path
- PRD or user request → this skill outputs PENCIL_PLAN.
- pencil-ui-design-system-* skills provide the concrete variables and component structure for a given design system; the generator may reference them when building the plan.
- Agent calls pencil-mcp-* skills (or MCP tools directly) to execute each step.
Keywords
English: PENCIL_PLAN, Pencil plan, action-level plan, design spec, Pencil steps, MCP tool sequence, plan generator
中文关键词: PENCIL_PLAN、Pencil 计划、动作级计划、设计规范、Pencil 步骤、MCP 工具序列、计划生成
References
- Pencil MCP 工具说明 — 各 MCP 方法参数与用法。
- Pencil MCP — 官方 MCP 说明。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

