/databricks-skills:cookbook-unity-catalogfrom databricks-skills
Browse Unity Catalog objects (catalogs, schemas) from Databricks Apps using the Databricks SDK. Includes recipes for Streamlit, Reflex, and Dash.
Ships in databricks-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
List and browse Unity Catalog objects (catalogs and schemas) from your Databricks App using the Databricks SDK.
import streamlit as st
import pandas as pd
import datetime
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
def get_catalogs():
catalogs = w.catalogs.list()
data = []
for catalog in catalogs:
data.append({
"Name": catalog.name,
"Owner": catalog.owner,
"Comment": catalog.comment,
"Created": datetime.datetime.fromtimestamp(catalog.created_at / 1000),
})
return pd.DataFrame(data)
def get_schemas(catalog_name):
schemas = w.schemas.list(catalog_name=catalog_name, max_results=10)
data = []
for schema in schemas:
data.append({
"Name": schema.full_name,
"Owner": schema.owner,
"Comment": schema.comment,
})
return pd.DataFrame(data)
if st.button("Get catalogs"):
catalogs_df = get_catalogs()
st.dataframe(catalogs_df)
catalog_names = catalogs_df["Name"].tolist()
selected = st.selectbox("Choose a catalog", options=catalog_names)
if st.button("Get schemas"):
schemas_df = get_schemas(selected)
st.dataframe(schemas_df)
import reflex as rx
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
class CatalogState(rx.State):
catalog_data: list[list[str]] = []
schema_data: list[list[str]] = []
catalog_names: list[str] = []
selected_catalog: str = ""
@rx.event
def load_catalogs(self):
catalogs = w.catalogs.list()
self.catalog_data = [
[c.name, c.owner or "", c.comment or ""]
for c in catalogs
]
self.catalog_names = [c.name for c in catalogs]
@rx.event
def load_schemas(self):
schemas = w.schemas.list(catalog_name=self.selected_catalog)
self.schema_data = [
[s.name, s.owner or "", s.comment or ""]
for s in schemas
]
from databricks.sdk import WorkspaceClient
import pandas as pd
import datetime
w = WorkspaceClient()
def get_catalogs():
catalogs = w.catalogs.list()
return pd.DataFrame([{
"Name": c.name,
"Owner": c.owner,
"Comment": c.comment,
"Created": datetime.datetime.fromtimestamp(c.created_at / 1000),
} for c in catalogs])
def get_schemas(catalog_name):
schemas = w.schemas.list(catalog_name=catalog_name, max_results=10)
return pd.DataFrame([{
"Name": s.full_name,
"Owner": s.owner,
"Comment": s.comment,
} for s in schemas])
The app service principal needs:
USE CATALOG on catalogs to listUSE SCHEMA on schemas to browseTo list all catalogs, the metastore admin role is required. Otherwise only catalogs the service principal has privileges on are returned.
databricks-sdk
pandas
Plus your framework package (dash, streamlit, or reflex).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/cookbook-aimlInvoke ML models, run vector search, and connect to MCP servers from Databricks Apps. Use when the user wants to call a model serving endpoint, query a vector search index, use LLMs/embeddings, or connect to an MCP server in Dash, Streamlit, Reflex, or FastAPI./cookbook-authenticationImplement authentication in Databricks Apps: get current user info, on-behalf-of-user (OBO) auth, service principal auth, and OAuth patterns. Use when the user asks about auth, user tokens, service principals, OAuth, or OBO in Dash, Streamlit, Reflex, or FastAPI./cookbook-biEmbed AI/BI dashboards and integrate Genie Spaces into Databricks Apps. Use when the user wants to embed a Databricks dashboard or build a chat interface with the Genie Conversations API in Dash, Streamlit, or Reflex./build-appBuild Databricks Apps from this cookbook: minimum folder layout and app.yaml per framework (Dash, Streamlit, Reflex, FastAPI), multi-page wiring, docs category-first workflow then README recipes, runtime rules, combining recipes. Feature code only from repo samples and docs/docs/*.mdx. After the app runs, follow [`productionize-app-dab`](../productionize-app-dab/SKILL.md) for Databricks Asset Bundles (DABs). Do not use for AppKit, Genie App Builder, AI/BI dashboards, or coding-agent MCP config — see When not to use this skill./cookbook-computeConnect Databricks Apps to shared clusters or serverless compute using Databricks Connect. Use when the user needs to run Spark SQL or Python on a cluster from a Dash, Streamlit, or Reflex app./cookbook-external-servicesConnect Databricks Apps to external services using Unity Catalog HTTP connections and retrieve Databricks secrets. Use when the user needs to call external APIs (GitHub, Jira, Slack), set up MCP connections, or access secrets from Dash, Streamlit, or Reflex apps.npx claudepluginhub databricks-solutions/databricks-apps-cookbook --plugin databricks-skillsOther plugins' skills for the same job