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.Documentation Index
Fetch the complete documentation index at: https://docs.sourcemedium.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
The install command requiresnpx, 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
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)
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 adashboard_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 dashboard — dashboard.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
| Output | Description |
|---|---|
dashboard.html | Open in any browser — no server required. Embeds chart specs, query results, and SQL receipts. |
dashboard_manifest.json | Source of truth for the dashboard: metric definitions, SQL receipts, row counts, and QA status per tile. |
| SQL receipts | One copy/paste BigQuery query per tile, with dry-run byte estimate and freshness check. |
| Notes section | Metric definitions, data caveats, freshness date, and QA status — visible in the dashboard footer. |
After Building
View your dashboard
Opendashboard.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:Update a dashboard
Port to Metabase
Debug a tile
If a chart looks wrong:Related
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.

