databricks-ai-function…
Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar,…
Previews, 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 target, or when setup-local fails.
Claude Code
$ npx -y skills add databricks/databricks-agent-skills --skill databricks-setup-local --agent claude-code
Codex
$ npx skills add databricks/databricks-agent-skills --skill databricks-setup-local -a codex -y
Cursor
$ npx skills add databricks/databricks-agent-skills --skill databricks-setup-local -a cursor -y
Gemini CLI
$ npx skills add databricks/databricks-agent-skills --skill databricks-setup-local -a gemini-cli -y
GitHub Copilot
$ npx skills add databricks/databricks-agent-skills --skill databricks-setup-local -a github-copilot -y
OpenCode
$ npx skills add databricks/databricks-agent-skills --skill databricks-setup-local -a opencode -y
Windsurf
$ npx skills add databricks/databricks-agent-skills --skill databricks-setup-local -a windsurf -y
name: databricks-setup-local description: "Previews, 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 target, or when setup-local fails." compatibility: Requires databricks CLI (>= v1.16.0) and uv metadata: version: "0.1.0" parent: databricks-core
**REQUIRED FIRST:** Use `databricks-core` for CLI, authentication, and profile selection. Never use a default profile. For an existing environment, use `databricks-execution-compute`.
The CLI must be >= v1.16.0 -- the release that added `--no-dbconnect` and the `E_PROVISION_CONFLICT` failure this skill routes. Compare deterministically -- never eyeball the version (1.9.0 is older than 1.16.0, and a lexical string compare gets this wrong). Run this gate first and do not proceed if it exits non-zero:
# Subshell so a failed gate reports non-zero without closing a persistent shell.
(
# Read stdout only -- upgrade nags on stderr carry their own semver and would win the parse.
if ! raw="$(databricks version 2>/dev/null)"; then
echo "STOP: databricks CLI is missing or failed to run -- install or upgrade it via databricks-core first"
exit 1
fi
have="$(printf '%s\n' "$raw" | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -n1 | tr -d v)"
[ -n "$have" ] || have="$(printf '%s\n' "$raw" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -n1)"
if [ -z "$have" ]; then
echo "STOP: could not read a version from 'databricks version' -- upgrade via databricks-core first"
exit 1
fi
case "$raw" in
*-dev*)
echo "NOTE: dev build $have -- the floor cannot be checked; ask the user to confirm this build has setup-local"
;;
*)
if [ "$(printf '%s\n%s\n' "1.16.0" "$have" | sort -V | head -n1)" != "1.16.0" ]; then
echo "STOP: databricks CLI $have is older than v1.16.0, the floor this skill requires -- older CLIs can run setup-local but not as documented here; upgrade via databricks-core first"
exit 1
fi
;;
esac
)Only after the gate passes, authenticate with the selected profile:
databricks auth describe --profile <PROFILE>
Prefer the latest stable CLI; no online lookup is required. If the gate exits non-zero (older than v1.16.0, missing CLI, or no readable version), or `setup-local` is absent from help, reports `unknown command`, or rejects a flag this skill tells you to pass, stop. If it prints `NOTE: dev build`, the floor is unverifiable -- confirm with the user before continuing. Use `databricks-core` to upgrade with approval and verify; never recreate `setup-local` manually.
Use the selected profile for every workspace command. Do not convert another package manager without approval.
Confirm the root containing (or intended to contain) `pyproject.toml`, `.venv`, and `uv.lock`; ask if multiple roots are plausible. Use it for preview and apply. It must be greenfield or `uv`-managed, but need not be writable for preview.
Choose exactly one branch:
Never combine compute flags. If no branch resolves, ask the user.
Dry-run first; it writes and installs nothing:
databricks environments setup-local --profile <PROFILE> <TARGET_ARGS> --dry-run --output json
For bundles, `<TARGET_ARGS>` is empty or `--target <BUNDLE_TARGET>`. Default to normal mode. Use `--no-dbconnect` only when the user explicitly does not want this command managing `databricks-connect`; the result's `mode` still reports `constraints-only` for it. See [JSON output](references/json-output.md) and [examples](references/examples.md).
Before apply, verify the directory is writable and run `uv --version`. Ask before installing `uv`; never silently set `DATABRICKS_LOCALENV_AUTO_INSTALL_UV=1` or run a remote installer.
Show the target, versions, warnings, `plan.diff`, and directory. Explain that apply may:
For `--serverless-version N` in a bundle, also disclose the post-apply job YAML synchronization described below so approval covers both mutations.
Apply only after the user requested provisioning or approves that plan for the named directory. Preserve the directory, profile, target, and mode.
If the directory, profile, target, mode, or project files change after preview, rerun `--dry-run`, show the new plan, and obtain approval again. Treat its resolved Python, `databricks-connect`, and managed constraints as authoritative; do not substitute guessed versions. Reconcile user-owned dependency conflicts separately, with approval.
Build on Databricks with AI coding agents such as Claude Code, Cursor, Codex, GitHub Copilot, and many others. This repository provides the skills and agent plugins for Databricks AI Tools.
Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar,…
Databricks AI Runtime, the `databricks air` CLI commands for submitting and managing GPU training workloads on Databricks…
Create Databricks AI/BI dashboards. Must use when creating, updating, or deploying Lakeview dashboards as Databricks Dashboard…
Design the UX of custom-code Databricks Apps (AppKit/React) data screens — KPI/overview pages, reports, charts, tables, and…
Python backend for Databricks Apps — FastAPI (default), Flask, Dash, Streamlit, Gradio, Reflex. **Default for a new Databricks…
Build apps on Databricks Apps platform. Use when asked to create data apps, analytics tools, or custom interactive…
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…