Claude-skill-registry databricks-config
Configure Databricks profile and authenticate for Databricks Connect, Databricks CLI, and Databricks SDK.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/databricks-config" ~/.claude/skills/majiayu000-claude-skill-registry-databricks-config && rm -rf "$T"
manifest:
skills/data/databricks-config/SKILL.mdsource content
Configure the Databricks profile in ~/.databrickscfg for use with Databricks Connect.
Usage:
/databricks-config [profile_name|workspace_host]
Examples:
- Configure DEFAULT profile (interactive)/databricks-config
- Configure DEFAULT profile/databricks-config DEFAULT
- Configure profile named "my-workspace"/databricks-config my-workspace
- Configure using workspace host URL/databricks-config https://adb-1234567890123456.7.azuredatabricks.net/
Task
-
Determine the profile and host:
- If a parameter is provided and it starts with
, treat it as a workspace host:https://- Extract profile name from the host (e.g.,
→adb-1234567890123456.7.azuredatabricks.net
,adb-1234567890123456
→my-company-dev.cloud.databricks.com
)my-company-dev - Use this as the profile name and configure it with the provided host
- Extract profile name from the host (e.g.,
- If a parameter is provided and it doesn't start with
, treat it as a profile namehttps:// - If no parameter is provided, ask the user which profile they want to configure (default: DEFAULT)
- If a parameter is provided and it starts with
-
Run
with the determined profile namedatabricks auth login -p <profile>- If a workspace host was provided, add
to the command--host <workspace_host> - This ensures authentication is completed and the profile works
- If a workspace host was provided, add
-
Check if the profile exists in ~/.databrickscfg
-
Ask the user to choose ONE of the following compute options:
- Cluster ID: Provide a specific cluster ID for an interactive/all-purpose cluster
- Serverless: Use serverless compute (sets
)serverless_compute_id = auto
-
Update the profile in ~/.databrickscfg with the selected configuration
-
Verify the configuration by displaying the updated profile section
Important Notes
- Use the AskUserQuestion tool to present the compute options as a choice
- Only add ONE of:
ORcluster_id
(never both)serverless_compute_id - For serverless, set
(not justserverless_compute_id = auto
)serverless = true - Preserve all existing settings in the profile (host, auth_type, etc.)
- Format the configuration file consistently with proper spacing
- The
command will open a browser for OAuth authenticationdatabricks auth login - SECURITY: NEVER print token values in plain text
- When displaying configuration, redact any
field values (e.g.,token
)token = [REDACTED] - Inform the user they can view the full configuration at
~/.databrickscfg - This applies to any output showing the profile configuration
- When displaying configuration, redact any
Example Configurations
With Cluster ID:
[DEFAULT] host = https://adb-123456789.11.azuredatabricks.net/ cluster_id = 1217-064531-c9c3ngyn auth_type = databricks-cli
With Serverless:
[DEFAULT] host = https://adb-123456789.11.azuredatabricks.net/ serverless_compute_id = auto auth_type = databricks-cli
With Token (display as redacted):
[DEFAULT] host = https://adb-123456789.11.azuredatabricks.net/ token = [REDACTED] cluster_id = 1217-064531-c9c3ngyn View full configuration at: ~/.databrickscfg