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).
Capabilities
Reference Documentation
When to Use This Skill
Required App Completion Contract
Only after this check, run databricks bundle validate --strict…
Getting started
Full instructionsInstall 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
- Always validate after configuration changes - Use
bundle validate --strict --target <target>after any change - Use reference documentation - Consult the appropriate reference file for detailed patterns and examples
- Follow naming conventions - Resource files should use
<name>.<resource_type>.ymlformat - Path resolution is critical - Paths differ based on file location (see Bundle Structure reference)
- Preserve existing structure - Keep user comments and structure when editing YAML files
- Use variables - Parameterize catalog, schema, and warehouse for multi-environment support
- 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 explicitapp_namevalue instead - Jobs and pipelines: load
databricks-serverlessfirst - Before you write a job or pipeline resource, load thedatabricks-serverlessskill: it decides each task's compute and the job'sperformance_target, which this skill does not cover. For task types, triggers and schedules, also loaddatabricks-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 targetrun_asalso acceptgroup_name, for jobs and pipelines. Tell the user whatbundle validatecan't check: the group must be an account group assigned to the workspace (not a workspace-local group,admins,users, oraccount 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 setworkspace.root_pathto a shared folder that the group can view. Changingworkspace.root_pathon 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) andminutes,hours,days,weeks,months, oryears. 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: truemakesbundle destroy, and any deploy that would delete or recreate the resource, fail. It does not stop deletion in the UI or API.lifecycle.started: truedeploys 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- Databricks CoreDatabricks CLI operations and the parent/entry-point skill for Databricks CLI use: authentication, profile selection,…
- Databricks Zerobus IngestPush records from apps, services, devices, or scripts directly into Unity Catalog Delta tables with Zerobus Ingest:…
- Databricks AI RuntimeDatabricks AI Runtime, the `databricks air` CLI commands for submitting and managing GPU training workloads on…
- Databricks AI FunctionsUse Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate,…
- databricksDatabricks CLI operations: auth, profiles, data exploration, and bundles. Contains up-to-date guidelines for…
- Databricks SandboxDatabricks Sandbox: on-demand serverless compute for running untrusted or agent-generated code and background tasks.…
Security
Reviews (0)
More from Databricks
View source →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.
[](https://skills-hub.ai/skills/databricks-dabs)<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.