ui-color-palette-build-color-system
Skill1 starsChanged 8 months agoMITView on GitHub
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.
In this repository52 other files it gives its agents.
- gh-cliSkill
- glab-aliasSkill
- glab-apiSkill
- glab-attestationSkill
- glab-authSkill
- glab-changelogSkill
- glab-check-updateSkill
- glab-ciSkill
- glab-clusterSkill
- glab-completionSkill
- glab-configSkill
- glab-deploy-keySkill
- glab-duoSkill
- glab-gpg-keySkill
- glab-helpSkill
- glab-incidentSkill
- glab-issueSkill
- glab-iterationSkill
- glab-jobSkill
- glab-labelSkill
- glab-mcpSkill
- glab-milestoneSkill
- glab-mrSkill
- glab-opentofuSkill
- glab-quick-actionsSkill
- glab-releaseSkill
- glab-repoSkill
- glab-runner-controllerSkill
- glab-runnerSkill
- glab-scheduleSkill
- glab-securefileSkill
- glab-snippetSkill
- glab-ssh-keySkill
- glab-stackSkill
- glab-todoSkill
- glab-tokenSkill
- glab-userSkill
- glab-variableSkill
- glab-versionSkill
- glab-workitemsSkill
- gitlab-cli-skillsSkill
- ui-color-palette-audit-paletteSkill
- ui-color-palette-figmaSkill
- ui-color-palette-framerSkill
- ui-color-palette-generate-codeSkill
- ui-color-palette-generate-semantic-codeSkill
- ui-color-palette-generate-source-colorsSkill
- ui-color-palette-helpSkill
- ui-color-palette-manage-palettesSkill
- ui-color-palette-penpotSkill
- ui-color-palette-scale-paletteSkill
- ui-color-palette-sketchSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Use the ui-color-palette MCP tool get_color_system to resolve a semantic token taxonomy against a generated palette and produce a …
- Distinctive: line 17
Before asking any questions, check the conversation context for existing slots.
- Distinctive: line 35
Do not call the tool until all required answers are collected.
- Distinctive: line 162
Ask what to do next:
- Very specific: line 185
source of truth for shade stops and color ids: always read from the primitive palette (PaletteData or base config).
≈ “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
Build Color System
Use the ui-color-palette MCP tool get_color_system to resolve a semantic token taxonomy against a generated palette and produce a SystemData object.
Semantic code export from the system is handled by ui-color-palette-generate-semantic-code.
Pre-flight — Check session state
Before asking any questions, check the conversation context for existing slots.
If SystemData is already in context
Show a summary (token count, bound / unbound / excluded). Ask: reuse, rebuild, or adjust bindings.
If SystemConfiguration is already in context
Skip Step 0. Call get_color_system directly with the existing base, themes, and system values.
If PaletteData or base + themes are already in context
Skip the palette questions in Step 0.
Step 0 — Gather parameters
Do not call the tool until all required answers are collected.
Required
1. Palette inputs — confirm base and themes are available. If not, run ui-color-palette-scale-palette first.
2. Taxonomy groups — ask for the semantic dimensions that structure the token names.
Each group has an id, a name, and members (each with id and name). The system generates the cartesian product of all groups: 2 groups × 3 members each = 6 tokens; 3 groups × 3 members = 27 tokens.
Common patterns:
| Pattern | Groups | Typical members |
| Role × State | role, state | brand / neutral / danger ; default / hover / active / disabled |
| Role × Prominence × State | role, prominence, state | — ; default / subtle / strong ; — |
| Surface × Content | surface, content | background / border ; primary / secondary / inverse |
3. Theme strategy — before defining bindings, confirm which strategy the user wants:
| Strategy | Description | overrides in bindings |
| A — Primitive modes (recommended) | Themes handled at the primitive level. Semantic tokens use a single binding. get_palette already carries the correct per-theme values at each shade stop. | Almost never — only for deliberate per-theme shade deviations |
| B — Semantic modes | Themes handled at the semantic level. Each token has an explicit binding per theme via overrides. Semantic variable collection has one mode per theme. | Expected on most tokens that differ across themes |
Record the strategy before defining bindings. It determines the binding format and how the semantic collection will be structured in design tools.
4. Bindings (iterative — start with the most important ones) — map token paths to primitive shade refs.
Format: [memberId, memberId, …] → colorId:shadeName (e.g. [brand, default] → blue:500).
Optional per-binding fields:
| Field | Description |
description | Optional label for the token |
overrides | Per-theme alternative ref: { themeId: "colorId:shadeName" } — use for Strategy B, or for deliberate deviations in Strategy A |
isExcluded | true → token stays in SystemData but is skipped during code generation |
Step 1 — Call get_color_system
Tool: get_color_system
| Parameter | Type | Required | Description |
base | object | Yes | BaseConfiguration — same schema as get_palette |
themes | array | Yes | Array of ThemeConfiguration objects |
system | object | Yes | SystemConfiguration — schema + optional bindings |
system.schema
| Field | Type | Description |
groups | array | Ordered list of taxonomy groups (order defines the path depth) |
Each group:
| Field | Type | Description |
id | string | Group identifier (e.g. "role") |
name | string | Display name (e.g. "Role") |
members | array | List of { id: string, name: string } |
system.bindings (optional)
Each binding:
| Field | Type | Description |
path | string[] | Ordered member ids (one per group), e.g. ["brand", "default"] |
description | string | Optional token description |
ref | string | Default primitive ref: "colorId:shadeName" (e.g. "blue:500") |
overrides | Record<string, string> | Per-theme overrides: { themeId: "colorId:shadeName" } |
isExcluded | boolean | true → present in SystemData, excluded from code generation |
Returns: a SystemData object with schema, tokens, and type: "system".
Each token in tokens:
| Field | Description |
path | Member id path (e.g. ["brand", "default"]) |
pathNames | Display name path (e.g. ["Brand", "Default"]) |
description | Optional description from the binding |
isExcluded | Whether excluded from code generation |
refs | { themeId, shadeId }[] — shadeId is "themeId:colorId:shadeName" or null if unbound |
Step 2 — Display the token matrix
After calling get_color_system, produce a readable token matrix. Do not display raw SystemData JSON. Store the raw response opaquely as the SystemData slot — never read, print, or reason from the raw object. The only purpose of SystemData is to be passed as-is to downstream tools (semantic code generation, design tool deployment).
Format — one row per token, one column per theme:
Token | Light | Dark
--------------------------------|--------------------|--------------------
brand / default | blue:500 | blue:400
brand / subtle | blue:200 | blue:700
neutral / default | slate:600 | slate:300
neutral / subtle | — unbound — | — unbound —
neutral / disabled [excluded] | — | —Legend:
colorId:shadeName→ resolved ref for this theme— unbound —→ no binding or ref not found in palette[excluded]→ binding hasisExcluded: true
Finish with a one-line summary: e.g. 12 tokens — 9 bound, 2 unbound, 1 excluded.
Workflow
- Confirm
baseandthemesare available (from context orui-color-palette-scale-palette). - Gather taxonomy groups and members from the user.
- Choose theme strategy — ask before defining bindings:
- Strategy A — Primitive modes: single binding per token, no overrides.
get_palettecarries per-theme values at the primitive level. - Strategy B — Semantic modes: explicit
overridesper theme. Semantic collection has one mode per theme in the design tool.
- Strategy A — Primitive modes: single binding per token, no overrides.
- Gather bindings (iterative — start with a subset, refine after preview).
- Call
get_color_system. - Session state: store result as
SystemDataslot, store the inputsystemconfig asSystemConfigurationslot. Also record the chosen strategy (A or B) — it is needed by deploy steps. - Display the token matrix.
- Ask what to do next:
- Adjust bindings — add, change, or exclude specific tokens, then rebuild
- Generate semantic code →
ui-color-palette-generate-semantic-code - Export to Figma as a semantic variable collection →
ui-color-palette-figma— pass strategy: A = single flat mode on the semantic collection; B = one mode per theme on the semantic collection. - Export to Penpot as semantic token sets →
ui-color-palette-penpot— pass strategy: A = single flat set (systemName); B = one set per theme (systemName/themeName). - Export to Sketch as semantic swatches →
ui-color-palette-sketch— one swatch per theme per token, names encodesystemName/themeName/tokenPath. - Export to Framer as semantic color styles →
ui-color-palette-framer— first theme maps tolight, second todark.
Arguments
$ARGUMENTS can describe the taxonomy structure or the project context.
/ui-color-palette:build-color-system role × state for a design system/ui-color-palette:build-color-system brand + neutral × prominence × interaction
Tips
- ref format:
colorIdis the color'sidfield fromPaletteData, not its display name. - partial bindings are fine: unbound tokens appear in SystemData with
shadeId: null. They show as— unbound —in the matrix. - isExcluded vs unbound:
isExcludedis an explicit design decision (token exists but is intentionally disabled); unbound is a missing binding. - overrides vs primitive cascade:
get_paletteresolves all theme variations at the primitive level — the same shade ref is correct for all themes. Do not add shade-index overrides unless a token intentionally requires a different shade index in a specific theme. - source of truth for shade stops and color ids: always read from the primitive palette (
PaletteDataorbaseconfig). Never assume shade names.
Recommended subagents
palette-color-systemer— guided color system design: pattern suggestion, intelligent binding proposals, iterative refinement,get_color_systemsubmission. Use this instead of running the skill manually when the user needs step-by-step guidance.uicper— orchestrates the full source → palette → system → deploy workflowpalette-codegen— generates semantic code files frombase+themes+system
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.

