Skip to main content

Build

Databricks Genie Agents

DatabricksOfficialCertified

Create, manage, and query Databricks Genie Agents (formerly Genie Spaces): curated agents over Unity Catalog tables, Metric Views, and documents in UC volumes. Use when building, migrating, tuning, or asking a specific Agent, and for document Q&A or docs + data agents (replaces the legacy Knowledge Assistant and Supervisor Agent). For data questions across the workspace, use databricks-data-discovery.

  • New
  • v1.0.5
  • Reviewed Jul 25
  • No reviews yet

Capabilities

  • Genie Agent Lifecycle

  • Commands

    Get the user's approval before create-space or update-space

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.5

Databricks Genie Agents

A Genie Agent is a curated agent scoped to one business area: its tables / Metric Views, documents (UC volumes), sample questions, and instructions. It answers by writing SQL on a warehouse and, in Agent mode, by searching its documents, so one turn can combine SQL results and cited files. Distinct from Genie One (databricks-data-discovery), which answers across your data without a curated Agent.

Replaces Knowledge Assistant and Supervisor Agent for docs + data. Both are legacy ("For new low-code agents over your documents and data, use Genie Agents"). Document Q&A (was a KA) = an Agent with a volume: no endpoint, no sync. Routing between data and docs (was a Supervisor over Genie + KA) = one Agent with tables + a volume. See Documents. An Agent can also attach Databricks-provided MCP connectors (Google Drive, Microsoft 365, Slack, Jira/Confluence, GitHub, ...; Beta, set up in the UI, Agent mode only). Custom MCP servers, UC functions, or other endpoints aren't supported; build a code agent (databricks-ml-training). To maintain an existing KA / Supervisor: legacy-ka-supervisor.md.

Genie Agent Lifecycle

Phase Reference Load when Typical CLI
Create / update create-genie-agent.md Building or editing an Agent: the workflow, the serialized_space payload format, and the CLI discover-schema → create-space / update-space
Attach documents create-genie-agent.md § Documents Document Q&A, docs + data, replacing a KA / Supervisor volumes create → update-space → probe in Agent mode
Query / converse / validate query-genie-agent.md Conversation API (tables), Agent mode API (needed for documents), Metric View SQL start-conversation / Agent mode responses
Improve (inspect / diagnose / benchmark / fix) improve-genie-agent.md Working with an existing Agent: wrong/empty answers, quality tuning, benchmark evaluation get-space; genie-create-eval-run; update-space
Export / migrate genie-agent-cicd.md Export, import, cross-workspace migration, batch migration, DABs/CI-CD get-space → remap → create-space
Optimization history uc-persistence.md Setting up UC Delta tables for multi-pass optimization history (CREATE TABLE DDL only)
Legacy legacy-ka-supervisor.md Maintaining or migrating an existing Knowledge Assistant / Supervisor Agent knowledge-assistants / supervisor-agents

Typical flow: create → query/validate → improve (diagnose / benchmark / fix, as needed).

Commands

Get the user's approval before create-space or update-space. Show the serialized_space, the warehouse, and the target path. One approval can cover a listed batch, such as the spaces in a migration.

An Agent is defined by a serialized_space JSON object (sources, sample questions, per-column context, instructions), kept in a local genie_agent.json and passed to the CLI. Core commands below; the lifecycle table points to the full workflow, payload schema, and flags.

bash
databricks genie list-spaces                                          # find Agents
databricks genie get-space SPACE_ID --include-serialized-space        # inspect config
databricks genie create-space WAREHOUSE_ID "$(jq -c . genie_agent.json)" \
  --title "..." --parent-path /Workspace/Users/[email protected]/genie_spaces   # create
databricks genie update-space SPACE_ID --serialized-space "$(jq -c . genie_agent.json)"  # full-replace edit
databricks genie start-conversation --no-wait SPACE_ID "a question"   # converse / validate (tables only)
databricks genie trash-space SPACE_ID                                 # delete

Documents (replaces KA and Supervisor)

Attach a managed UC volume in data_sources.volumes[]: create-space / update-space start indexing automatically, and documents are read in Agent mode only (the chat-mode start-conversation ignores them). Setup, waiting for indexing, adding documents to an existing Agent, permissions, limits, and evaluation: create-genie-agent.md § Documents.

Prerequisites

  • Tables / Metric Views in Unity Catalog and/or a managed UC volume of documents
  • SQL Warehouse to execute queries (auto-detected if not specified)
  • databricks-data-discovery: general natural-language data exploration / "ask Genie" (Genie One) across your data, when you are not targeting a specific curated Genie Agent
  • databricks-metric-views: governed business metrics that Genie consumes. See its SKILL.md for design rules that affect Genie answer quality, and query-patterns.md for the MEASURE() query rules Genie follows.
  • databricks-unstructured-pdf-generation: generate demo / eval PDFs to attach to an Agent as a volume
  • databricks-ml-training: code agents (ResponsesAgent) when you need orchestration Genie can't express
  • databricks-unity-catalog: manage the catalogs, schemas, tables, and volumes Genie uses

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from Databricks

View source →
databricks-data-discoveryDiscover, explore, and query Databricks data via Genie — the CLI equivalent of the Genie One MCP. MUST be invoked whenever the user asks to find or locate data ('what tables are in X', 'where does X live', 'which catalog/schema has Y'),…2 installsspark-python-data-sourceBuild custom Python data sources for Apache Spark using the PySpark DataSource API — batch and streaming readers/writers for external systems. Use this skill whenever someone wants to connect Spark to an external system (database, API,…1 installsdatabricks-python-sdkDatabricks development guidance including Python SDK, Databricks Connect, CLI, and REST API. Use when working with databricks-sdk, databricks-connect, or Databricks APIs.1 installsdatabricks-execution-computeExecute code and manage compute on Databricks: run Python/Scala/SQL/R via serverless, classic, or interactive clusters, and create/resize/delete clusters and SQL warehouses.1 installsdatabricks-setup-localPreviews, provisions, or diagnoses a uv-managed local Python .venv with `databricks environments setup-local`. Use when the user wants to set up or fix one for Databricks Connect, cluster or serverless compute, `--job-task`, or a bundle…1 installsdatabricks-serverless-migration-apiMigrate Databricks jobs to serverless through the Compute Migrations API and CLI, then track, review, and approve each migration. Use for automated job migrations managed by this service, scripts that start and track migrations, requests…0 installs

Frequently asked questions about databricks-genie-agents

What does the databricks-genie-agents skill do?

Create, manage, and query Databricks Genie Agents (formerly Genie Spaces): curated agents over Unity Catalog tables, Metric Views, and documents in UC volumes. Use when building, migrating, tuning, or asking a specific Agent, and for document Q&A or docs + data agents (replaces the legacy Knowledge Assistant and Supervisor Agent). For data questions across the workspace, use databricks-data-discovery. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the databricks-genie-agents skill?

Run `npx @skills-hub-ai/cli install databricks-genie-agents` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/databricks-genie-agents/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does databricks-genie-agents work with?

databricks-genie-agents runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the databricks-genie-agents skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use databricks-genie-agents after installing it?

In Claude Code, type `/databricks-genie-agents` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the databricks-genie-agents skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/databricks-genie-agents)](https://skills-hub.ai/skills/databricks-genie-agents)
HTML
<a href="https://skills-hub.ai/skills/databricks-genie-agents"><img src="https://skills-hub.ai/api/badges/skill/databricks-genie-agents" alt="Install on Skills Hub"></a>

More options in the badge docs.