scaffold_semantics
Generate properly structured semantic tokens from a component inventory, with CSS property separation and intent coverage.
Instructions
Generate a minimum viable semantic token set from a component inventory. Provide a comma-separated list of components (e.g. 'button, text-input, card, alert') and get properly structured tokens with CSS property class separation, intent coverage, and state completeness.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, show what would be written without actually writing files. Default: false. | |
| format | No | Output format: 'flat' or 'nested' (W3C DT). Default: flat. | |
| outputDir | No | Directory to write generated token files to (relative to project root). If omitted, tokens are returned inline without writing to disk. | |
| components | Yes | Comma-separated component names, e.g. 'button, text-input, card, alert, tabs' | |
| mergeStrategy | No | How to handle existing files: 'additive' (add new, keep existing), 'overwrite', or 'skip'. Default: additive. | |
| splitStrategy | No | How to split tokens across files: 'single' (one file), 'by-context' (per UX context), 'by-property' (per property class). Default: by-context. | |
| valueStrategy | No | How to fill placeholder values: 'reference' (core token refs), 'placeholder' (#TODO), 'empty'. Default: reference. | |
| includeModifiers | No | Include emphasis modifiers (strong/soft/plain) for each intent. Default: false (start minimal). | |
| additionalIntents | No | Comma-separated additional intents beyond defaults, e.g. 'warning,info'. | |
| includeGlobalTokens | No | Include global (context-free) semantic tokens like background.base, text.accent. Default: true. |