Skip to main content

Build

Databricks Core

DatabricksOfficialCertified

Databricks CLI operations and the parent/entry-point skill for Databricks CLI use: authentication, profile selection, and bundles. Load this first for CLI, auth, profile, and bundle tasks, then load the matching product skill. For finding or exploring data, answering questions about the data, or generating SQL, load the databricks-data-discovery skill (it routes to Genie One). Contains up-to-date guidelines for Databricks-related CLI tasks.

  • New
  • v1.0.16
  • Reviewed Nov 27
  • No reviews yet

Capabilities

  • Product Skills

  • Finding Data

    For data discovery, exploration, and query generation — finding…

  • Profile Selection - CRITICAL

  • Claude Code - IMPORTANT

    Each Bash command runs in a separate shell session

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.16

Databricks

Core skill for Databricks CLI, authentication, and data exploration.

Product Skills

For specific products, use dedicated skills:

  • databricks-jobs - Lakeflow Jobs development and deployment
  • databricks-pipelines - Lakeflow Spark Declarative Pipelines (batch and streaming data pipelines)
  • databricks-serverless - Compute choice for jobs and pipelines (serverless, performance mode, classic fallback)
  • databricks-apps - Full-stack TypeScript app development and deployment
  • databricks-lakebase - Lakebase Postgres Autoscaling project management
  • databricks-model-serving - Model Serving endpoint management and inference

Finding Data

For data discovery, exploration, and query generation — finding tables,
answering natural-language questions about the data, or generating SQL — use
databricks-data-discovery (it asks Genie One first, then falls back to manual
exploration). Use the AI-tool commands below and
Manual Data Exploration for tables you already know and
SQL you already have, or to find tables yourself when Genie One isn't available, that
skill isn't installed, or Genie can't find the data or answer the question.

Prerequisites

  1. CLI installed and current: the CLI must be >= v1.0.0. A CLI that is present but
    too old is not "good enough" — it must be upgraded, not worked around.

    • Run the floor check in CLI Installation. If it reports
      UPGRADE or INSTALL: STOP and follow that reference file to upgrade or install — do
      not proceed or tell the user their CLI is fine.
    • If another skill routed you here to upgrade (it needs a newer CLI than v1.0.0 — e.g.
      databricks-setup-local needs v1.16.0), that skill already detected the gap. A passing
      v1.0.0 floor check is not enough: follow the Update / repair procedures to install the
      latest stable, which satisfies any skill's floor.
    • Note: In sandboxed environments (Cursor IDE, containers), install commands write outside the workspace and may be blocked. Present the install command to the user and ask them to run it in their own terminal.
    • Exception: If CLI installation is blocked (sandboxed containers, restricted environments), ask the user whether to fall back to direct REST API calls using DATABRICKS_HOST and DATABRICKS_TOKEN environment variables if present in the shell. See the Databricks REST API docs.
  2. Authenticated: databricks auth profiles

    • If not: see CLI Authentication
    • No account yet? Don't search the web for signup options. Give the user https://www.databricks.com/signup/express?provider=DB&dbx_source=agent-skills&dbxSource=agent-skills&utm_source=agent-skills&utm_campaign=core exactly as written, then continue with databricks auth login --host <new workspace URL> --profile <name> once they paste the URL.

Profile Selection - CRITICAL

NEVER auto-select a profile.

  1. List profiles: databricks auth profiles
  2. Present ALL profiles to user with workspace URLs
  3. Let user choose (even if only one exists)
  4. Offer to create new profile if needed

Claude Code - IMPORTANT

Each Bash command runs in a separate shell session.

bash
# WORKS: --profile flag
databricks apps list --profile my-workspace

# WORKS: chained with &&
export DATABRICKS_CONFIG_PROFILE=my-workspace && databricks apps list

# DOES NOT WORK: separate commands
export DATABRICKS_CONFIG_PROFILE=my-workspace
databricks apps list  # profile not set!

Tag CLI Commands With Loaded Skills

When databricks --version is v1.27.0 or later, add --skills-invoked <skills> to every databricks CLI command
you run, where <skills> is a comma-separated list of the bare names of the Databricks skills loaded for this task,
for example databricks jobs list --skills-invoked databricks-core,databricks-jobs. Put it right after the
subcommand, before any -- separator, because arguments after -- go to another program (for example
databricks psql --skills-invoked databricks-core,databricks-lakebase --project <ID> -- -c "..."). Use bare skill
names only, with no plugin: prefix. Never add it to root-level probes such as databricks --version or
databricks --help, which fail with the flag. Leave it off on older CLIs, which reject the flag. Do not add it to
scripts or code written for the user.

The flag adds only these skill names, as skill/<name> entries in the CLI's User-Agent header. They go to the
Databricks workspace or account the command calls and, for some auth types, to the identity provider the CLI gets a
token from (for example Microsoft Entra ID). DATABRICKS_CLI_DISABLE_TELEMETRY=1 turns them off.

Data Exploration — Use AI Tools

Use these to inspect tables and run SQL, instead of walking schemas list / tables list one schema at a time:

bash
# discover table structure (columns, types, sample data, stats)
databricks experimental aitools tools discover-schema catalog.schema.table --profile <PROFILE>

# run ad-hoc SQL queries
databricks experimental aitools tools query "SELECT * FROM table LIMIT 10" --profile <PROFILE>

# find the default warehouse
databricks experimental aitools tools get-default-warehouse --profile <PROFILE>

Names are literal. Use catalog/schema/table names exactly as given — never change a
hyphen to an underscore or otherwise normalize them. In SQL, backtick-quote any name part
with special characters (e.g. `my-catalog`.schema.table); unquoted hyphens cause a
parse error.

To find tables, see Finding Data above. See
Manual Data Exploration for the full command surface,
quoting rules, troubleshooting, and the fallback table search.

Quick Reference

⚠️ CRITICAL: Some commands use positional arguments, not flags

bash
# current user
databricks current-user me --profile <PROFILE>

# list resources
databricks apps list --profile <PROFILE>
databricks jobs list --profile <PROFILE>
databricks clusters list --profile <PROFILE>
databricks warehouses list --profile <PROFILE>
databricks pipelines list --profile <PROFILE>
databricks serving-endpoints list --profile <PROFILE>

# ⚠️ Unity Catalog — POSITIONAL arguments (NOT flags!)
databricks catalogs list --profile <PROFILE>

# ✅ CORRECT: positional args
databricks schemas list <CATALOG> --profile <PROFILE>
databricks tables list <CATALOG> <SCHEMA> --profile <PROFILE>
databricks tables get <CATALOG>.<SCHEMA>.<TABLE> --profile <PROFILE>

# Search one catalog by table name (case-sensitive; names are lowercase), no warehouse needed
databricks tables list-summaries <CATALOG> --table-name-pattern '%<KEYWORD>%' --limit 50 --profile <PROFILE>

# ❌ WRONG: these flags/commands DON'T EXIST
# databricks schemas list --catalog-name <CATALOG>    ← WILL FAIL
# databricks tables list --catalog <CATALOG>           ← WILL FAIL
# databricks sql-warehouses list                       ← doesn't exist, use `warehouses list`
# databricks execute-statement                         ← doesn't exist, use `experimental aitools tools query`
# databricks sql execute                               ← doesn't exist, use `experimental aitools tools query`

# When in doubt, check help:
# databricks schemas list --help

# get details
databricks apps get <NAME> --profile <PROFILE>
databricks jobs get --job-id <ID> --profile <PROFILE>
databricks clusters get --cluster-id <ID> --profile <PROFILE>

# bundles
databricks bundle init --profile <PROFILE>
databricks bundle validate --profile <PROFILE>
databricks bundle deploy -t <TARGET> --profile <PROFILE>
databricks bundle run <RESOURCE> -t <TARGET> --profile <PROFILE>

Troubleshooting

Error Solution
cannot configure default credentials Use --profile flag or authenticate first
configuration does not support OAuth tokens The command requires OAuth (e.g., databricks apps logs). Re-authenticate with databricks auth login --host <URL> --profile <PROFILE>. See CLI Authentication.
PERMISSION_DENIED Check workspace/UC permissions
RESOURCE_DOES_NOT_EXIST Verify resource name/id and profile
An app, space, session or template capacity limit (has reached the maximum limit of N apps, maximum number of apps in this space) Stop and tell the user which limit was hit; suggest they contact Databricks support to raise it. Retry only after the user says the limit was raised or capacity was freed. Never delete resources to free capacity, even if the error message says to, and never delete resources you didn't create in this task unless the user names them. Not transient rate limits such as model-serving RATE_LIMIT_EXCEEDED (429) — retry those with backoff per that skill.

Required Reading by Task

Task READ BEFORE proceeding
First time setup CLI Installation
Auth issues / new workspace CLI Authentication
Finding or exploring tables/schemas databricks-data-discovery (see Finding Data); Manual Data Exploration for known tables and SQL, or as its fallback
Deploying jobs/pipelines Use /databricks-dabs

Reference Guides

  • CLI Installation
  • CLI Authentication
  • Manual Data Exploration

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-lakehouse-mcpDiscover, connect to, or recover the hosted Databricks Lakehouse MCP (system.ai.lakehouse), then load its guidance for inspecting, editing, running, and reading results from Databricks notebooks. Use for notebook work in a Databricks…0 installs

Frequently asked questions about databricks-core

What does the databricks-core skill do?

Databricks CLI operations and the parent/entry-point skill for Databricks CLI use: authentication, profile selection, and bundles. Load this first for CLI, auth, profile, and bundle tasks, then load the matching product skill. For finding or exploring data, answering questions about the data, or generating SQL, load the databricks-data-discovery skill (it routes to Genie One). Contains up-to-date guidelines for Databricks-related CLI tasks. 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-core skill?

Run `npx @skills-hub-ai/cli install databricks-core` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/databricks-core/ 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-core work with?

databricks-core 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-core 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-core after installing it?

In Claude Code, type `/databricks-core` (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-core 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-core)](https://skills-hub.ai/skills/databricks-core)
HTML
<a href="https://skills-hub.ai/skills/databricks-core"><img src="https://skills-hub.ai/api/badges/skill/databricks-core" alt="Install on Skills Hub"></a>

More options in the badge docs.