Skip to main content

Build

Databricks Dabs

DatabricksOfficialCertified

Create, configure, validate, deploy, run, and manage Declarative Automation Bundles (DABs, formerly Databricks Asset Bundles). Use when working with Databricks resources via DABs including dashboards, jobs, pipelines, alerts, volumes, and apps. Use whenever you read or edit a databricks.yml or a job, pipeline, or app it defines (job parameters and dynamic value references such as `{{job.start_time}}`, run_as, libraries and private wheels, lifecycle settings), or fix bundle validate or deploy errors (for example resource name conflicts between users in a shared workspace).

  • New
  • v1.0.5
  • Reviewed Jul 21
  • No reviews yet

Capabilities

  • Reference Documentation

  • When to Use This Skill

  • Required App Completion Contract

    Only after this check, run databricks bundle validate --strict…

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

Declarative Automation Bundles (DABs)

Use this skill for any bundle-related request including creating, configuring, validating, deploying, running, and managing Databricks resources through DABs.

Reference Documentation

The following reference files provide detailed guidance for specific bundle tasks:

  • Bundle Structure - Bundle structure, databricks.yml configuration, resource definitions, path resolution, variables, and multi-environment targets
  • SDP Pipelines - Spark Declarative Pipeline configurations for DABs
  • SQL Alerts - SQL Alert schemas and configuration (critical - API differs from other resources)
  • Deploy and Run - Validation, deployment, running resources, monitoring logs, and troubleshooting common issues
  • Resource Permissions - Permission levels and access control for bundle resources, per-resource-type levels, grants vs permissions
  • Private Wheels - Download a package from a private index, keep its token off the command line, and reference its wheel from the job

When to Use This Skill

Load this skill for any request involving:

  • Creating new bundle projects or resources
  • Configuring databricks.yml or resource YAML files
  • Setting up multi-environment deployments (dev/prod targets)
  • Deploying or running bundle resources
  • Managing permissions for bundle resources
  • Troubleshooting bundle validation or deployment errors
  • Working with specific resource types (dashboards, jobs, pipelines, alerts, volumes, apps)

General Guidelines

  1. Always validate after configuration changes - Use bundle validate --strict --target <target> after any change
  2. Use reference documentation - Consult the appropriate reference file for detailed patterns and examples
  3. Follow naming conventions - Resource files should use <name>.<resource_type>.yml format
  4. Path resolution is critical - Paths differ based on file location (see Bundle Structure reference)
  5. Preserve existing structure - Keep user comments and structure when editing YAML files
  6. Use variables - Parameterize catalog, schema, and warehouse for multi-environment support
  7. Namespace App names - App names are workspace-global and limited to 30 characters. With Databricks CLI 0.270.0 or later, shared-development defaults should be a short app prefix plus the whole ${workspace.current_user.domain_friendly_name}; override production with a stable name. When the name is too long, shorten the prefix, never the developer's name. On older CLI versions, require an explicit app_name value instead
  8. Jobs and pipelines: load databricks-serverless first - Before you write a job or pipeline resource, load the databricks-serverless skill: it decides each task's compute and the job's performance_target, which this skill does not cover. For task types, triggers and schedules, also load databricks-jobs

Settings That Are Easy to Get Wrong

  • Run one job as a group. Set run_as: {group_name: <group>} in that job's own definition (resources.jobs.<key>.run_as). Since CLI 1.20.0, the top-level and target run_as also accept group_name, for jobs and pipelines. Tell the user what bundle validate can't check: the group must be an account group assigned to the workspace (not a workspace-local group, admins, users, or account users), the deploying user must be a member of it or, for a group used for exclusive access, have the Assume permission on it. A bundle deploys to the deploying user's home folder by default, which the group cannot read, so set workspace.root_path to a shared folder that the group can view. Changing workspace.root_path on a target that is already deployed can make the next deploy miss the existing state and create new resources, so set it before the first deploy. The group also needs access to everything the job uses, such as its files.
  • Shift a date in a job or task parameter. Dynamic value references support date arithmetic: {{(job.start_time - 1.day).iso_date}} is the day before the run started. Use any time reference (job.start_time, job.trigger.time) and minutes, hours, days, weeks, months, or years. Put the expression in the parameter value; no extra task or notebook code is needed. It is an admin-managed beta ("Math in Parameters"), so say that an admin may need to turn it on.
  • Protect or start a resource on deploy. lifecycle.prevent_destroy: true makes bundle destroy, and any deploy that would delete or recreate the resource, fail. It does not stop deletion in the UI or API. lifecycle.started: true deploys an app, cluster, or SQL warehouse running. Tell the user the deletion limit.
  • Use a package from a private index. Follow Private Wheels: download the wheel with the token in PIP_INDEX_URL, then reference it from the job.

Required App Completion Contract

Before validating any bundle that creates or changes an App, re-read the final bundle YAML and confirm all of the following structural requirements:

  • Each App resource uses a dedicated name variable, such as name: ${var.app_name}, while preserving an existing equivalent variable when present.
  • For Databricks CLI 0.270.0 or later, each App name variable defaults to a recognizable App prefix plus ${workspace.current_user.domain_friendly_name} for development, and the production target overrides it with a stable name. On older CLI versions, App name variables have no default and each developer must provide values.
  • No development App name uses ${workspace.current_user.short_name}, ${workspace.current_user.id}, ${workspace.current_user.userName}, a bare ${bundle.target}, or a hardcoded value.

Only after this check, run databricks bundle validate --strict --target <target> --output json and inspect each resolved resources.apps.<key>.name. Each name must contain only lowercase letters, digits, and hyphens and be at most 30 characters. Other developers' names can be longer than yours, so keep the prefix short (for example sales-, not sales-dashboard-).

If a resolved name is longer than 30 characters, shorten the prefix in the committed default (for example sales-dash-${workspace.current_user.domain_friendly_name} becomes sales-${workspace.current_user.domain_friendly_name}) and validate again. The prefix, without its hyphen, can have at most 29 minus the length of the resolved workspace.current_user.domain_friendly_name. This budget covers only the developer who runs the check. A teammate whose name is longer repairs the committed default the same way, and the shorter prefix then applies to everyone. Never truncate, abbreviate, or hardcode the developer's name in the YAML: a cut name can match a teammate's cut name, so the collision comes back.

Use the uncommitted .databricks/bundle/<target>/variable-overrides.json file only when no prefix fits (the developer's name alone is 29 characters or more), when two developers' names normalize to the same domain_friendly_name, or when multiple non-production targets of the same app share a workspace. In an override, use a short distinct value that does not copy or cut your name. Successful validation alone does not satisfy this contract because validation does not catch every invalid or non-namespaced App name.

Documentation

  • Declarative Automation Bundles
  • Bundle Examples Repository - official end-to-end example bundles (jobs, pipelines, dashboards, apps, and more); use as working references for patterns not covered by the reference files above

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-serverless-migration-apiMigrate Databricks jobs to serverless through the Compute Migrations API and CLI, then track, review, and approve each migration. Use for automated job migrations managed by this service, scripts that start and track migrations, requests…0 installs

Frequently asked questions about databricks-dabs

What does the databricks-dabs skill do?

Create, configure, validate, deploy, run, and manage Declarative Automation Bundles (DABs, formerly Databricks Asset Bundles). Use when working with Databricks resources via DABs including dashboards, jobs, pipelines, alerts, volumes, and apps. Use whenever you read or edit a databricks.yml or a job, pipeline, or app it defines (job parameters and dynamic value references such as `{{job.start_time}}`, run_as, libraries and private wheels, lifecycle settings), or fix bundle validate or deploy errors (for example resource name conflicts between users in a shared workspace). 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-dabs skill?

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

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

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

More options in the badge docs.