You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`list` shows all sessions with a `*` marker on the active one.
245
-
-`new` creates a session and sets it as active.
246
-
-`set` switches the active session. Omit the ID to clear the active session.
247
-
-`read` prints the markdown content of the current session.
248
-
-`update` modifies the name or markdown of a session (defaults to the active session).
249
-
-`run` runs a command with the hotdata CLI sandboxed in a session. Creates a new session unless a session ID is provided before `run`. Useful for launching an agent that can only access session data. Nesting sessions is not allowed.
240
+
-`list` shows all sandboxes with a `*` marker on the active one.
241
+
-`new` creates a sandbox and sets it as active.
242
+
-`set` switches the active sandbox. Omit the ID to clear the active sandbox.
243
+
-`read` prints the markdown content of the current sandbox.
244
+
-`update` modifies the name or markdown of a sandbox (defaults to the active sandbox).
245
+
-`run` runs a command with the hotdata CLI scoped to a sandbox. Creates a new sandbox unless a sandbox ID is provided before `run`. Useful for launching an agent that can only access sandbox data. Nesting sandboxes is not allowed.
Copy file name to clipboardExpand all lines: skills/hotdata/SKILL.md
+35-42Lines changed: 35 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: hotdata
3
-
description: Use this skill when the user wants to run hotdata CLI commands, query the Hotdata API, list workspaces, list connections, create connections, list tables, manage datasets, execute SQL queries, manage saved queries, search tables, manage indexes, manage sessions, or interact with the hotdata service. Activate when the user says "run hotdata", "query hotdata", "list workspaces", "list connections", "create a connection", "list tables", "list datasets", "create a dataset", "upload a dataset", "execute a query", "search a table", "list indexes", "create an index", "list saved queries", "run a saved query", "list sessions", "create a session", "run a session", or asks you to use the hotdata CLI.
3
+
description: Use this skill when the user wants to run hotdata CLI commands, query the Hotdata API, list workspaces, list connections, create connections, list tables, manage datasets, execute SQL queries, inspect query run history, search tables, manage indexes, manage sandboxes, or interact with the hotdata service. Activate when the user says "run hotdata", "query hotdata", "list workspaces", "list connections", "create a connection", "list tables", "list datasets", "create a dataset", "upload a dataset", "execute a query", "search a table", "list indexes", "create an index", "list query runs", "list past queries", "query history", "list sandboxes", "create a sandbox", "run a sandbox", or asks you to use the hotdata CLI.
4
4
version: 0.1.9
5
5
---
6
6
@@ -29,13 +29,12 @@ API URL defaults to `https://api.hotdata.dev/v1` or overridden via `HOTDATA_API_
29
29
30
30
All commands that accept `--workspace-id` are optional. If omitted, the active workspace is used. Use `hotdata workspaces set` to switch the active workspace interactively, or pass a workspace ID directly: `hotdata workspaces set <workspace_id>`. The active workspace is shown with a `*` marker in `hotdata workspaces list`. **Omit `--workspace-id` unless you need to target a specific workspace.**
These are **patterns** built from the commands below—not separate CLI subcommands:
35
35
36
36
-**Model** — Markdown semantic map of your workspace (entities, keys, joins). Refresh using `connections`, `connections refresh`, `tables list`, and `datasets list`. For a **deep** modeling pass (connector enrichment, indexes, per-table detail), see [references/MODEL_BUILD.md](references/MODEL_BUILD.md).
-**History** — Inspect prior activity via `hotdata queries list` (query runs) and `hotdata results list` / `results <id>` (row data).
39
38
-**Chain** — Follow-ups via **`datasets create`** then `query` against `datasets.main.<table>`.
40
39
-**Indexes** — Review SQL and schema, compare to existing indexes, create **sorted**, **bm25**, or **vector** indexes when it clearly helps; see [references/WORKFLOWS.md](references/WORKFLOWS.md#indexes).
- Query output also includes a `result-id` in the footer (e.g. `[result-id: rslt...]`).
216
215
-**Always use `results list` / `results <id>` to retrieve past query results rather than re-running the same query.** Re-running queries wastes resources and may return different results.
217
216
218
-
### Saved Queries
217
+
### Query Run History
219
218
```
220
-
hotdata queries list [--limit <int>] [--offset <int>] [--format table|json|yaml]
-`list` shows saved queries with name, description, tags, and version.
227
-
- View a query by ID to see its formatted and syntax-highlighted SQL.
228
-
-`create` requires `--name` and `--sql`. Tags are comma-separated.
229
-
-`update` accepts any combination of `--name`, `--sql`, `--description`, and `--tags` to change those fields.
230
-
-`update` also supports `--category` and `--table-size` for metadata; pass an **empty string** for either flag to clear its value.
231
-
-`run` executes a saved query and displays results like the `query` command.
232
-
-**Use `queries run` instead of re-typing SQL when a saved query exists.**
222
+
-`list` shows query runs with status, creation time, duration, row count, and a truncated SQL preview (default limit 20).
223
+
-`--status` filters by run status (comma-separated, e.g. `--status running,failed`).
224
+
- View a run by ID to see full metadata (timings, `result_id`, snapshot, hashes) and the formatted, syntax-highlighted SQL.
225
+
- If a run has a `result_id`, fetch its rows with `hotdata results <result_id>`.
233
226
234
227
### Search
235
228
```
@@ -276,38 +269,38 @@ hotdata auth status # Check current auth status
276
269
hotdata auth logout # Remove saved auth for the default profile
277
270
```
278
271
279
-
### Sessions
272
+
### Sandboxes
280
273
281
-
Sessions are for **ad-hoc, exploratory work** that does not need to be long-lived. They group related CLI activity (queries, dataset operations, etc.) under a single context so it can be tracked and cleaned up together. **Datasets created inside a session are tied to that session and will be removed when the session ends.** If you need data to persist beyond the session, create datasets outside of a session context.
274
+
Sandboxes are for **ad-hoc, exploratory work** that does not need to be long-lived. They group related CLI activity (queries, dataset operations, etc.) under a single context so it can be tracked and cleaned up together. **Datasets created inside a sandbox are tied to that sandbox and will be removed when the sandbox ends.** If you need data to persist beyond the sandbox, create datasets outside of a sandbox context.
282
275
283
-
> **IMPORTANT: If `HOTDATA_SESSION` is set in the environment, you are inside an active session. NEVER attempt to unset, override, or work around this variable. Do not clear it, do not start a new session, do not run `sessions run` or `sessions new` or `sessions set`. All your work should be attributed to the current session. Attempting to nest or escape a session will fail with an error.**
276
+
> **IMPORTANT: If `HOTDATA_SANDBOX` is set in the environment, you are inside an active sandbox. NEVER attempt to unset, override, or work around this variable. Do not clear it, do not start a new sandbox, do not run `sandbox run` or `sandbox new` or `sandbox set`. All your work should be attributed to the current sandbox. Attempting to nest or escape a sandbox will fail with an error.**
284
277
285
278
```
286
-
hotdata sessions list [-w <workspace_id>] [-o table|json|yaml]
-`list` shows all sessions with a `*` marker on the active one.
297
-
-`new` creates a session and sets it as active. Blocked inside an existing session.
298
-
-`set` switches the active session. Omit the ID to clear. Blocked inside an existing session.
299
-
-`read` prints the markdown content of the current session. Use this to retrieve session state at the start of work or between steps.
300
-
-`update` modifies a session's name or markdown. Defaults to the active session if no ID is given. The `--markdown` field is for writing details about the work being done in the session — observations, intermediate findings, next steps, etc. This state persists for the life of the session and is the primary way to record context that should survive across commands or agent invocations within the session.
301
-
-`run` launches a command with `HOTDATA_SESSION` and `HOTDATA_WORKSPACE` set in the child process environment. Creates a new session unless a session ID is provided before `run`. Blocked inside an existing session.
302
-
- When inside a session (HOTDATA_SESSION is set), all API requests automatically include the session ID — no extra flags needed.
289
+
-`list` shows all sandboxes with a `*` marker on the active one.
290
+
-`new` creates a sandbox and sets it as active. Blocked inside an existing sandbox.
291
+
-`set` switches the active sandbox. Omit the ID to clear. Blocked inside an existing sandbox.
292
+
-`read` prints the markdown content of the current sandbox. Use this to retrieve sandbox state at the start of work or between steps.
293
+
-`update` modifies a sandbox's name or markdown. Defaults to the active sandbox if no ID is given. The `--markdown` field is for writing details about the work being done in the sandbox — observations, intermediate findings, next steps, etc. This state persists for the life of the sandbox and is the primary way to record context that should survive across commands or agent invocations within the sandbox.
294
+
-`run` launches a command with `HOTDATA_SANDBOX` and `HOTDATA_WORKSPACE` set in the child process environment. Creates a new sandbox unless a sandbox ID is provided before `run`. Blocked inside an existing sandbox.
295
+
- When inside a sandbox (HOTDATA_SANDBOX is set), all API requests automatically include the sandbox ID — no extra flags needed.
303
296
304
-
#### Example: Building a data model in a session
297
+
#### Example: Building a data model in a sandbox
305
298
306
-
Use a session to explore tables and iteratively build a model description in the session markdown.
299
+
Use a sandbox to explore tables and iteratively build a model description in the sandbox markdown.
307
300
308
-
1. Start a session:
301
+
1. Start a sandbox:
309
302
```
310
-
hotdata sessions new --name "Model: sales pipeline"
303
+
hotdata sandbox new --name "Model: sales pipeline"
311
304
```
312
305
2. Inspect tables and columns:
313
306
```
@@ -318,9 +311,9 @@ Use a session to explore tables and iteratively build a model description in the
318
311
hotdata query "SELECT DISTINCT status FROM sales.public.deals LIMIT 20"
319
312
hotdata query "SELECT count(*), count(DISTINCT account_id) FROM sales.public.deals"
320
313
```
321
-
4. Write findings into the session markdown as you go:
314
+
4. Write findings into the sandbox markdown as you go:
322
315
```
323
-
hotdata sessions update --markdown "## sales pipeline model
316
+
hotdata sandbox update --markdown "## sales pipeline model
324
317
325
318
### deals (sales.public.deals)
326
319
- PK: id
@@ -337,7 +330,7 @@ Use a session to explore tables and iteratively build a model description in the
337
330
- check how line_items joins to deals
338
331
- confirm revenue column semantics"
339
332
```
340
-
5. Continue exploring and update the markdown as the model takes shape. The markdown is the living artifact — when the session ends, its content captures what was learned.
333
+
5. Continue exploring and update the markdown as the model takes shape. The markdown is the living artifact — when the sandbox ends, its content captures what was learned.
341
334
342
335
Other commands (not covered in detail above): `hotdata connections new` (interactive connection wizard), `hotdata skills install|status`, `hotdata completions <bash|zsh|fish>`.
0 commit comments