databricks-genie

Create and query Databricks Genie Spaces for natural language SQL data exploration.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/AarushiShah/coding-agents-databricks-apps --skill databricks-genie-aarushishah
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-genie
Source: https://github.com/AarushiShah/coding-agents-databricks-apps/tree/main/.claude/skills/databricks-genie
Command: npx skills add https://github.com/AarushiShah/coding-agents-databricks-apps --skill databricks-genie-aarushishah

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Analysts and business users often need answers from Unity Catalog data without writing SQL, and data teams need a governed way to expose curated datasets conversationally. This Skill guides the creation of Genie Spaces and programmatic querying through the Genie Conversation API. ## Core Features & Use Cases - Genie Space Management: Create, update, list, inspect, and delete Genie Spaces connected to Unity Catalog tables with auto-detected SQL warehouses. - Conversation API: Ask natural language questions via ask_genie and maintain context across follow-up questions with ask_genie_followup. - Schema-Guided Setup: Inspect table schemas with get_table_details before creating spaces so sample questions and descriptions reference real columns. - Use Case: After building silver-layer sales tables, create a "Sales Analytics" Genie Space with sample questions, then ask "What were total sales last month?" and receive the generated SQL plus results. ## Quick Start Ask the agent to inspect your Unity Catalog tables, create a Genie Space over them with sample questions, and then ask it a natural language question about your data.

Frequently Asked Questions about databricks-genie

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Databricks Genie Space?

First inspect your Unity Catalog tables with get_table_details, then call create_or_update_genie with a display name, table identifiers, a description of table relationships, and sample questions referencing actual column names. A SQL warehouse is auto-detected if not specified.

How do I ask questions to a Genie Space programmatically?

Use the ask_genie tool with a space_id and your natural language question. It returns the generated SQL, columns, data rows, and a conversation_id you can pass to ask_genie_followup for context-aware follow-up questions.

When should I use Genie instead of direct SQL queries?

Use Genie when the space has curated business logic, certified metrics, or when users want conversational exploration. Use execute_sql directly for simple ad-hoc queries, when you already have exact SQL, or when no Genie Space exists for the data.

Why is my Genie Space generating poor SQL queries?

Poor query generation usually stems from vague column names, missing table comments, or sample questions that don't reference real columns. Add descriptive names, table comments, and instructions via the Databricks Genie UI to improve accuracy.

What happens if no SQL warehouse is available for Genie?

Space creation fails with a no-warehouse error. Create a SQL warehouse in your Databricks workspace first, or pass an explicit warehouse_id to create_or_update_genie to target a specific warehouse.