/tableau-dashboard-plugin:tableau-specfrom Tableau Dashboard Plugin
Translates an approved HTML mock into a Tableau implementation spec, mapping elements to primitives and generating a JSON layout tree. Step 7 of 8 in the tableau-dashboard-plugin workflow.
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 7 of 8, and non-skippable. It turns the approved mock.html into either a
machine-readable IMPLEMENTATION-SPEC.md for tableau-build, or a Desktop build guide
for an analyst who will author in Tableau Desktop. Choose the route once via spec_mode.
| Reads | Required: mock-version/<v_N>/mock.html (from mock); DASHBOARD-PLAN.md (from plan). |
| Writes | Agent: mock-version/<v_N>/IMPLEMENTATION-SPEC.md. Human: root IMPLEMENTATION-SPEC.md + spec/ tree. |
| STATE.md update | Records spec_mode (agent | human) on first run via set-mode; sets spec = approved; on human also sets build = skipped. On agent re-run, flips an approved build to stale. Does not bump current_version. |
| Entry gate | plan + DASHBOARD-PLAN.md resolved; mock + mock.html at current_version. Agent route also blocks multi-view plans (one-dashboard builder limit). |
| Next step | Agent → tableau-build. Human → pipeline complete (build skipped). |
spec_mode) — do this first| mode | Meaning |
|---|---|
agent | Machine spec (Element Mapping + ## Layout) for tableau-build. Default when unset. |
human | Desktop build guide (root guide + spec/ tree). tableau-build is skipped. |
Run precheck — it reports the recorded spec_mode, or that it is unset:
python "${CLAUDE_PLUGIN_ROOT}/skills/tableau-spec/scripts/spec.py" precheck "<project-dir>"
If unset, ask the analyst once (agent or human), then record it:
python "${CLAUDE_PLUGIN_ROOT}/skills/tableau-spec/scripts/spec.py" set-mode "<project-dir>" --mode agent
(or --mode human). Do not hand-edit STATE.md. Later runs do not ask again.
Detail for each route is below; templates hold the full shape.
Author mock-version/<v_N>/IMPLEMENTATION-SPEC.md from
references/IMPLEMENTATION-SPEC-TEMPLATE.md.
data-plan-id (exact id match).## Layout fenced JSON container tree (canvas, vert/horz, percentage sizes).python "${CLAUDE_PLUGIN_ROOT}/skills/tableau-spec/scripts/spec.py" validate "<project-dir>"
python "${CLAUDE_PLUGIN_ROOT}/skills/tableau-spec/scripts/spec.py" commit "<project-dir>"
Show the reconciliation checklist to the analyst before asking for approval. Commit only after they approve.
Author a Desktop guide from references/HUMAN-IMPLEMENTATION-SPEC-TEMPLATE.md:
IMPLEMENTATION-SPEC.md: decision register with rationale, seams, numbered
build order (parameters before calculated fields that read them; patterns before the
sheets that instantiate them), verification checklist, open-items register.spec/dashboards/<view>.md per declared view: prose tile table, sidebar blocks, sizing rules
(range sizing with a minimum; tiled percentage containers; never floating), and
per-sheet slot tables (Text / Colour / Rows / Columns / Filter / Tooltip).Element: <id> line somewhere in the tree. Show the coverage checklist to the analyst
before asking for approval.spec/dashboards/shared-sidebar.md (optional) when header/sidebar/nav is shared across views.spec/patterns.md only when two or more sheets share a Pattern: <name>; omit
empty support pages rather than stubbing them.calculations.md, parameters.md, fields.md.python "${CLAUDE_PLUGIN_ROOT}/skills/tableau-spec/scripts/spec.py" commit "<project-dir>"
On success: spec = approved, build = skipped. Re-running mock still stales spec;
re-running spec overwrites the root guide in place.
STATE.md.demo/human-route/ (Sales Performance).CONTRACT.md at the repo root.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/tableau-brandExtracts design tokens (palette, type, spacing) into DESIGN-TOKENS.md for the tableau-dashboard-plugin workflow, so the mock and the Tableau workbook match the brand. Reads the analyst's branding/ (a branding.md spec and/or an org template .twb, plus logo/icons), or runs a short brand interview when none exists. Every value guessed from a Tableau default is flagged. Skippable only once branding/branding.md exists. Use when the user wants to set up branding/design tokens, or when tableau-route reports brand is next. Step 4 of 8 in the workflow./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.npx claudepluginhub lavidrori0702/tableau-dashboard-creator-skill --plugin tableau-dashboard-pluginOther plugins' skills for the same job