一键导入
style-tune
Use when the user wants to adjust the visual feel of a component or theme role — 'warmer button', 'softer card', 'bolder primary', 'calmer alert'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user wants to adjust the visual feel of a component or theme role — 'warmer button', 'softer card', 'bolder primary', 'calmer alert'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user asks to generate, create, or scaffold an Alert — accessible status/error/info/warning notification with ARIA live regions and icon support.
Use when the user asks to generate, create, or scaffold a Card — accessible content container with header/body/footer slots and interactive variant support.
Use when the user asks to generate, create, or scaffold a Checkbox — accessible checkbox with indeterminate state, aria-checked, custom indicator, and Input dependency.
Use when the user asks to generate, create, or scaffold a Dialog — accessible modal dialog with focus trap, aria-modal, return-focus on close, and Button dependency.
Use when the user asks to generate, create, or scaffold a Field — accessible form field wrapper with label, hint, and error message association via aria-describedby.
Use when the user asks to generate, create, or scaffold an Input — accessible text/number/email input with aria-invalid, error state, and controlled/uncontrolled patterns.
| name | style-tune |
| description | Use when the user wants to adjust the visual feel of a component or theme role — 'warmer button', 'softer card', 'bolder primary', 'calmer alert'. |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion |
| metadata | {"version":"0.5.0"} |
Route a natural-language aesthetic intent ("warmer button", "softer card", "deeper accent") to either a theme-role OKLCH edit or a component SCSS token edit. The full workflow for each layer lives in the parent skill; this router handles intent parsing and dispatch.
Call ExitPlanMode before parsing intent. Both downstream paths write to disk — /theme-update edits theme CSS, component-layer edits SCSS in place, and OKLCH scripts run via Bash. Plan mode blocks all of these.
Stay in plan mode only when the user explicitly asked for a preview ("show me the deltas", "don't apply yet"). In that case, narrate the resolved (modifier, token-family, layer) tuples from Step A without invoking Write/Edit/Bash, and wait for approval.
Read ${CLAUDE_PLUGIN_ROOT}/skills/style-tune/references/intent-vocabulary.md. Each row maps a modifier (and synonyms) to a token family + canonical delta + "var-only fallback" route.
Parse the prompt for vocabulary matches. Each match yields a (token-family, delta, layer-hint) tuple. Record all matches before dispatching.
| Subject in prompt | Layer | Follow |
|---|---|---|
primary, accent, danger, warning, info, success, brand, theme, app | theme | styles/SKILL.md — Style-Tune Mode |
button / btn, card, alert, dialog, input, nav, form | component | components/SKILL.md — Style-Tune Mode |
bare this / it / the component / everything | ambiguous | AskUserQuestion |
"This button" / "the button" / "buttons" always map to a global SCSS edit — never inline style={...} props.
Use AskUserQuestion (≤ 4 options) when:
For unambiguous prompts, skip A3 and dispatch immediately.
After the layer workflow completes, print:
Layer: <theme | component | both>
Files: <list>
Modifier Token / Role Old New Status
warmer --color-primary #2563eb #3265ec accepted
warmer --color-primary-hover #1e4dc7 #294fc8 accepted
softer --btn-radius 0.375rem 0.5625rem accepted
calmer --color-danger #dc2626 #d8413b reverted (contrast)
Notes:
- <any var-only fallback routing notes or drift warnings from the layer workflow>
Next:
- Try "now go a touch sharper" to dial back radius.
- Or use /theme-update for explicit hex values.
Always include the "Next" hint so users know iteration is cheap and bounded.