Data skills
Part of StrataForge · off by default (data_tools)
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
| Setting | Values | Meaning |
|---|---|---|
data_tools | off (default) · read · mock | read: inspect, estimate, guarded queries. mock adds synthetic tables. |
data_databases | default all | Glue databases the tools may read — what StrataBI's tiles may read |
data_read_buckets | none | buckets with table data besides StrataBI's system bucket |
data_query_cutoff_gb | 10 GB | per-query scan cutoff, enforced by the workgroup |
data_daily_scan_gb | 200 GB | what one developer may scan per UTC day |
data_users | blank | who 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
| Tool | CLI | What it does | Cost | ||
|---|---|---|---|---|---|
data_tables | strataforge data tables | databases and tables (format, partition keys) | free | ||
table_inspect | strataforge data inspect db.table | the table evaluator (below) | Iceberg: one metadata query, about $0.00005 | ||
query_cost | strataforge data cost "SELECT …" | valid or not, bytes scanned, $ per run and per day, columns read, warnings | free (EXPLAIN) | ||
run_query | strataforge data query "SELECT …" | one read-only statement, guarded | what it scans | ||
cache_list | strataforge data caches | the cache registry | free | ||
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):
- format and version — Iceberg v1–v3 (and v4 flags), Delta Lake, Hudi, Parquet, ORC, Avro, JSON, CSV;
- columns, partitioning (Iceberg transforms), sort order, snapshots, delete files;
- files and per-column bytes (Iceberg metadata), partition skew;
- what would make it cheaper, with the statement: small files (
OPTIMIZE … BIN_PACK), too many snapshots (VACUUM), row formats, unpartitioned large tables, too many catalog partitions; - how to query it: for Iceberg hidden partitioning, filter the source column with literal ranges.
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
mock …— "mock 100k rows of engine telemetry for 40 engines over a year, with EGT drifting up and a few outliers, then build a dashboard on it". Athena generates an Iceberg table fromsequence()(nothing is read, so a table costs Athena's minimum whatever its size), one SQL expression per column. Tables are named after the developer and dropped after 7 days.optimize …— before writing or changing SQL: inspect every table, read only the columns the block binds, filter partitions with literals, estimate, rewrite while the verdict is moderate or expensive, report before and after.
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:
| Path | When |
|---|---|
| Athena as is, async | interactive, input-driven queries under ~10 s and ~1 GB |
| Narrower SQL or a pre-aggregated table | the tile aggregates a big table the same way every time |
| Cache module | static or slowly changing results read often, up to a few million rows |
| Lambda reading Parquet / Iceberg directly | small data with Python logic Athena cannot express |
| Glue (Spark) job | large 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:
| Tool | CLI | What it does |
|---|---|---|
data_stats | strataforge data stats db.table | Athena 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_query | strataforge 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_stats | strataforge 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:
data_catalogs— every catalog Athena can query and how SQL names it: cross-account Glue catalogs, S3 Tables and Redshift catalogs, Lake Formation resource links, and Lake Formation's mode.table_governance— one table's resource-link target, LF-Tags, data filters (row filters, hidden columns), row-level security policies and grants (where visible).
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.
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
Shaleio