一键导入
ui-color-palette-sketch
Entry point for UI Color Palette workflows targeting Sketch. Use to choose between swatches, shared styles, and document preview generation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Entry point for UI Color Palette workflows targeting Sketch. Use to choose between swatches, shared styles, and document preview generation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ui-color-palette-sketch |
| description | Entry point for UI Color Palette workflows targeting Sketch. Use to choose between swatches, shared styles, and document preview generation. |
| argument-hint | <variables|styles|tokens|preview> |
Use this folder as the platform entry point for all UI Color Palette → Sketch workflows.
SKILL.md at the root is the platform indexreferences/ contains the detailed operational sub-skillsBefore calling any MCP tool, check whether PaletteData is already present in the conversation context.
If it is, use it directly — never call get_palette again. Confirm to the user:
Using the palette already built in this session. Generating Sketch artifacts now.
Only rebuild the palette if the user explicitly asks to change colors, preset, or themes.
This platform skill is primarily a routing and orchestration layer.
The agent should:
references/Do not start from raw API calls. Start from the workflow structure.
references/extract-source-colors.md — extract solid fill colors from the current Sketch selection to seed a palettereferences/extract-styles-colors.md — extract solid fill colors from Sketch shared layer styles to seed a palettereferences/generate-variables.md — generate or sync Sketch primitive swatchesreferences/generate-semantic-variables.md — generate or sync Sketch semantic swatches from SystemData (taxonomy-named swatches with resolved hex values, one per theme)references/generate-styles.md — generate or sync Sketch shared layer stylesreferences/generate-preview.md — draw the palette as a swatch board on the Sketch canvas (canvas rendering only, not swatch/style export)Choose the sub-skill by user intent:
references/extract-source-colors.mdreferences/extract-styles-colors.mdreferences/generate-variables.mdSystemData present in context → references/generate-semantic-variables.mdreferences/generate-styles.mdreferences/generate-variables.md), semantics if SystemData is available (references/generate-semantic-variables.md), then styles (references/generate-styles.md), then preview (references/generate-preview.md)references/generate-preview.mdWhen routing a SystemData-based workflow to references/generate-semantic-variables.md, pass SystemData and PaletteData opaquely. The sub-skill:
systemName/themeName/tokenPathtoken.refs[i].shadeId via PaletteData — Sketch has no alias or reference mechanismisExcluded: true) and unbound refs (shadeId: null) are skippedAn agent should think in terms of the Sketch plugin/document API surface, not only the plugin wrapper:
Use MCP or direct API calls as the execution layer, not as the skill structure.
The plugin bridge files are reference implementations. If the plugin action is unavailable, the agent should reproduce the same behavior directly through Sketch API requests.
Delegate this skill to palette-transitioner.
The palette-transitioner agent normalizes PaletteData into the correct row model for Sketch (swatchRows, styleRows, previewRows), then routes execution through the appropriate Sketch sub-skill.
Define a semantic color system taxonomy and resolve bindings against a palette using get_color_system. Use when the user wants to map semantic token names (role, prominence, state…) to primitive color shades. Produces a SystemData object for use in semantic code generation or design tool deployment.
Entry point for UI Color Palette workflows targeting Figma. Use to choose between variables and styles generation.
Entry point for UI Color Palette workflows targeting Penpot. Use to choose between tokens, styles, and board/document preview generation.
Generate semantic code files alongside primitives by passing a color system configuration to generate_code. Use when the user wants design tokens or code that includes both primitive shades and semantic layer (role/prominence/state mappings). Requires a SystemConfiguration in context or gathered from the user.
Build a full color palette from source colors. Uses get_palette to generate scales and themes, then previews the result visually. Use when the user wants to create a complete palette before auditing, exporting, or deploying it.
Entry point for UI Color Palette workflows targeting Framer. Use to choose between color style synchronization and visual document preview generation.