/tableau-dashboard-plugin:tableau-brandfrom Tableau Dashboard Plugin
Extracts design tokens (palette, type, spacing) into DESIGN-TOKENS.md for a Tableau dashboard plugin workflow. Reads branding specs or runs a brand interview. Step 4 of 8.
Ships in Tableau Dashboard Plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Step 4 of 8. Turns the analyst's branding into a DESIGN-TOKENS.md — the single
source of truth for palette, type, and spacing that tableau-mock (the HTML
demo) and tableau-build (the .twb) both consume.
| Reads | The analyst's branding/ (lowercase input): branding/branding.md (spec, preferred), an org template branding/*.twb, and any branding/logo.* / branding/icons/. Falls back to the scaffold/branding/EXAMPLE-branding.md demo. No required read — branding is an input, so this step never refuses for a "missing" file (CONTRACT.md §1). |
| Writes | DESIGN-TOKENS.md at the project root (latest approved truth; overwritten in place). May also author branding/branding.md from a scraped .twb or the brand interview. |
| STATE.md update | Sets brand = approved (tokens authored) or skipped; flips every downstream approved step to stale on a re-run (CONTRACT.md §4.2). |
| Entry gate | Refuses to run until init is approved in STATE.md (CONTRACT.md §4.1). |
| Next step | tableau-plan (or tableau-route to confirm). |
Tell the analyst this step matters. Branding is what lets the later steps know how to build the mock and how to write a precise Tableau implementation spec. Don't skimp on the palette, the fonts, the padding, the sizing — vague branding here produces a bland, generic dashboard downstream. This is why the step can only be skipped once
branding/branding.mdexists (see below): the analyst must capture at least some brand intent before opting into neutral styling.
The mechanical guarantees — the entry gate, the DESIGN-TOKENS.md schema check, the
skip precondition, and the STATE.md transition — live in brand.py, this skill's
executable mirror of the contract. Your job is the part that needs judgment: reading
the branding (or interviewing for it) and authoring the tokens. Run the script at the
two points below; do not hand-edit STATE.md yourself.
Precheck. From the project directory, run:
python "${CLAUDE_PLUGIN_ROOT}/skills/tableau-brand/scripts/brand.py" precheck "<project-dir>"
(Use python3 if python is unavailable.) If it prints [BLOCKED], relay the
reason and stop — the analyst must run tableau-init first. Otherwise note
its signals: whether a DESIGN-TOKENS.md already exists (refine vs overwrite),
the source mode, any logo/icon assets to integrate, and whether skip is
allowed.
Refine vs overwrite. If precheck reports DESIGN-TOKENS.md already exists,
use AskUserQuestion to offer Refine (keep its structure, update values),
Overwrite (author fresh), or Skip (only if allowed). Never silently
overwrite existing tokens.
Follow the source mode precheck reported:
| source mode | what to do |
|---|---|
spec | Extract tokens from branding/branding.md. |
spec+twb | Scrape the org branding/*.twb and use it to enrich the existing branding/branding.md (don't discard the analyst's spec), then build tokens. |
twb | Scrape the org branding/*.twb, write branding/branding.md from what you find, then build tokens. |
scaffold | Only the scaffold/ demo example exists — say so (you're demoing, not using real brand input). |
none | Run the brand interview (next section), write branding/branding.md from the answers, then build tokens. |
When a .twb is involved: before reading it, ask the analyst to confirm
the workbook is as thin as possible (a minimal template — ideally one styled
sheet/dashboard, no large data extracts or dozens of sheets). A heavy .twb
floods the context with irrelevant XML. Scrape only what feeds design tokens:
fonts, colors (fills, text, series palette), sizing, container/spacing structure,
and any embedded logo (<zone type='bitmap'>).
Brand interview (source mode none only). When there is no branding input at
all, do not leave the brand blank — interview the analyst, borrowing the
grill-me approach but bounded to at most 10 questions. Ask one at a time,
propose a recommended default for each (from
references/tableau-design-tokens.md), and choose the questions that recover the
most token-relevant information: primary/secondary colors, a cohesive ≤5-color
series palette, font family (default the Tableau family), title vs label sizing,
card padding / section spacing, dashboard sizing mode, and whether a logo/icons
exist. Prefer AskUserQuestion (multiple-choice with your recommendation
first). Write the answers into branding/branding.md, then build tokens.
Author DESIGN-TOKENS.md. Write (or Edit, when refining) DESIGN-TOKENS.md
at the project root using references/DESIGN-TOKENS-TEMPLATE.md as the structure.
Fill palette/type/spacing from the branding source. For every value the brand
did not specify, pull the Tableau default from
references/tableau-design-tokens.md and list it under ## Fallback Decisions
— that section is how the analyst sees which visual choices were guessed (it is
required; if nothing was guessed, write "None"). Integrate any logo/icons precheck
found. Present the tokens for approval.
Commit — only after the analyst approves (or chooses to skip):
python "${CLAUDE_PLUGIN_ROOT}/skills/tableau-brand/scripts/brand.py" commit "<project-dir>" --status approved
# or, to skip the step (allowed only once branding/branding.md exists):
python "${CLAUDE_PLUGIN_ROOT}/skills/tableau-brand/scripts/brand.py" commit "<project-dir>" --status skipped
On --status approved the script validates DESIGN-TOKENS.md has the required
core; if it prints [REFUSED] listing missing sections, add them and re-run. On
--status skipped it refuses unless branding/branding.md exists. On success it
records the status and reports any downstream steps it marked stale. Relay the
summary and tell the analyst to open a fresh conversation and run the next step
(tableau-plan, or tableau-route to confirm).
brand.py enforces the required core; the rest is recommended-but-optional.
| section | required? | what goes there |
|---|---|---|
## Colors | required | Backgrounds, accent bars, a cohesive ≤5-color series palette, text colors. |
## Typography | required | Font family + sizes/weights for title, chart title, labels, tooltips. Font family is a machine value - tableau-build copies it into every text run's fontname=, so it must be one installed family, weight included: Tableau Bold | Tableau Book | Tableau Light | Tableau Medium | Tableau Regular | Tableau Semibold. There is no font called plain Tableau; keep availability notes in prose, not in the value. |
## Spacing | required | Card padding, section spacing, container margins, accent-bar height. |
## Fallback Decisions | required | Every value pulled from a Tableau default, flagged as guessed (or "None"). |
## Source | optional | Which branding source produced these tokens. |
## Dashboard Sizing | optional | Mode (default Range), min width/height, max (default Flex). |
## Logo / ## Icons | optional | Brand assets to integrate; omit when none. |
The validator matches headings as case-insensitive substrings and allows extra custom sections, so a refined token file that keeps its own structure still passes.
skipped in STATE.md
and yields neutral styling downstream (mock/build read DESIGN-TOKENS.md as an
optional input — absent ⇒ neutral, CONTRACT.md §1). But skip is only offered once
branding/branding.md exists, so the analyst can't bypass branding with zero brand
intent on file.references/tableau-design-tokens.md): the native
Tableau font family (Bold/Medium/Light); a cohesive ≤5-color palette (a
dashboard speaks one color language); Range sizing with no max (Flex), not
Automatic; worksheet headers hidden with the visible title as a Text object;
a collapsible filter panel via a Show/Hide button.DESIGN-TOKENS.md in
place and flips downstream approved steps to stale; it does not create a new
version directory (DESIGN-TOKENS.md is a root "latest truth" file, CONTRACT.md §4.3).The full
STATE.mdschema and the ordering / staleness / versioning rules live inCONTRACT.mdat the repo root. This skill restates only its own slice;brand.pyis the executable mirror of the contract it enforces.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/tableau-buildBuilds the Tableau workbook for the tableau-dashboard-plugin workflow from the approved IMPLEMENTATION-SPEC.md and DATA-MODEL.md, producing a Replace-Data-Source-ready dashboard.twbx beside the mock it was specced from. Derives a machine-readable build manifest (datasources, worksheets with chart type and shelves/encodings, the spec's layout container tree, actions, parameters, and the project's target Tableau version) and schema-validates it fail-fast, so an unknown chart type, an element id missing from the layout, or a field that is not in the data model is caught with the offending entry named before any XML is generated. Reads the approved IMPLEMENTATION-SPEC.md at the current version, DATA-MODEL.md, and the CSVs under data/. Use when the user wants to build the workbook, generate the twbx, or when tableau-route reports build is next. Step 8 of 8 in the workflow./tableau-dataAcquires the data for a tableau-dashboard-plugin project and writes the DATA-MODEL.md handoff artifact. CSV mode (the default, zero-credential path) profiles the analyst's data/*.csv into documented field names + types and validates that headers match exactly; the scaffold/sample-data/ demo CSVs are the fallback. The published-ds route (datasources.json + .env) samples published sources through the VizQL Data Service into data/*.csv. Use when the user wants to acquire or model dashboard data, build DATA-MODEL.md, or when tableau-route reports data is next. Step 3 of 8 in the workflow.npx claudepluginhub lavidrori0702/tableau-dashboard-creator-skill --plugin tableau-dashboard-pluginOther plugins' skills for the same job