Skip to content

docs(databricks-dabs): port DAB content vendored in devhub#104

Open
jamesbroadhead wants to merge 1 commit into
mainfrom
port/dabs-from-devhub
Open

docs(databricks-dabs): port DAB content vendored in devhub#104
jamesbroadhead wants to merge 1 commit into
mainfrom
port/dabs-from-devhub

Conversation

@jamesbroadhead
Copy link
Copy Markdown
Contributor

Summary

The devhub repo vendors a stale copy of declarative-automation-bundles.md under .agents/skills/databricks-core/. Most of its content is already covered by databricks-dabs here, but a few pieces aren't — this PR ports them across so devhub can delete its vendored copy and point at this skill.

Ported into references/bundle-structure.md:

  • Job Resource (Shared Classic Cluster)job_clusters + job_cluster_key example with autoscale. Complements the existing serverless and inline new_cluster patterns.
  • Registered Model Resourcesregistered_models.<key> with name/description.
  • Substitutions reference table — ${var.*}, ${bundle.name}, ${bundle.target}, ${workspace.current_user.userName}, ${workspace.current_user.short_name}, ${workspace.file_path}, ${resources.{jobs,pipelines}.<key>.id}.

Ported into references/deploy-and-run.md:

  • Initializationbundle init + the built-in template list (default-python, default-sql, default-scala, lakeflow-pipelines, dbt-sql, default-minimal).
  • Generate from Existing Resourcesbundle generate {job,pipeline,dashboard,app}.
  • Destroybundle destroy [-t target] with the warning that it's destructive.
  • Two new Common Issues rows — "Variable shows as \${var.name} literal" and "Validation errors unclear → --debug".

python3 scripts/skills.py validate passes locally — manifest doesn't need regeneration since no SKILL.md/openai.yaml/asset files changed.

Test plan

  • python3 scripts/skills.py validate (CI workflow runs the same)
  • Reviewer eyeballs the new sections render properly when rendered as agent context

This pull request and its description were written by Claude (james.broadhead@databricks.com).

Adds material that previously lived only in
devhub's vendored copy of `declarative-automation-bundles.md`:

- `bundle init` workflow + the built-in template list
- `bundle generate` for adopting existing resources
- `bundle destroy`
- Classic shared-cluster job example (`job_clusters` / `job_cluster_key`)
- `registered_models` resource example
- Consolidated substitutions reference (`${var.*}`, `${bundle.*}`,
  `${workspace.current_user.*}`, `${resources.*}`)
- Troubleshooting entries for "variable shows as literal" and
  `--debug` for unclear validation errors

With this in DAS, devhub can drop its vendored databricks-* skills and
rely on `databricks aitools install`.

Signed-off-by: James Broadhead <james.broadhead@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant