Builds BI pipelines with SQL warehouses, dbt, Metabase, and Superset: metrics modeling, dashboards, and scheduled reporting.
Agentic Workflow: Read -> Reason -> Act (business-intelligence)
You are business-intelligence (data) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — data context for business-intelligence
- Domain: Builds BI pipelines with SQL warehouses, dbt, Metabase, and Superset: metrics modeling, dashboards, and scheduled reporting.
- bi-warehouses: Query and manage warehouse data. —
psql "postgres://user:pass@localhost/analytics" -c "SELECT count(*) FROM orders"
- bi-modeling: Model metrics with dbt. —
dbt init my_project
- Check
knowledge and prerequisites: snowflake, bigquery, dbt, airflow
2. Reason — think for business-intelligence
- For
bi-warehouses: Query and manage warehouse data. — decide which checks to run
- For
bi-modeling: Model metrics with dbt. — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with business-intelligence tools
- Tools:
Glob, Grep, Read, Bash, Duckdb (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
business-intelligence:28860413
Business Intelligence
Build analytics pipelines and dashboards.
When to Use
- Reporting revenue, retention, and funnel metrics
- Self-serve dashboards for stakeholders
- Metrics engineering with dbt
- One-off analysis with DuckDB/psql
Commands
# Ad-hoc querying
psql analytics -c "SELECT count(*) FROM orders"
duckdb analytics.db "SELECT * FROM orders LIMIT 10"
duckdb -csv analytics.db "SELECT date_trunc('day', created_at) d, count(*) FROM orders GROUP BY 1"
# dbt modeling
dbt init my_project
dbt run
dbt test
dbt build
dbt docs generate
dbt docs serve
# Metabase
java -jar metabase.jar
dbt Model
-- models/marts/daily_orders.sql
SELECT
date_trunc('day', created_at) AS day,
count(*) AS orders,
sum(total) AS revenue
FROM {{ ref('stg_orders') }}
GROUP BY 1
Best Practices
- Define metrics once in dbt, reuse everywhere
- Write tests for uniqueness, not-null, and freshness
- Use semantic layers so dashboard numbers agree
- Document models with dbt docs generate
- Schedule dbt build, then refresh dashboards
- Keep raw data immutable; model in layers (staging, marts)
Capabilities
bi-warehouses
Query and manage warehouse data.
Parameters:
connection (string): Connection string
sql (string): Query text
Commands:
psql "postgres://user:pass@localhost/analytics" -c "SELECT count(*) FROM orders"
duckdb analytics.db "SELECT count(*) FROM orders"
mysql -u root -p analytics -e "SHOW TABLES"
duckdb -csv analytics.db "SELECT * FROM orders LIMIT 10"
Examples:
- psql analytics -c "\dt"
- duckdb analytics.db "SELECT date_trunc('day', created_at) d, count(*) FROM orders GROUP BY 1"
- python -m venv .venv
bi-modeling
Model metrics with dbt.
Parameters:
select (string): Model selection
test (boolean): Run dbt data tests
Commands:
dbt init my_project
dbt run
dbt test
dbt build
dbt docs generate
Examples:
- dbt run --select stg_orders
- dbt test --select tag:core
- dbt docs serve
References
1---2name: "business-intelligence"3description: "Builds BI pipelines with SQL warehouses, dbt, Metabase, and Superset: metrics modeling, dashboards, and scheduled reporting. Use when working with bi warehouses, bi modeling or when the user mentions bi warehouses, bi modeling."4license: "MIT"5compatibility: "Requires snowflake, bigquery, dbt, airflow, metabase."6metadata:7 source: https://skillmd.com/skills/opknock/business-intelligence8 author: Kdesk9 version: 2.0.010 category: data11allowed-tools: "Glob Grep Read Bash(dbt:*) Bash(duckdb:*) Bash(mysql:*) Bash(psql:*)"12---1314Builds BI pipelines with SQL warehouses, dbt, Metabase, and Superset: metrics modeling, dashboards, and scheduled reporting.1516## Agentic Workflow: Read -> Reason -> Act (business-intelligence)1718You are **business-intelligence** (data) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — data context for `business-intelligence`21- Domain: Builds BI pipelines with SQL warehouses, dbt, Metabase, and Superset: metrics modeling, dashboards, and scheduled reporting.22- **bi-warehouses**: Query and manage warehouse data. — `psql "postgres://user:pass@localhost/analytics" -c "SELECT count(*) FROM orders"`23- **bi-modeling**: Model metrics with dbt. — `dbt init my_project`24- Check `knowledge` and `prerequisites: snowflake, bigquery, dbt, airflow`2526### 2. Reason — think for `business-intelligence`27- For `bi-warehouses`: Query and manage warehouse data. — decide which checks to run28- For `bi-modeling`: Model metrics with dbt. — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `business-intelligence` tools32- Tools: `Glob`, `Grep`, `Read`, `Bash`, `Duckdb` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `business-intelligence:28860413`3536# Business Intelligence3738Build analytics pipelines and dashboards.3940## When to Use4142- Reporting revenue, retention, and funnel metrics43- Self-serve dashboards for stakeholders44- Metrics engineering with dbt45- One-off analysis with DuckDB/psql4647## Commands4849```bash50# Ad-hoc querying51psql analytics -c "SELECT count(*) FROM orders"52duckdb analytics.db "SELECT * FROM orders LIMIT 10"53duckdb -csv analytics.db "SELECT date_trunc('day', created_at) d, count(*) FROM orders GROUP BY 1"5455# dbt modeling56dbt init my_project57dbt run58dbt test59dbt build60dbt docs generate61dbt docs serve6263# Metabase64java -jar metabase.jar65```6667## dbt Model6869```sql70-- models/marts/daily_orders.sql71SELECT72 date_trunc('day', created_at) AS day,73 count(*) AS orders,74 sum(total) AS revenue75FROM {{ ref('stg_orders') }}76GROUP BY 177```7879## Best Practices8081- Define metrics once in dbt, reuse everywhere82- Write tests for uniqueness, not-null, and freshness83- Use semantic layers so dashboard numbers agree84- Document models with dbt docs generate85- Schedule dbt build, then refresh dashboards86- Keep raw data immutable; model in layers (staging, marts)8788## Capabilities8990### bi-warehouses91Query and manage warehouse data.9293**Parameters:**94- `connection` (string): Connection string95- `sql` (string): Query text9697**Commands:**98- `psql "postgres://user:pass@localhost/analytics" -c "SELECT count(*) FROM orders"`99- `duckdb analytics.db "SELECT count(*) FROM orders"`100- `mysql -u root -p analytics -e "SHOW TABLES"`101- `duckdb -csv analytics.db "SELECT * FROM orders LIMIT 10"`102103**Examples:**104- psql analytics -c "\\dt"105- duckdb analytics.db "SELECT date_trunc('day', created_at) d, count(*) FROM orders GROUP BY 1"106- python -m venv .venv107108### bi-modeling109Model metrics with dbt.110111**Parameters:**112- `select` (string): Model selection113- `test` (boolean): Run dbt data tests114115**Commands:**116- `dbt init my_project`117- `dbt run`118- `dbt test`119- `dbt build`120- `dbt docs generate`121122**Examples:**123- dbt run --select stg_orders124- dbt test --select tag:core125- dbt docs serve126127## References128- [dbt Docs](https://docs.getdbt.com)129- [DuckDB Docs](https://duckdb.org/docs/)130- [Metabase Docs](https://www.metabase.com/docs/latest/)