This is a standalone composable skill. It works two ways:
- Standalone — user runs
/gsp-colordirectly for palette exploration, contrast checking, or full system design - As a building block — the creative-director invokes
/gsp-color --enrichto add technical precision to creative color choices
Input: Hex colors, --preview, --enrich, or interactive Output: color-system.md chunk + palettes.json (OKLCH scales) Agent: None — inline skill, deterministic palette generation + contrast math
<execution_context> @${CLAUDE_SKILL_DIR}/chunk-format.md </execution_context>
| Input | Mode | Domain |
|---|---|---|
/gsp-color #hex [#hex...] --preview | Preview scales | palette |
/gsp-color #hex [#hex...] | Generate from hex | palette |
/gsp-color --enrich | Enrich existing system | system |
/gsp-color | Interactive full system | system |
Step 1: Load domain
Read the domain file for the detected mode:
- palette mode → Read
${CLAUDE_SKILL_DIR}/domains/palette.md - system mode → Read
${CLAUDE_SKILL_DIR}/domains/system.md
For system mode, also read ${CLAUDE_SKILL_DIR}/references/color-composition.md.
Step 2: Execute domain framework
Follow the loaded domain file's complete workflow — it contains all generation logic, API calls, output formats, and completion steps.
Step 3: Write output
Write color-system.md + palettes.json to the resolved output path (skip if --preview).
Step 4: Summary
Display result summary and offer next steps per the domain file's completion section.