Data skills

Part of StrataForge · off by default (data_tools)

Note
Ships with StrataForge, which is in release-candidate testing.

With the data tools on, Guildmaster works like a data engineer next to the dashboard author: it knows what a table is before it writes SQL against it, knows what a query will cost before it runs, makes cheap synthetic data to build against, spots slow tiles, and proposes — and on request builds — a faster processing path. The same tools are in the terminal (strataforge data …).

The workspace still has no AWS rights: the StrataForge gateway runs every call in its own Athena workgroup, with a per-query scan cutoff, a per-developer daily allowance and an audit record.

Turn it on

SettingValuesMeaning
data_toolsoff (default) · read · mockread: inspect, estimate, guarded queries. mock adds synthetic tables.
data_databasesdefault allGlue databases the tools may read — what StrataBI's tiles may read
data_read_bucketsnonebuckets with table data besides StrataBI's system bucket
data_query_cutoff_gb10 GBper-query scan cutoff, enforced by the workgroup
data_daily_scan_gb200 GBwhat one developer may scan per UTC day
data_usersblankwho may use them; blank = anyone who may use StrataBI's Builder (RBAC strataforge:data)

Why this reach: a developer who can author dashboards in Builder can already put any SQL StrataBI's role can run into a tile. The data tools reach the same data, through a narrower door.

What Guildmaster can do

ToolCLIWhat it doesCost
data_tablesstrataforge data tablesdatabases and tables (format, partition keys)free
table_inspectstrataforge data inspect db.tablethe table evaluator (below)Iceberg: one metadata query, about $0.00005
query_coststrataforge data cost "SELECT …"valid or not, bytes scanned, $ per run and per day, columns read, warningsfree (EXPLAIN)
run_querystrataforge data query "SELECT …"one read-only statement, guardedwhat it scans
cache_liststrataforge data cachesthe cache registryfree
mock_table …`strataforge data mock create \list \drop`synthetic Iceberg tables (mock skill)about $0.00005 per table

The table evaluator

For Glue tables and Iceberg REST catalogs (Lakekeeper, Polaris, Nessie, Glue's REST endpoint):

Caution
Athena reads and writes Iceberg v2 only. A v3 table fails in StrataBI's Athena tiles; the evaluator flags it and suggests a cache built by an engine that reads v3.

The cost estimate

Athena's EXPLAIN (free) names the tables, the pushed-down filters and the columns read; the estimate then counts the Iceberg data files whose bounds the filters cannot exclude (or the S3 size of the Hive partitions kept), times the read columns' share, at Athena's price with its 10 MB minimum per query. It is an upper bound.

Skills

Slow tiles and faster paths

Guildmaster times each tile in the StrataBI view. A slow tile gets a warning badge in its header (card.badge: "Slow · ~20 s", with the reason on hover) and a proposal:

PathWhen
Athena as is, asyncinteractive, input-driven queries under ~10 s and ~1 GB
Narrower SQL or a pre-aggregated tablethe tile aggregates a big table the same way every time
Cache modulestatic or slowly changing results read often, up to a few million rows
Lambda reading Parquet / Iceberg directlysmall data with Python logic Athena cannot express
Glue (Spark) joblarge joins and heavy transforms; Iceberg v3 sources

A cache module (strataforge new module <id> --template cache) runs each dataset's SQL on a schedule and keeps one Parquet file per dataset in StrataBI's system bucket; the tile reads it with "exec": {"type": "cache", "cache_s3_uri": "…/latest.parquet"} and loads instantly. A failed refresh leaves the last good file in place. See Module templates.

Guildmaster builds only when asked, and deploys only to a sandbox you confirm.

Statistics instead of rows

Rows cost tokens and StrataBI shows them better, so Guildmaster talks about data through statistics and lets StrataBI render it:

ToolCLIWhat it does
data_statsstrataforge data stats db.tableAthena computes count, nulls, distinct, min, max, mean, standard deviation, quantiles, skewness and excess kurtosis per column, with a normality verdict — one scan, no rows moved
analysis_querystrataforge data analyze NAME "SELECT …"runs a guarded query, keeps the result as your own artifact for a day, returns its statistics and the cache tile that shows it
artifact_statsstrataforge data artifact …statistics of a tile your preview just ran — including a module's Lambda, which StrataBI runs as you — or of your artifact or a cache dataset

Lake Formation and other accounts

Before writing SQL against shared or governed data, Guildmaster checks where it lives and what governs it:

StrataForge reads Lake Formation's metadata and never changes a grant. To read governed or shared tables, grant StrataForge's gateway role (gateway_role_arn) DESCRIBE / SELECT in Lake Formation; name other accounts' catalogs in data_glue_catalog_ids.

Platform insights

For StrataBI administrators and roles marked Platform insights (and people named at install): how the organization uses StrataBI, in aggregate — which data sources, dashboards and analytics people open, favorite and save, and Athena's query history (queries, scan, queueing, throttling) — by role, by person, or not at all. The window defaults to the last 30 days; ask for another period and Guildmaster sets it.

bash
strataforge insights                         # overview, last 30 days, by role
strataforge insights sources --days 90       # data sources people use
strataforge insights favorites               # favorited dashboards and what they read
strataforge insights athena                  # Athena queueing and failures