/oracle-ai-data-platform-workbench-databricks-migrator:aidp-resume-migrationfrom oracle-ai-data-platform-workbench-databricks-migrator
Resumes an interrupted aidp-migrate-job run by skipping already-migrated notebooks or scoping to specific tasks. Use after crashes, manual fixes, or adding new tasks.
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.
aidp-resume-migration — pick up where you left offThe migrator is designed to be resumable. Each successful Pass-1 dep migration is cached in two places:
_migration_cache dict in job_migrate.py (in-memory, per-run).os.path.exists() probe against the output path (persistent across runs).Pass-2 task notebooks are similarly skipped — only when --skip-migrated is passed — if their final .ipynb already exists at <migrate-output>/<job>/notebooks/....
aidp-migrate-job run was killed (Ctrl-C, cluster restart, network drop, timeout).--skip-migrated is OFF by default on both runners (deliberately: reusing already-migrated notebooks is unsafe for jobs with nested %run util deps — a child-inlined dep can be served from an un-converted copy). A plain re-invoke after a crash re-migrates from the top. To resume, scope the run explicitly — the preferred tool is --start-task; --skip-migrated is available for confident resumes.
All resume invocations go through the canonical runner, job_migrate_from_workflow.py (direct job_migrate.py invocation is deprecated):
python3 ${CLAUDE_PLUGIN_ROOT}/engine/scripts/job_migrate_from_workflow.py \
--config <customer>.yaml \
--job-key <workflow-key> \
--skip-migrated # explicit opt-in: reuse notebooks already at the output path
(Use --manifest reports/<MyJob>_manifest.json instead of --job-key when resuming against a saved manifest. Never pass --cluster — deprecated no-op.)
If the failure was task-specific and you want to start there (skipping all earlier tasks):
python3 ${CLAUDE_PLUGIN_ROOT}/engine/scripts/job_migrate_from_workflow.py \
--config <customer>.yaml \
--job-key <workflow-key> \
--start-task <substring_of_task_key>
--start-task is a substring match on task_key. Skip every task whose key sorts before the matched task.
python3 ${CLAUDE_PLUGIN_ROOT}/engine/scripts/job_migrate_from_workflow.py \
--config <customer>.yaml \
--job-key <workflow-key> \
--only-tasks "<task_key_1>,<task_key_2>"
Useful when you've manually fixed one dep and want to re-run only the tasks that consume it.
A plain re-invoke without --skip-migrated re-migrates everything in scope — it burns Claude tokens AND overwrites any manual edits the user applied to the previously-migrated .ipynb at the output path. If the user has made manual fixes, REFUSE to re-run over them without explicit "yes, overwrite my edits" — or scope with --start-task / --only-tasks / --skip-migrated so their notebooks aren't touched.
The cache can be wrong in these scenarios — clear it manually if you see them:
| Scenario | Fix |
|---|---|
| User edited the SOURCE Databricks notebook after the prior migration. The migrator still skips it (output already exists). | Delete the corresponding output .ipynb from AIDP workspace + re-run. |
| User modified the manifest to add a new dep, but a previously-migrated task still uses the OLD dep path. | Delete the output .ipynb for that task + re-run. |
The output .ipynb was created but is empty / corrupt (cluster died mid-write). | Delete the bad file + re-run. |
There's no --clear-cache flag — the cache IS the filesystem state of <migrate-output> (cfg.paths.migrate_output, overridable per-run with --migrate-output).
Before invoking, verify the cluster is still Active (might have been auto-stopped for idle):
# (use the bootstrap skill's check)
If Stopped, start it via AIDP console. The first cell after resume will pay a connection-setup cost (~10-30s), then steady-state resumes.
# List all migrated notebooks for this job
oci os object list ... (or use AIDP workspace listing)
ls reports/<job-name>/notebooks/ # local mirror after a successful run
Or just tail the log and look for [SKIP] already migrated: lines on resume.
aidp-migrate-job — read JOB_REPORT.md, route failed cells to aidp-fixup-cell, etc.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
None: SKILL.md is the whole skill.
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-build-dagBuild a migration manifest (the execution DAG) from an AIDP workflow (exported from Databricks by dbx_export). Walks %run dependency chains, captures dbutils.notebook.run invocations, and emits reports/<job>_manifest.json — the input every other execute-skill consumes. Use when the user wants to see what would migrate, or before invoking aidp-migrate-job for the first time on a new workload./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.Other plugins' skills for the same job
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-migrator