Skill Store 33

Dashboard

Build a live, interactive data dashboard as a single HTML file for one 1920×1080 screen, computed from data the page loads (window.DATA from data.js): every KPI, chart and table is a small SQL query run in the browser by a CDN runtime, so figures follow the data, update when new rows arrive, and show "how this is calculated" on click. Filters, cross-filtering, period comparisons, targets, event marks, hover values, and an optional animated walkthrough. Use this skill whenever the user asks for a dashboard, a KPI screen, an analytics or reporting view, a monitoring or control-room screen, a wall display, or "charts of this data" on one page, even if they only say "visualise this data".

by skillstore33 · Verified · MIT

If you have the Skill Store MCP or plugin installed, type:

Use the skill on the SS33 Skill Store to build a 1920x1080 wall screen for my six-branch coffee chain showing weekly sales against a 45000 target, with a region filter and a comparison versus last week

Don't have the MCP or plugin installed? Get it now!

See it in action

Dashboard demo

The skill

Build a live, interactive data dashboard as a single HTML file for one 1920×1080 screen, computed from data the page loads (window.DATA from data.js): every KPI, chart and table is a small SQL query run in the browser by a CDN runtime, so figures follow the data, update when new rows arrive, and show "how this is calculated" on click. Filters, cross-filtering, period comparisons, targets, event marks, hover values, and an optional animated walkthrough. Use this skill whenever the user asks for a dashboard, a KPI screen, an analytics or reporting view, a monitoring or control-room screen, a wall display, or "charts of this data" on one page, even if they only say "visualise this data".

Dashboard

The bar: a screen its viewers read in five seconds (how are we doing, what changed, who or where, when) and that is still true tomorrow, when the data has moved. Every figure is computed, every comparison is fair, every word survives new data. The runtime (dash.js) does the computing, drawing, filtering, live updates, "how this is calculated" drawer and animation; you choose the questions, tiles, queries, look and words.

References

  • read_skill_file("dashboard", "references/starter.html"): required. The base of your file: frame tokens, one example of every tile type, header controls, the two script tags.
  • read_skill_file("dashboard", "references/tiles.md"): the four layouts and their text budgets, every tile type and attribute, the SQL subset, recipes, common mistakes. Read it unless you already know the runtime's attribute set.
  • read_skill_file("dashboard", "references/styles.md"): six tested style families (tokens, font pairs, style blocks) and a contrast-checked hue table. Optional.
  • read_skill_file("dashboard", "references/motion.md"): the walkthrough (data-motion, tour steps). Read it when the brief asks for an animation, walkthrough, intro or video.

Request what you need in one turn; your next reply is the finished file.

Contract (checkers depend on it)

  • One HTML file whose only scripts are, as the last lines of <body>, unchanged and in this order:
    <script src="data.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/ReadyaiHub/dash-runtime@1.0.0/dash.js"></script>
    
    No script of your own, no handlers, no other library, no CSS animation. The runtime brings the frame CSS.
  • Everything inside <div class="dash"> (1920×1080, nothing scrolls). <main class="board"> is exactly 12 columns × 5 rows of <section class="tile cN rM">, filled left to right, top to bottom in source order: the four layouts in tiles.md are tested; another tiling is fine if every row sums to 12 and the board to 5 rows.
  • You edit only the tokens, a style block, the <title>, the Google Fonts <link>, data-motion on <body>, and the contents of .dash. Never font-size, widths, heights, positions or style="": the frame's fixed type scale is what keeps text inside tiles.
  • Every visible figure comes from a query. The only numbers you type are those the brief states (targets, capacities, event dates), in data-target, data-mark or a query condition. A swap test reloads the page on other data and flags any figure that did not move.
  • Header: <span data-updated></span> (data date and update time) and at most 3 controls; every control must change some tile.

What the runtime understands (the non-obvious parts)

  • SQL is a flat subset: one table, SELECT [DISTINCT] … FROM … WHERE … GROUP BY … HAVING … ORDER BY … LIMIT, aggregates SUM AVG COUNT MIN MAX MEDIAN, CASE, IN, BETWEEN, LIKE, COALESCE, NULLIF, ROUND, SUBSTR. No JOIN, subquery or WITH: a failing query paints "Query error" in its tile. AS names reach legends and table headers.
  • Extra columns: days_ago (0 = the latest date in the data, recounted when rows arrive), week_ago, date (alias of any date column), hour (from an HH:MM column). Recent periods are always days_ago/week_ago, never typed ranges.
  • Controls: data-filter="col" filters every tile whose table has col (you don't write it into queries); data-param="name" sets @name, which you do write. Word values are quoted for you, so a group that isn't a column works as (@daytype = 'all' OR (@daytype = 'weekend' AND weekday IN ('Sat','Sun')) OR …) in every query. data-options="SELECT DISTINCT …" fills choices from the data. data-click="col" on a chart cross-filters the rest.
  • Result shapes: KPI = one value; line/area = x, value or x, series, value (≤ 4 series in a line); bar = ranked label, value (~7 rows fit in r2); heatmap = x, y, value; table = any columns (~6 rows in r2). Weekday names sort Mon→Sun on their own; everything else needs ORDER BY.
  • KPI tiles (r1) hold only their h3: a note overflows. Give them data-vs or data-target, and data-good.

Judgement calls

  • Honest measures. A rate is a ratio of sums, never an average of ratios. "Per day" is SUM(x) * 1.0 / COUNT(DISTINCT date) when rows are hours or items. One row per ticket means COUNT(*). Counts start at zero; data-zero="no" only for levels like prices. One unit per chart.
  • Words that stay true. The h1 (3–7 words) says what the screen is for, not what the data shows this week; titles say what is measured and over which period; notes (≤ 12 words) give an action or context the brief states. A claim like "Riverside leads" breaks the day it stops being true.
  • Coverage. Every question, filter, comparison, target and event in the brief appears: a tile, a control, data-vs, data-target, data-mark.
  • Look. Choose the mode from where the screen lives (control room, wall, lobby → dark; office, meeting → light). A family from styles.md is a safe floor; adapt tokens or write your own style block when the subject calls for it, keeping the token names, contrast, and the accent reserved for kicker, focus and sparks.
  • Motion (when asked): <body data-motion> plus a 3–4 step <ol class="tour"> whose captions name the brief's events, never computed figures; data-set shows the moment instead of describing it.

Put a short PLAN comment first in <body> (questions, data, controls, events, layout with spans summing to 12 × 5, style, tiles).

Easy to miss

  • An @param with no control, or a param control no query reads.
  • A guessed column name (trip_count) or an unquoted text value.
  • An extra tile: the grid squeezes every row and text overflows.
  • Missing data-click on the ranking chart, or a brief's target not drawn as data-target.

Deliverable

The complete HTML file in one ```html code block, ending with </html>, in the same reply as the plan; then 2–3 lines: layout and style, which chart cross-filters, and (with motion) the tour.

Use this skill

Connect your agent to the Skill Store MCP server and ask for it by ref: skillstore33/dashboard-69176719661.

Download SKILL.md · Markdown version

Details

Publisher
skillstore33
Category
Data & Analytics › Analysis & BI
License
MIT
Updated
2026-11-25

References

More from skillstore33