databricks-ai-function…
Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar,…
Migrate 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 to inspect, revise, approve, or cancel
Claude Code
$ npx -y skills add databricks/databricks-agent-skills --skill databricks-serverless-migration-api --agent claude-code
Codex
$ npx skills add databricks/databricks-agent-skills --skill databricks-serverless-migration-api -a codex -y
Cursor
$ npx skills add databricks/databricks-agent-skills --skill databricks-serverless-migration-api -a cursor -y
Gemini CLI
$ npx skills add databricks/databricks-agent-skills --skill databricks-serverless-migration-api -a gemini-cli -y
GitHub Copilot
$ npx skills add databricks/databricks-agent-skills --skill databricks-serverless-migration-api -a github-copilot -y
OpenCode
$ npx skills add databricks/databricks-agent-skills --skill databricks-serverless-migration-api -a opencode -y
Windsurf
$ npx skills add databricks/databricks-agent-skills --skill databricks-serverless-migration-api -a windsurf -y
name: databricks-serverless-migration-api description: "Migrate 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 to inspect, revise, approve, or cancel migrations, and finding migration backups. For direct code or notebook edits and compatibility analysis, use databricks-serverless-migration." compatibility: Requires databricks CLI (>= v1.24.0) with the compute-migrations command group metadata: version: "0.1.0" parent: databricks-core
**FIRST**: Use the parent `databricks-core` skill for CLI installation, authentication, and profile selection.
Use the Compute Migrations API through the Databricks CLI to migrate a job to serverless. The service analyzes the job, backs it up, builds a serverless working copy, and optionally runs it in the background. Your part is to track the migration, review the working copy, present the changes to the user, and carry out their decision. Applying the changes to the original job requires the user's explicit approval.
Use it when the user asks you to:
Use `databricks-serverless-migration` for direct code edits, notebooks, pipelines, JAR tasks, or a job this service cannot migrate. For job definitions maintained in source control, read [Jobs managed from source](#jobs-managed-from-source).
See the [migration guide](https://docs.databricks.com/en/compute/serverless/migration#migrate-with-the-migration-agent) for supported workloads and limits. A successful `create` starts the migration; it does not establish that the workload is compatible. Incompatibilities can be discovered during planning or working-copy creation.
1. Check the [prerequisites](#prerequisites) once per workspace. 2. Confirm the job and whether to set `auto_approve` or `run_validation` (see [Settings chosen at creation](#settings-chosen-at-creation)). 3. Start the migration with `create`, and record its migration ID and `request_id`. 4. [Track progress](#tracking-progress) until it reaches a review gate or a terminal state. 5. At each review gate, [review the working copy](#reviewing-a-working-copy), present your findings to the user, and approve or reject as the user decides. 6. After `MIGRATION_COMPLETE`, [verify the original job](#after-completion) and report the result and the backup folder.
For a list of jobs, use [Bulk migration](references/bulk-migration.md) to repeat this workflow and track each job's decisions.
1. **CLI v1.24.0 or newer**: check `databricks --version` and `databricks compute-migrations --help`. The command group and the verbs below must be available. If a command is missing, upgrade using `databricks-core`. 2. **Compute Agent preview** enabled in the workspace. A workspace admin enables it under **Previews**. Without it, every call fails with `PERMISSION_DENIED` ("Migration APIs are not enabled for this workspace"). 3. **CAN_MANAGE** on each job you migrate.
The CLI help is generated from the API and is authoritative for command names, arguments, and flags. Run `databricks compute-migrations <command> --help` before first use of each command. Pass request bodies with `--json` and read responses with `-o json`.
Prepare working copy → TRANSLATION_READY (skipped when auto_approve=true) → Optional validation run (run_validation=true) → MIGRATION_REVIEW (execution approval required) → Apply changes → MIGRATION_COMPLETE
1. **Planning.** The service reads the job, its notebooks and files, and its cluster configuration, and works out the serverless changes: compute, dependencies, Spark configs, and code changes. The working copy is the first thing you review. 2. **Backup and working copy.** The service saves a backup of the job and its workspace files (see [Backups](#backups)), then creates a working copy: a new job named `[Serverless Migration - <timestamp>] <job name>`, tagged `serverless_migration_source_job_id=<original job id>`, running copies of the job's notebooks and files. The original job is not modified until you approve execution. 3. **Gate 1, `TRANSLATION_READY`.** Skipped when `auto_approve=true`. Otherwise, review the working copy. Approve to continue, or reject with a reason to request changes. 4. **Validation run** (only with `run_validation`). Databricks runs the working-copy job once. The outcome is recorded in `validation_report`. A failed run does not stop the migration: it moves to `MIGRATION_REVIEW` with `passed: false`. 5. **Gate 2, `MIGRATION_REVIEW`.** Final approval to update the original job. Approving execution starts applying the working copy's settings and file contents to the original job, keeping its job ID, schedule, and permissions. 6. **Complete.** Verify the original job (see [After completion](#after-completion)).
Use either rejection command to **request changes**, with a specific `rejection_reason`. The same migration returns to planning and revises its working copy. Read `migration_report` again and review the current copy before approving it. Revisions are limited, and repeated rejections eventually fail the migration. When the user wants to stop the migration, use `cancel-migration` (see [Cancellation](#cancellation)).
`auto_approve` and `run_validation` are fixed when the migration is created and cannot be changed. Both default to `false`. Set either one only when the user asks for it.
| Field | Effect | Risk | |-------|--------|------| | `auto_approve` | Skips gate 1 (`TRANSLATION_READY`). Gate 2 still waits for a decision. | With `run_validation`, the working c
Build on Databricks with AI coding agents such as Claude Code, Cursor, Codex, GitHub Copilot, and many others. This repository provides the skills and agent plugins for Databricks AI Tools.
Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar,…
Databricks AI Runtime, the `databricks air` CLI commands for submitting and managing GPU training workloads on Databricks…
Create Databricks AI/BI dashboards. Must use when creating, updating, or deploying Lakeview dashboards as Databricks Dashboard…
Design the UX of custom-code Databricks Apps (AppKit/React) data screens — KPI/overview pages, reports, charts, tables, and…
Python backend for Databricks Apps — FastAPI (default), Flask, Dash, Streamlit, Gradio, Reflex. **Default for a new Databricks…
Build apps on Databricks Apps platform. Use when asked to create data apps, analytics tools, or custom interactive…
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…