Skip to main content
Build BI dashboards from SourceMedium warehouse data with correctness first — the agent discovers your data, locks down metric definitions, validates SQL, then renders the dashboard. Default output is a portable standalone HTML file that opens in any browser.

Prerequisites

The install command requires npx, which comes with Node.js 18+. Run node -v to check. If you see “command not found,” install Node.js from nodejs.org first. Install SM BigQuery Analyst first if you need setup verification or access troubleshooting — the dashboard builder assumes BigQuery access is already working.

Install

Install both skills together:
If your agent does not support automatic install through the skills CLI, copy the skill folder into that agent’s configured skills directory.

Update

If you installed an earlier copy, update both skills before building dashboards:

Quick Start (Copy/Paste)

Copy the block below and paste it into your coding agent to build your first dashboard.

What It Does

Metric definitions before SQL — before writing any query, the agent defines each metric: the formula, the source table, the time level (daily, per-order, per-customer), and for ratios like AOV or ROAS, the numerator and denominator. This prevents the most common BI mistake — summing a rate metric across rows and getting a wrong answer. BI-safe SQL — SELECT-only, fully qualified tables, bounded time filters, dry-run validated, one query per dashboard tile. Most queries cost well under a dollar at standard BigQuery rates. Manifest-driven output — builds a dashboard_manifest.json that records every tile’s metric definition, SQL receipt, row count, dry-run bytes, and QA status. The manifest is validated before rendering, so errors surface before the dashboard is built. Portable HTML dashboarddashboard.html embeds chart specs, query results, SQL receipts, and QA notes. Open it in any browser — no server, no login required. BI tool handoff — produces Metabase SQL cards, Looker Studio queries, or app-ready data contracts when a BI tool is the target instead of standalone HTML. No guessed metrics — if a requested metric isn’t available in your data, it appears as a note in the dashboard rather than a substituted or fabricated number.

Example Prompts

Executive overview dashboard

Marketing performance dashboard

Metabase handoff

Hybrid dashboard (your data + SourceMedium)


What You Get


After Building

View your dashboard

Open dashboard.html in any browser — Chrome, Safari, Firefox, Edge. If your agent built it in a project folder, look there. You can share the file directly or host it anywhere that serves static files.

Validate before sharing

Run strict validation before sharing any dashboard externally:
The agent will check metric definitions, SQL safety, row counts, dry-run bytes, ratio denominator checks, and chart field matching.

Update a dashboard

Port to Metabase

Debug a tile

If a chart looks wrong:
If the numbers still look wrong after debugging, share the SQL receipt and a screenshot of the chart with support.

SM BigQuery Analyst

For setup verification, raw analysis, and hybrid data joins.

SQL Query Library

SourceMedium SQL templates and patterns.

Metric Catalog

180+ pre-defined metrics with calculations.

Table Docs

Schema-level documentation for core tables.