view-tableau-dashboard
/view-tableau-dashboard
Czyta i steruje żywymi dashboardami Tableau: filtry, parametry, dane i zaznaczanie znaczników w przeglądarce przez Embedding API.
- Autor
- action-co ↗
- Repozytorium
- skills ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 19.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 47
- Skrypty
- 28
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 19.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 28 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: e2e-smoke.ts, scripts/commission-plan.js, scripts/customers-top3.js, scripts/explore.js, scripts/overview-state-ranking.js, scripts/performance-outliers.js, scripts/product-peak-months.js, scripts/shipping-delays.js, src/bridge.test.ts, src/bridge.ts, src/cli.test.ts, src/cli.ts, src/client/executor.ts, src/client/metadata-loader.ts, src/client/snapshot.ts, src/demo-scripts.test.ts, src/executive-
Co robi i kiedy
Czyta i steruje żywymi dashboardami Tableau: filtry, parametry, dane i zaznaczanie znaczników w przeglądarce przez Embedding API.
Oryginalny opis (EN)
Use this skill to interact with live Tableau dashboards and views to retrieve trusted data from the visual interfaces that human users rely on for decision-making. It allows reading and applying filters, getting and setting parameters, retrieving data, and selecting marks programmatically by evaluating agent-generated JavaScript in a browser tab with the Tableau Embedding API. Do not use this for querying Tableau data sources (use query-tableau-data instead).
Jak działa
- Canonical workflow
- Setup & auth
- Human alignment
- Discovering what drives a dashboard
- Reusable scripts
- Serving artifacts (HTML reports, exports)
- CLI surface
- Multi-session & fan-out
- Safety
- Docs
Podgląd SKILL.md
---
name: view-tableau-dashboard
description: Use this skill to interact with live Tableau dashboards and views to retrieve trusted data from the visual interfaces that human users rely on for decision-making. It allows reading and applying filters, getting and setting parameters, retrieving data, and selecting marks programmatically by evaluating agent-generated JavaScript in a browser tab with the Tableau Embedding API. Do not use this for querying Tableau data sources (use query-tableau-data instead).
license: Apache-2.0
metadata:
authors: "ip-agent-skills@action.co"
version: "0.2.0"
tags: ["tableau", "data", "analytics", "visualization", "chart"]
---
# View Tableau Dashboard
A CLI-to-browser bridge: `tableau-viz` embeds a Tableau view in a browser tab and evaluates
agent-authored JavaScript against the live viz via the Embedding API v3. You drive the
dashboard the way a human would — filters, parameters, mark selection, data reads — and the
values you read are live, from the same canonical views humans use for decisions.
## Canonical workflow
Do this in order. Do not re-explore what the semantic model already tells you.
**0. Start with the semantic model — always.** `tableau-semantics` owns the
governed model for this workbook/view (`<site>/workbooks/<Workbook>/<Workbook>.<View>.md` + `.derived.json`).
**When a model exists, reading it first is mandatory:** it answers the static
questions (meaning, sheets, KPIs, filters, parameters, driving mechanics, gotchas),
so you spend evals only on *dynamic* values — current filter state, domains, and the
numbers — instead of rediscovering the dashboard. Match by `asset.url` /
`structure.sheets[].url`, or the host-free `asset.urlSlug`.
**No model? Bootstrap one before you act** — run `tableau-semantics` →
`docs/BOOTSTRAP.md` (derive, draft the behavioral `.md` from live observation, then
**confirm with the user**). Infer the dashboard when the user can't describe it, but
don't silently trust an unconfirmed model.
**1. Embed the view in a tab.**
```bash
./tableau-viz.sh start --url <viz-url> --script explore
```
Public views (`public.tableau.com`) need no auth. Authenticated Cloud/Server views: the
human signs in to the embed's own in-frame auth once (or the site provides a connected-app
token). `start` always opens a tab and prints the session id + tabUrl.
> Note: **Viz URL format:** the CLI normalizes any Tableau view URL to the canonical embed path
> (`https://<host>/t/<site>/views/<Workbook>/<View>`, or `/views/...` on Public) — browser
> address-bar URLs (`#/site/<site>/views/...`) work too. Multi-word sheet names are
> **slugified** in the URL (spaces removed: "What If Forecast" → `WhatIfForecast`), so to
> address a specific sheet read its `url` field from the snapshot (`helpers.listSheets()`),
> never construct the view name from the display name.
**2. Block until the viz is interactive.**
```bash
./tableau-viz.sh wait
```
You get the instant snapshot (workbook, sheets, filters, parameters) and, if a script was
scheduled, its result. This confirms you are on the right viz before you act.
**Auth-aware loading:** when a Cloud/Server view needs sign-in, the embed reveals Tableau's
in-frame login and the session reports an `auth` state. `wait` treats `auth` as non-terminal — it keeps
waiting while the human signs in instead of erroring — and resumes once the viz is interactive.
The 30s watchdog only applies while the viz is actually loading, never while waiting on sign-in.
**3. Drive the viz with evals.** `viz`, `workbook`, `activeSheet`, `helpers`, and `meta`
are in scope for every eval. Every eval/run REQUIRES `--intent <text>` — a short
human-readable description of what the code does, shown as a notification on the viz page.
```bash
./tableau-viz.sh eval 'return helpers.listSheets()' --intent "Reading the sheet list" -f json
./tableau-viz.sh eval 'return helpers.getFilters()' --intent "Reading current filters" -f json
./tableau-viz.sh eval 'return helpers.applyCategoricalFilter("Table", "Region", ["APAC"], "replace")' --intent "Filtering Region to APAC" -f json
./tableau-viz.sh eval 'return helpers.readVizData("Table", { maxRows: 500 })' --intent "Reading summary data" -f json
```
**Batch your evals.** One eval per logical step; loop dynamic values in-page (e.g. a
country domain) instead of one round-trip per value. Get the job done in as few evals as
possible — do not "peek" at things you can read from the semantic model or the snapshot.
**4. Keep the session open for the conversation; stop when the work is done.**
The bridge keeps a live tab alive indefinitely (heartbeat ping/pong every 15s),
so a session does not time out between turns — keep it open across a dialogue
with the user. Stop only when the work is truly finished: end of an automation
run, or the human is done. Do not stop/start per turn.
```bash
./tableau-viz.sh stop --session <id> # close one tab
./tableau-viz.sh stop # stop the bridge + all sessions
```
Run `./tableau-viz.sh --help` for the full command surface.
## Setup & auth
Requires [Bun](https://bun.sh); run everything through `./tableau-viz.sh` (installs deps on first run; honors `NODE_EXTRA_CA_CERTS` for a corporate CA).
- **Tableau Public** — no auth; nothing to set up.
- **Authenticated Cloud/Server** — a human completes Tableau's in-frame sign-in once in
the tab (or the site provides a connected-app token); `wait` tolerates the `auth` state.
- **Browser** — `start` prefers **Chrome** (macOS), which authenticated embeds need:
Tableau's in-frame sign-in opens an SSO popup that Safari blocks for cross-origin iframes.
Browser quirks, SSO/cross-origin-iframe failures, and CA/TLS fixes: [`docs/TROUBLESHOOTING.md`](docs/TROUBLESHOOTING.md).
## Human alignment
The viz renders in a real browser tab on the user's machine — they watch you drive it.
Every `eval`/`run` requires `--intent <text>` so the user always sees why you are doing
what you are doing. Read-only commands (`meta`, `summary`, `describe`, `filter`) and
scheduled scripts toast automatically. There is no headless mode: a tab must be open for
the viz to be accessible (`start --no-open` only skips auto-opening the browser).
Sometimes you need the user, not just their attention: they must log in, confirm
something on the dashboard before you act, or you are auth-confirmed and fanning out
sub-agents who each need a nudge. `say` posts a one-way agent→human message as a toast
labeled **"Agent message"** on the session's tab — no eval, no `--intent`, works even
while the session sits in `auth` waiting on sign-in.
```bash
./tableau-viz.sh say 'Please log in — I will continue once you are signed in.'
./tableau-viz.sh say 'Confirm the Regional split is correct before I proceed' --hold
```
Default auto-dismisses after ~4s; `--hold` keeps the toast until the user dismisses it
(use it for anything you actually need them to act on).
## Discovering what drives a dashboard
Dashboards are interactive three ways: filters, parameters, and **mark selection**
(a human clicks a mark and other worksheets filter). Filters and parameters appear in the
`wait` snapshot; selection is a click you replicate, not a filter you apply. **You will
need to work out how a given dashboard drives itself** — especially with no semantic
model, since the model is where this is normally recorded; with a model, most of it is there.
The tell is `Action (<field>)` filters on the *target* worksheets: drive the **source**
worksheet with `helpers.selectMarks(...)` (never `applyFilterAsync`), read the others,
then reset with `clearSelectedMarksAsync()`. Mechanics: [`docs/EMBEDDING_API.md`](docs/EMBEDDING_API.md) §12.
## Reusable scripts
Author a named eval body once, run it by name forever (`scripts/<name>.js` +
`scripts.json`, then `run <name>` or `start --script <name>`). **Read
[`docs/SCRIPTS.md`](docs/SCRIPTS.md) before authoring or registering one** — the
eval-body contract, the `onInteractive` flag, and the `kind: "workflow"` shape.
**Shipped demo scripts** — one named script per Superstore view (all Tableau Public,
no auth), each self-contained and restoring the viz to its default state:
| Script | View | Question it answers |
| ------ | ---- | ------------------- |
| `overview-state-ranking` | Overview | Top/bottom states by profit ratio and sales + headline KPIs |
| `product-peak-months` | Product | Peak/trough sales month per region × category |
| `customers-top3` | Customers | Top 3 customers per category × segment |
| `shipping-delays` | Shipping | Worst-delay order line per ship mode (full history) |
| `performance-outliers` | Performance | Biggest overshoot/shortfall vs target per year |
| `commission-plan` | Commission Model | OTE + top earner at 6/9/12%; quota attainment at $400k/$500k/$600k |
Run the workflow: `./tableau-viz.sh run daily-executive-summary --intent "..."` — opens all six views, collects each result, and renders one HTML report to `artifacts/` (`open-artifact` reopens it).
## Serving artifacts (HTML reports, exports)
Agent-produced reports/exports live in `artifacts/` (gitignored — the end user decides
what to keep); open them with `open-artifact` — guide: [`docs/ARTIFACTS.md`](docs/ARTIFACTS.md).
## CLI surface
Full command surface, global flags, and defaults: `./tableau-viz.sh --help`.
## Multi-session & fan-out
One bridge daemon per port; N tabs (sessions) share it. `start` reuses a running bridge
and always opens a fresh tab, so multiple sub-agents can each drive their own session:
```bash
./tableau-viz.sh start --url <viz-url-A> --script explore # sub-agent A
./tableau-viz.sh start --url <viz-url-B> --script explore # sub-agent B
./tableau-viz.sh ls
./tableau-viz.sh eval 'return helpers.listSheets()' --intent "Reading the sheet list" --session <A-id>
```
## Safety
Agent-authored JS runs in a page authenticated to Tableau via the user's session — the
same trust model as a browser devtools console. Full security model:
[`docs/SECURITY.md`](docs/SECURITY.md).
## Docs
- `docs/JS_EVALS.md` — how to author evals: eval scope, helper library, correctness rules, patterns.
- `docs/EMBEDDING_API.md` — the curated Embedding API v3 reference (object tree, call shapes).
- `docs/SCRIPTS.md` — authoring + registering reusable scripts.
- `docs/ARTIFACTS.md` — serving reports/exports to the browser.
- `docs/SECURITY.md` — trust model + guardrails.
- `docs/ARCHITECTURE.md` — systems diagram + file-by-file intent map.
- `docs/TROUBLESHOOTING.md` — failure modes and fixes.
- `docs/PROTOCOL.md` — the WebSocket wire contract.
Pliki w paczce (47)
- .gitignore 1 KB
- LICENSE 11 KB
- README.md 5 KB
- SKILL.md 10 KB
- bun.lock 2 KB
- e2e-smoke.ts 8 KB
- package.json 1 KB
- scripts.json 3 KB
- tableau-viz.sh 1 KB
- tsconfig.json 1 KB
- artifacts/.gitkeep 1 KB
- docs/ARCHITECTURE.md 3 KB
- docs/ARTIFACTS.md 2 KB
- docs/EMBEDDING_API.md 23 KB
- docs/JS_EVALS.md 6 KB
- docs/PROTOCOL.md 7 KB
- docs/SCRIPTS.md 5 KB
- docs/SECURITY.md 3 KB
- docs/TROUBLESHOOTING.md 5 KB
- scripts/commission-plan.js 6 KB
- scripts/customers-top3.js 4 KB
- scripts/explore.js 1 KB
- scripts/overview-state-ranking.js 8 KB
- scripts/performance-outliers.js 3 KB
- scripts/product-peak-months.js 3 KB
- scripts/shipping-delays.js 5 KB
- src/bridge.test.ts 14 KB
- src/bridge.ts 17 KB
- src/cli.test.ts 5 KB
- src/cli.ts 51 KB
- src/demo-scripts.test.ts 11 KB
- src/embed-tableau.html 31 KB
- src/executive-report.test.ts 11 KB
- src/executive-report.ts 25 KB
- src/executor-reader.test.ts 4 KB
- src/fragments.test.ts 1 KB
- src/fragments.ts 2 KB
- src/metadata-loader.test.ts 5 KB
- src/protocol.ts 8 KB
- src/session.test.ts 7 KB
- src/session.ts 12 KB
- src/snapshot.test.ts 10 KB
- src/test-utils.ts 2 KB
- src/client/executor.ts 42 KB
- src/client/metadata-loader.ts 11 KB
- src/client/snapshot.ts 11 KB
- temp/.gitkeep 1 KB
Wersje
W bazie nie ma innych skilli o nazwie view-tableau-dashboard.
Migawka bazy z 13.11.2026 · wersja paczki 52f5a96fb105 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 3 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100query-tableau-data
Odpytuje źródła danych Tableau przez HTTP: katalog danych, agregacje, filtry i obliczenia potrzebne do odpowiedzi biznesowych. - 100tableau-dashboard-creator
Prowadzi przez wieloetapowy proces tworzenia dashboardu Tableau: markę, eksplorację danych, plan, makietę HTML i specyfikację wdrożenia. - 100tableau-route
Czyta STATE.md projektu i wskazuje, który jeden skill uruchomić dalej w przepływie dashboardu Tableau, nie uruchamiając go samodzielnie. - 100tableau-semantics
Udostępnia lokalny model semantyczny skoroszytów i źródeł danych Tableau: schemat, pola, parametry, filtry i pochodzenie danych, by uniknąć powtórnej eksploracji. - 100tableau-expert
Wspiera pracę z Tableau Desktop i Server: pola obliczeniowe, wyrażenia LOD, dashboardy, blending danych, parametry i optymalizacja wydajności. - 100tableau-dagster-to-orchestra
Przenosi integrację Dagster z Tableau, czyli obiekty TableauCloudWorkspace i load_tableau_asset_specs, do potoku Orchestra dla Tableau Cloud.