/oracle-ai-data-platform-workbench-databricks-migrator:aidp-build-dagfrom oracle-ai-data-platform-workbench-databricks-migrator
Builds a migration manifest (execution DAG) from an AIDP workflow exported from Databricks. Walks %run and dbutils.notebook.run dependency chains, emits reports/<job>_manifest.json for downstream migration skills.
Ships in oracle-ai-data-platform-workbench-databricks-migrator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
aidp-build-dag — build the migration manifestThe execution DAG is what the migrator reads to know which notebooks to migrate, in what order, with what dependencies. Build it once per workload.
aidp-migrate-job invocation against a new workload.The canonical builder is workflow-based: ${CLAUDE_PLUGIN_ROOT}/engine/scripts/build_dag_from_workflow.py. It reads an AIDP workflow (normally created by aidp-dbx-export) via the AIDP Job API — it does NOT call the Databricks REST API and needs no DATABRICKS_HOST / DATABRICKS_TOKEN.
${CLAUDE_PLUGIN_ROOT}/engine/scripts/build_dag.py(path-based directory scan) is DEPRECATED — do not invoke it as a CLI; it survives only as an importable library used by the workflow variant.
python3 ${CLAUDE_PLUGIN_ROOT}/engine/scripts/build_dag_from_workflow.py \
--config <customer>.yaml \
--job-key <workflow-key> \
--cluster <CLUSTER_ID> \
--output reports/<MyJob>_manifest.json
--job-key — required; the AIDP job key (UUID) of the workflow.--cluster — required; the AIDP cluster ID used for scanning notebooks.--config — customer YAML (falls back to $AIDP_CONFIG_PATH, ./aidp_migrator.yaml, ~/aidp_migrator.yaml); --lake-ocid / --workspace-id / --oci-profile are per-run overrides.--output — manifest write path (default: stdout).--validate-only (validate notebooks exist + print the task graph), --job-name, --export-output / --source-base (base-path overrides when auto-derivation guesses wrong), --params-from-run <RUN_KEY> (populate parameters from a prior AIDP job run), repeatable --param KEY=VALUE.This pulls the workflow's task definitions from the AIDP Job API and converts depends_on task edges into the manifest's DAG. The builder also follows %run chains AND dbutils.notebook.run(...) calls in the task notebooks to build the topo-ordered DAG and flag transitive deps, so Pass-1 knows which notebooks to migrate code-only first.
The output is JSON with this top-level structure:
{
"job_name": "<MyJob>",
"tasks": [
{
"task_key": "extract",
"notebook_path": "Users/.../extract.ipynb",
"depends_on": []
},
{
"task_key": "transform",
"notebook_path": "Users/.../transform.ipynb",
"depends_on": ["extract"]
}
],
"deps": [
{
"notebook_path": "Users/.../helpers/io_utils.ipynb",
"referenced_by": ["extract", "transform"]
}
]
}
tasks are the named entry points; deps are %run / notebook.run targets discovered transitively. Pass-1 migrates the deps first (code-only), then Pass-2 executes the tasks in topo order.
After the builder finishes, do these three reads — small, fast, catch most config issues:
# 1. count
jq '.tasks | length, .deps | length' reports/<MyJob>_manifest.json
# 2. topo correctness — no cycles, deps come before users
jq '.tasks[] | select(.depends_on | length > 0) | {task: .task_key, deps: .depends_on}' reports/<MyJob>_manifest.json
# 3. notebook paths resolve (every path is reachable from the Databricks workspace)
jq -r '.tasks[].notebook_path' reports/<MyJob>_manifest.json
If any notebook_path doesn't exist in Databricks, the builder logs a warning but does NOT fail. Catch it here.
dbutils.notebook.run with dynamic paths. If the source notebook builds the target path at runtime (dbutils.notebook.run(some_var, ...)), the builder cannot resolve it. The dep won't appear in the manifest and the runtime call will fail post-migration. Tell the user to either (a) make the path literal, or (b) add the target to a dep_hints section manually.for_each_task. Not modeled. Convert to a regular notebook_task first.Once the manifest looks right:
aidp-check-data to verify source tables exist on the cluster.aidp-migrate-job with --manifest reports/<MyJob>_manifest.json.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/aidp-acceptance-contractManifest-declared acceptance contract for batch and streaming pipelines that need convergence verification, not just "no exceptions". Declares PASS only after K consecutive zero-result windows (consecutive-zero-window convergence). Use for streaming jobs, slowly-draining backfills, or any pipeline whose success is "the pending queue is empty"./aidp-bucket-mappingConfigure the s3:// → oci:// bucket / namespace mapping the migrator uses to rewrite paths during notebook + catalog migration. Use when (a) the user has external tables / files at s3:// paths that need to land on OCI Object Storage, OR (b) check_data_availability reports s3:// paths as NOT FOUND because the bucket isn't mapped, OR (c) the DDL rewriter logs an R02_BUCKET_UNMAPPED warning./aidp-check-dataPre-migration data-availability scan. Reads every notebook in a migration manifest, extracts every spark.read.table / spark.read.parquet / saveAsTable reference, and probes whether each target schema/table/path exists on the AIDP cluster BEFORE you spend Pass-2 cluster time. Use after aidp-build-dag and before aidp-migrate-job, especially the first time you migrate against a target environment./aidp-dbx-exportExport a Databricks job into AIDP — notebooks, JARs, init scripts, workflow + cluster specs — via python3 -m dbx_export. Three phases (discover+download → upload → clusters+workflow) with AIDP-first dependency resolution. Artifacts are copied, NOT code-migrated; the migration itself comes later. Use FIRST, before aidp-build-dag / aidp-migrate-job, whenever the workload still lives only in Databricks./aidp-fixup-cellTargeted rewind of a migrated notebook. Re-executes cells from history index N onwards (or a specific cell range) through the execute+verify+fix loop, with a 'why' reason injected so Claude knows what to fix. Use when aidp-migrate-job left a notebook at RESULT=PARTIAL or the user identifies a specific cell that is wrong post-migration./aidp-migrate-catalogMigrate Databricks Unity Catalog / HMS schemas + tables onto AIDP. Two-stage extract→rewrite→replay pipeline. The rewriter applies 10 implemented DDL rules (3-part→2-part flatten, s3://→oci:// via bucket-map, source-format preserved (Delta stays Delta) with delta.* property scrub, MV/streaming rejection, CREATE SCHEMA COMMENT-colon strip). Batched single-WebSocket DDL replay works around AIDP's per-statement-discard quirk. Use BEFORE aidp-migrate-job — schemas must exist before notebook reads.Generated from the plugin's indexed repository (oracle-samples/oracle-aidp-samples) — no native marketplace selected
npx claudepluginhub p/oracle-samples-oracle-ai-data-platform-workbench-databricks-migrator-ai-claude-code-plugins-oracle-ai-data-platform-workbench-databricks-migratorOther plugins' skills for the same job