Skip to content

Commit 0da2ae5

Browse files
docs(skills): use top-level databricks aitools everywhere
Follow-up to #60, which only touched README/manifest and the jobs + pipelines SKILL.md. This sweeps the remaining `databricks experimental aitools` references across the core/apps skills, the experimental skills, and reference docs. The old paths still work as deprecated aliases (see databricks/cli#4917), but new readers should be pointed at the supported command. Co-authored-by: Isaac
1 parent a6da289 commit 0da2ae5

15 files changed

Lines changed: 66 additions & 66 deletions

File tree

experimental/databricks-agent-bricks/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Agent Bricks are pre-built AI tiles in Databricks that provide conversational in
1919
```bash
2020
# Find volumes
2121
databricks volumes list CATALOG SCHEMA
22-
databricks experimental aitools tools query --warehouse WH "LIST '/Volumes/catalog/schema/volume/'"
22+
databricks aitools tools query --warehouse WH "LIST '/Volumes/catalog/schema/volume/'"
2323

2424
# Create KA
2525
databricks knowledge-assistants create-knowledge-assistant "Name" "Description"

experimental/databricks-aibi-dashboards/SKILL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ A dashboard should be showing something relevant for a human, typically some KPI
1414
| Task | Command |
1515
|------|---------|
1616
| List warehouses | `databricks warehouses list` |
17-
| List tables | `databricks experimental aitools tools query --warehouse WH "SHOW TABLES IN catalog.schema"` |
18-
| Get schema | `databricks experimental aitools tools discover-schema catalog.schema.table1 catalog.schema.table2` |
19-
| Test query | `databricks experimental aitools tools query --warehouse WH "SELECT..."` |
17+
| List tables | `databricks aitools tools query --warehouse WH "SHOW TABLES IN catalog.schema"` |
18+
| Get schema | `databricks aitools tools discover-schema catalog.schema.table1 catalog.schema.table2` |
19+
| Test query | `databricks aitools tools query --warehouse WH "SELECT..."` |
2020
| Create dashboard | `databricks lakeview create --display-name "X" --warehouse-id "WH" --dataset-catalog CATALOG --dataset-schema SCHEMA --serialized-dashboard "$(cat file.json)" --json '{"parent_path": "/Workspace/Users/<you>/path"}'``--dataset-catalog` / `--dataset-schema` are **flag-only** (REQUIRED; CLI silently drops them if put in `--json`); `parent_path` is JSON-only (no flag). Queries must use bare table names. |
2121
| Update dashboard | `databricks lakeview update DASHBOARD_ID --serialized-dashboard "$(cat file.json)"` |
2222
| Publish | `databricks lakeview publish DASHBOARD_ID --warehouse-id WH` |
2323
| Delete | `databricks lakeview trash DASHBOARD_ID` |
2424

25-
> **`--warehouse` flag**: if `databricks experimental aitools tools query --warehouse WH "..."` fails with `unknown flag: --warehouse` on your CLI version, set `DATABRICKS_WAREHOUSE_ID=WH` in the environment instead and drop the flag — the command auto-picks it from there.
25+
> **`--warehouse` flag**: if `databricks aitools tools query --warehouse WH "..."` fails with `unknown flag: --warehouse` on your CLI version, set `DATABRICKS_WAREHOUSE_ID=WH` in the environment instead and drop the flag — the command auto-picks it from there.
2626
2727
---
2828

@@ -57,9 +57,9 @@ A good dashboard comes from knowing the data first. Spend time here — the expl
5757

5858
Use `discover-schema` as the default — one call returns columns, types, sample rows, null counts, and row count. If you only know the schema, list tables first with `query "SHOW TABLES IN ..."`.
5959

60-
`databricks experimental aitools tools discover-schema catalog.schema.orders catalog.schema.customers`
60+
`databricks aitools tools discover-schema catalog.schema.orders catalog.schema.customers`
6161

62-
Sample rows alone don't tell you what to build. you can write aggregate SQL through `databricks experimental aitools tools query --warehouse <WH> "..."` to probe typically:
62+
Sample rows alone don't tell you what to build. you can write aggregate SQL through `databricks aitools tools query --warehouse <WH> "..."` to probe typically:
6363

6464
- **Cardinality** of candidate grouping columns → decides chart color-group vs. table (≤8 distinct values for charts, see Cardinality & Readability below).
6565
- **Top categorical values** → populates filter options and chart legends meaningfully.

experimental/databricks-apps-python/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ databricks apps deploy
3939
### AI-assisted development
4040
```bash
4141
# Install agent skills for AI-powered scaffolding
42-
databricks experimental aitools skills install
42+
databricks aitools install
4343

4444
# Query AppKit docs inline
4545
npx @databricks/appkit docs "your question here"

experimental/databricks-dbsql/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,4 +297,4 @@ Load these for detailed syntax, full parameter lists, and advanced patterns:
297297
- **Star schema in Gold layer** for BI; OBT acceptable in Silver
298298
- **Define PK/FK constraints** on dimensional models for query optimization
299299
- **Use `COLLATE UTF8_LCASE`** for user-facing string columns that need case-insensitive search
300-
- **Test SQL via CLI** (`databricks experimental aitools tools query`) or notebooks before deploying. If `--warehouse` is rejected on your CLI version, set `DATABRICKS_WAREHOUSE_ID` in the environment instead.
300+
- **Test SQL via CLI** (`databricks aitools tools query`) or notebooks before deploying. If `--warehouse` is rejected on your CLI version, set `DATABRICKS_WAREHOUSE_ID` in the environment instead.

experimental/databricks-metric-views/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Use this skill when:
2929

3030
Before authoring a metric view, inspect the source tables. Use `discover-schema` as the default — one call returns columns, types, sample rows, null counts, and row count. If you only know the schema, list tables first with `query "SHOW TABLES IN ..."`.
3131

32-
`databricks experimental aitools tools discover-schema catalog.schema.orders catalog.schema.customers`
32+
`databricks aitools tools discover-schema catalog.schema.orders catalog.schema.customers`
3333

34-
For dimensions and measures, probe distribution beyond sampling — cardinality of candidate dimensions, min/max/percentiles for measures, top categorical values. Write aggregate SQL through `databricks experimental aitools tools query --warehouse <WH> "..."`. Both commands auto-pick the default warehouse; set `DATABRICKS_WAREHOUSE_ID` or pass `--warehouse <ID>` to override.
34+
For dimensions and measures, probe distribution beyond sampling — cardinality of candidate dimensions, min/max/percentiles for measures, top categorical values. Write aggregate SQL through `databricks aitools tools query --warehouse <WH> "..."`. Both commands auto-pick the default warehouse; set `DATABRICKS_WAREHOUSE_ID` or pass `--warehouse <ID>` to override.
3535

3636
### Create a Metric View
3737

@@ -157,7 +157,7 @@ DROP VIEW IF EXISTS catalog.schema.orders_metrics;
157157

158158
```bash
159159
# Execute SQL via CLI
160-
databricks experimental aitools tools query --warehouse WAREHOUSE_ID "
160+
databricks aitools tools query --warehouse WAREHOUSE_ID "
161161
CREATE OR REPLACE VIEW catalog.schema.orders_metrics
162162
WITH METRICS
163163
LANGUAGE YAML

experimental/databricks-synthetic-data-gen/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ Show a clear specification with **the business story and your assumptions surfac
128128

129129
### Post-Generation Validation
130130

131-
Use `databricks experimental aitools tools query` to validate generated data (row counts, distributions, referential integrity). Query parquet files directly:
131+
Use `databricks aitools tools query` to validate generated data (row counts, distributions, referential integrity). Query parquet files directly:
132132

133133
```bash
134-
databricks experimental aitools tools query --warehouse $WAREHOUSE_ID "
134+
databricks aitools tools query --warehouse $WAREHOUSE_ID "
135135
SELECT COUNT(*) FROM parquet.\`/Volumes/CATALOG/SCHEMA/raw_data/customers\`
136136
"
137137
```

experimental/databricks-synthetic-data-gen/references/2-troubleshooting.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -293,30 +293,30 @@ WAREHOUSE_ID="your-warehouse-id"
293293
VOLUME_PATH="/Volumes/CATALOG/SCHEMA/raw_data"
294294

295295
# 1. Check row counts
296-
databricks experimental aitools tools query --warehouse $WAREHOUSE_ID "
296+
databricks aitools tools query --warehouse $WAREHOUSE_ID "
297297
SELECT 'customers' as table_name, COUNT(*) as row_count FROM parquet.\`${VOLUME_PATH}/customers\`
298298
UNION ALL
299299
SELECT 'orders', COUNT(*) FROM parquet.\`${VOLUME_PATH}/orders\`
300300
"
301301

302302
# 2. Preview schema and sample data
303-
databricks experimental aitools tools query --warehouse $WAREHOUSE_ID "
303+
databricks aitools tools query --warehouse $WAREHOUSE_ID "
304304
DESCRIBE SELECT * FROM parquet.\`${VOLUME_PATH}/customers\`
305305
"
306306

307-
databricks experimental aitools tools query --warehouse $WAREHOUSE_ID "
307+
databricks aitools tools query --warehouse $WAREHOUSE_ID "
308308
SELECT * FROM parquet.\`${VOLUME_PATH}/customers\` LIMIT 5
309309
"
310310

311311
# 3. Verify distributions
312-
databricks experimental aitools tools query --warehouse $WAREHOUSE_ID "
312+
databricks aitools tools query --warehouse $WAREHOUSE_ID "
313313
SELECT tier, COUNT(*) as count, ROUND(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER(), 1) as pct
314314
FROM parquet.\`${VOLUME_PATH}/customers\`
315315
GROUP BY tier ORDER BY tier
316316
"
317317

318318
# 4. Check amount statistics
319-
databricks experimental aitools tools query --warehouse $WAREHOUSE_ID "
319+
databricks aitools tools query --warehouse $WAREHOUSE_ID "
320320
SELECT
321321
MIN(amount) as min_amount,
322322
MAX(amount) as max_amount,
@@ -326,15 +326,15 @@ FROM parquet.\`${VOLUME_PATH}/orders\`
326326
"
327327

328328
# 5. Check referential integrity
329-
databricks experimental aitools tools query --warehouse $WAREHOUSE_ID "
329+
databricks aitools tools query --warehouse $WAREHOUSE_ID "
330330
SELECT COUNT(*) as orphan_orders
331331
FROM parquet.\`${VOLUME_PATH}/orders\` o
332332
LEFT JOIN parquet.\`${VOLUME_PATH}/customers\` c ON o.customer_id = c.customer_id
333333
WHERE c.customer_id IS NULL
334334
"
335335

336336
# 6. Verify date range
337-
databricks experimental aitools tools query --warehouse $WAREHOUSE_ID "
337+
databricks aitools tools query --warehouse $WAREHOUSE_ID "
338338
SELECT MIN(order_date) as min_date, MAX(order_date) as max_date
339339
FROM parquet.\`${VOLUME_PATH}/orders\`
340340
"

experimental/databricks-unity-catalog/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ GROUP BY workspace_id, sku_name;
101101

102102
## SQL Queries via CLI
103103

104-
Use `databricks experimental aitools tools query` for system table queries:
104+
Use `databricks aitools tools query` for system table queries:
105105

106106
```bash
107107
# Query lineage via CLI
108-
databricks experimental aitools tools query --warehouse WAREHOUSE_ID "
108+
databricks aitools tools query --warehouse WAREHOUSE_ID "
109109
SELECT source_table_full_name, target_table_full_name
110110
FROM system.access.table_lineage
111111
WHERE event_date >= current_date() - 7

experimental/databricks-unity-catalog/references/7-data-profiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ DROP QUALITY MONITOR catalog.schema.my_table;
6868
### Execute via CLI
6969

7070
```bash
71-
databricks experimental aitools tools query --warehouse WAREHOUSE_ID "
71+
databricks aitools tools query --warehouse WAREHOUSE_ID "
7272
CREATE OR REPLACE QUALITY MONITOR catalog.schema.my_table
7373
OPTIONS (OUTPUT_SCHEMA 'catalog.schema')
7474
"

experimental/databricks-vector-search/references/end-to-end-rag.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Build a complete Retrieval-Augmented Generation pipeline: prepare documents, cre
66

77
| Command | Step |
88
|---------|------|
9-
| `databricks experimental aitools tools query` | Create source table, insert documents |
9+
| `databricks aitools tools query` | Create source table, insert documents |
1010
| `databricks vector-search-endpoints create-endpoint` | Create compute endpoint |
1111
| `databricks vector-search-indexes create-index` | Create Delta Sync index with managed embeddings |
1212
| `databricks vector-search-indexes sync-index` | Trigger index sync |
@@ -37,7 +37,7 @@ INSERT INTO catalog.schema.knowledge_base VALUES
3737
Or via CLI:
3838

3939
```bash
40-
databricks experimental aitools tools query --warehouse WAREHOUSE_ID "
40+
databricks aitools tools query --warehouse WAREHOUSE_ID "
4141
CREATE TABLE IF NOT EXISTS catalog.schema.knowledge_base (
4242
doc_id STRING,
4343
title STRING,

0 commit comments

Comments
 (0)