# databricks-python-sdk

Guidance for building with the Databricks Python SDK, Connect, CLI, and REST API. Use it when your code needs to work with Databricks services.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 358 installs · ★ 408 repo stars
- Author: databricks
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/databricks/databricks-agent-skills/tree/HEAD/skills/databricks-python-sdk/SKILL.md
- Updated: 2026-11-10
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/databricks-python-sdk

## What it does

This skill guides an agent through Databricks SDK, Connect, CLI, and REST API workflows. Its examples cover clusters, jobs, and SQL statements; an API index points to method references, with additional samples in the skill’s examples directory. For endpoints the SDK does not cover, it shows how to call the REST API through an authenticated client.

Databricks Connect lets local Spark code run against a Databricks cluster. Install `databricks-connect` for Spark work or `databricks-sdk` for SDK operations; credentials can come from `~/.databrickscfg` or environment variables. The Databricks CLI must be version `1.0.0` or later. Do not set `.master("local[*]")` with Databricks Connect, as that causes problems.

## Requirements
- Works with: Databricks

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add databricks/databricks-agent-skills --skill databricks-python-sdk -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/databricks-python-sdk/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/databricks-python-sdk/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add databricks/databricks-agent-skills --skill databricks-python-sdk -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/databricks-python-sdk/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add databricks/databricks-agent-skills --skill databricks-python-sdk -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/databricks-python-sdk/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install databricks/databricks-agent-skills skills/databricks-python-sdk
```

2. **Manually: put the files in place**
- File: `.github/skills/databricks-python-sdk/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add databricks/databricks-agent-skills --skill databricks-python-sdk -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/databricks/databricks-agent-skills --path skills/databricks-python-sdk
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/databricks-python-sdk/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add databricks/databricks-agent-skills --skill databricks-python-sdk -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/databricks/databricks-agent-skills/tree/HEAD/skills/databricks-python-sdk/SKILL.md

## When to use it
- list Databricks clusters with the Python SDK
- create and run a Databricks job
- execute a SQL statement on a warehouse
- call a REST endpoint not yet covered by the SDK
- run local Spark code against a Databricks cluster

## Example prompts
- Show me how to list Databricks clusters with the Python SDK.
- Create a notebook job and start it through the Databricks SDK.
- Connect this local Spark code to a Databricks cluster with Databricks Connect.

## Similar
- [databricks-expert](https://affpapa.org/en/nevibecode/skills/databricks-expert.md) — skill · 215 installs
- [databricks-2025](https://affpapa.org/en/nevibecode/skills/databricks-2025.md) — skill · 168 installs
- [oracle-ai-data-platform-workbench-databricks-migrator](https://affpapa.org/en/nevibecode/plugins/oracle-ai-data-platform-workbench-databricks-migrator.md) — plugin · ★ 62 repo stars
- [databricks](https://affpapa.org/en/nevibecode/rules/databricks.md) — rule · ★ 3589 repo stars
- [data-engineering-patterns-fabric-databricks](https://affpapa.org/en/nevibecode/skills/data-engineering-patterns-fabric-databricks.md) — skill · 1600 installs
- [azure-databricks-platform-architect](https://affpapa.org/en/nevibecode/agents/azure-databricks-platform-architect.md) — subagent · ★ 6505 repo stars

From the same set: [databricks/databricks-agent-skills](https://affpapa.org/en/nevibecode/by/databricks/databricks-agent-skills.md) — 30 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
