skills/pencil-skills/pencil-mcp-set-variables/SKILL.md
Set or update design variables. Use to establish or maintain a Design Token system.
npx skillsauth add teachingai/agent-skills pencil-mcp-set-variablesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill is designed to call the Pencil MCP tool:
set_variablesIf your client namespaces MCP tools, it may appear as mcp__pencil__set_variables.
Even if a trigger phrase matches, you must verify the user's intent:
If the answer is NO, do NOT use this skill. (e.g., "Set variables" might refer to .env files).
CRITICAL PREREQUISITE: You must ONLY use this skill when the user EXPLICITLY mentions "Pencil".
ALWAYS use this skill when:
Trigger phrases include:
filePath (string, optional): Path to .pen file.variables (object, required): The variable definitions matching the .pen schema.replace (boolean, optional):
true: Completely replace all existing variables.false (default): Merge/Update existing variables.set_variables(variables={...}).get_variables to confirm changes.Register a single new color variable.
{
"variables": [
{
"name": "brand/primary",
"value": "#0066FF",
"type": "color"
}
]
}
Update multiple variables for a specific theme (e.g., Dark Mode) by merging.
{
"replace": false,
"variables": [
{ "name": "bg/default", "value": "#121212", "type": "color" },
{ "name": "text/primary", "value": "#FFFFFF", "type": "color" }
]
}
Completely replace the existing variable system with a new set of tokens.
{
"replace": true,
"variables": [
{ "name": "spacing/small", "value": 8, "type": "float" },
{ "name": "spacing/medium", "value": 16, "type": "float" },
{ "name": "font/base", "value": "Inter", "type": "string" }
]
}
English keywords: set variables, update tokens, define theme, design system init, color definition, style dictionary
Chinese keywords (中文关键词): 设置变量, 更新令牌, 定义主题, 设计系统初始化, 颜色定义, 样式字典
development
Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
tools
Provides comprehensive guidance for Flask framework including routing, templates, forms, database integration, extensions, and deployment. Use when the user asks about Flask, needs to create web applications, implement routes, or build Python web services.
development
Provides comprehensive guidance for FastAPI framework including routing, request validation, dependency injection, async operations, OpenAPI documentation, and database integration. Use when the user asks about FastAPI, needs to create REST APIs, or build high-performance Python web services.
development
Provides comprehensive guidance for Django framework including models, views, templates, forms, admin, REST framework, and deployment. Use when the user asks about Django, needs to create web applications, implement models and views, or build Django REST APIs.