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.
On every plan, the skill works through your SourceMedium connection: connect your coding agent first. Its gcloud and bq features (joins to your own tables in the warehouse, larger pulls) need direct warehouse access, part of Pro. See BigQuery Access.
Install
skills CLI installs into supported agent environments. If your agent does not support automatic install, copy the skill folder into that agent’s configured skills directory.
Update
If you already installed the skill, update before using the latest setup verification, discovery, and custom-data helpers:Quick Start (Copy/Paste)
What It Does
Setup verification: confirms your SourceMedium connection, or with direct warehouse access the gcloud/bq CLIs, authentication, dataset names, and table-level read access, before writing any SQL. If something is broken, it surfaces the exact failing step and points to the access guide. Warehouse discovery: readsdim_data_dictionary to find which tables exist and have fresh data, and dim_semantic_metric_catalog to resolve metric names and definitions, including each metric’s filter, across 180+ pre-defined metrics. The agent discovers what’s available before writing SQL rather than guessing.
Safe SQL generation: all queries are SELECT-only, dry-run first, and cost-capped: by your SourceMedium connection’s limits, or at 1 GB by default with direct access (most queries cost well under a dollar at standard BigQuery rates). Ratios are aggregated before dividing, so AOV, MER, and LTV match SourceMedium’s definitions. No mutations, no unbounded scans, and a result that hits the row limit is reported as incomplete instead of being silently cut off.
SQL receipts: a SQL receipt is a bundled audit package: the exact SQL used, the pre-run byte estimate, the metric definition, timeframe, scope, and a verify command you can re-run yourself. Every answer includes one.
Hybrid data joins: with direct warehouse access (Pro), can safely join your own BigQuery tables to SourceMedium data. The skill runs a cardinality check before any join to prevent silent metric inflation.
No fabrication: if access fails or a table is unavailable, returns the exact error and stops rather than inventing numbers.
Example Questions
After installing, ask your coding agent:After Installing
First thing to do
Ask the agent to verify your setup and discover what’s available:Foundation plans
Foundation reaches your data through your SourceMedium connection, which supplies your project and dataset names. The skill’s Google-accountgcloud and bq path and joining your own tables in the warehouse need Pro. Separately, an organization admin can issue a read-only app credential from Dashboards & Apps on either plan for a BI tool; see Connect Metabase.
Joining your own tables
With direct warehouse access (Pro), if you have your own BigQuery tables alongside SourceMedium data:Debugging
LTV looks too high or too low The cohort LTV table has several rows per cohort: one per order type, per acquisition dimension (and value), and per sales channel. Ask:SQL Receipt Format
Every answer from this skill includes:No Access Yet?
On every plan, connect your coding agent to SourceMedium. Direct BigQuery access is part of Pro and comes from your SourceMedium workspace membership, not from your own Google Cloud admin. See BigQuery Access for what to do and a copy/paste message for your workspace admin.Related
BigQuery Essentials
Setup and first-query fundamentals.
SQL Query Library
SourceMedium SQL templates and patterns.
Table Docs
Schema-level documentation for core tables.
Metric Catalog
180+ pre-defined metrics with definitions and filters.
Data Dictionary
Table availability, freshness, and column stats.
Multi-Touch Attribution
MTA models and experimental tables.

