pencil-skill-creator
Skill0 starsChanged 10 months agoApache-2.0View on GitHub
Factory skill for creating new pencil-ui-design-system-* skills. Use when you need to add support for a new design system layui antd bootstrap element uview uviewpro vant ucharts echarts etc. to the Pencil ecosystem.
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
- pencilSkill
- pencil-ui-designerSkill
- pencil-ui-design-spec-generatorSkill
- 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
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
All design-system skills created by this creator MUST adhere to:
- Distinctive: line 22
Keep this file concise. Use bundled references when you need full details:
- Very specific: line 31
Use the bundled script to automatically generate the skill structure, SKILL.md (with Golden Template), and references/ placeholders.
- Very specific: line 42
Create references/contract.md, references/official.md, references/examples.md placeholders.
- Very specific: line 47
Follow: references/workflows.md -> Manual creation.
- Distinctive: line 67
Constraint: Only use when user explicitly mentions Pencil or design system initialization.
- Very specific: line 71
Best practices: Verify tokens against official docs.
≈ “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 Skill Creator
This skill guides the creation of new pencil-ui-design-system- skills*. Each skill initializes a design system in Pencil (variables + component overview frames) via PENCIL_PLAN.
Core Philosophy
All design-system skills created by this creator MUST adhere to:
- Trigger: The skill triggers when the user explicitly mentions Pencil and the target design system (e.g. "init layui design system with Pencil").
- Action-level plan: Output a PENCIL_PLAN (Step 1: set_variables; Step 2: batch_design component overview). Do not execute; output the plan for the Agent to call Pencil MCP tools.
- Self-contained: The skill encapsulates design tokens (colors, typography, radius) and component categories from the official design system docs.
Workflow (Progressive Disclosure)
Keep this file concise. Use bundled references when you need full details:
- Workflow:
references/workflows.md - Output patterns:
references/output-patterns.md
Quick start (Automated Creation)
Option A: Automated Creation (Recommended)
Use the bundled script to automatically generate the skill structure, SKILL.md (with Golden Template), and references/ placeholders.
# Usage: ./scripts/init_pencil_design_system_skill.py <name> --path <skills-directory>
./scripts/init_pencil_design_system_skill.py layui --path skills/This will:
- Create
skills/pencil-ui-design-system-layui. - Populate
SKILL.mdwith the required structure (When to use, Step 1 Variables, Step 2 Component overview). - Create
references/contract.md,references/official.md,references/examples.mdplaceholders. - Copy
LICENSE.txtfrom an existing skill.
Option B: Manual Creation
Follow: references/workflows.md -> Manual creation.
Step 1: Define the design system
Identify the framework and name the skill: pencil-ui-design-system-<name> (kebab-case).
- Example: "layui" ->
pencil-ui-design-system-layui - Example: "uview pro" ->
pencil-ui-design-system-uviewpro
Step 2: Create directory structure
mkdir -p skills/pencil-ui-design-system-<name>/referencesStep 3: Write SKILL.md (Golden Template)
You MUST use the following template structure for the new skill:
- Frontmatter:
name: pencil-ui-design-system-{{name}}, description containing "初始化 {{design_system}}: design system components". - Constraint: Only use when user explicitly mentions Pencil or design system initialization.
- When to use: Trigger keywords (e.g. layui, antd).
- Step 1: Variables: Table of variables for
set_variables(colors, fonts, radius). Follow .pen schema. - Step 2: Component overview: List of frames/categories to create via
batch_design(component categories and component names per category). - Best practices: Verify tokens against official docs; use
replace: falseunless full reset; use Auto Layout for frames. - Keywords: pencil, design system, init,
<framework-name>.
Step 4: Fill references
references/contract.md: Design tokens and component contracts (prefix, naming).references/official.md: Link to official documentation.references/examples.md: Example PENCIL_PLAN or usage.
Integration with Pencil path
This skill is part of the Pencil specification flow:
- PRD -> pencil-ui-design-spec-generator outputs PENCIL_PLAN.
- pencil-ui-design-system-* skills output the concrete variables + component structure for a given design system.
- Agent calls Pencil MCP tools (
open_document,set_variables,batch_design,get_screenshot) in order.
Naming validation
Script enforces: pencil-ui-design-system-[a-z0-9]+(-[a-z0-9]+)*.
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.

