/oracle-ai-data-platform-workbench-databricks-migrator:aidp-migrator-bootstrapfrom oracle-ai-data-platform-workbench-databricks-migrator
Verifies environment readiness for the Oracle AIDP Databricks migrator: checks Python deps, OCI auth, AIDP cluster reachability, and env-coords file. Run on first use or after auth/connectivity errors.
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-migrator-bootstrap — environment readiness checkConfirms everything the migrator needs is in place before any of the other skills attempt real work. Idempotent — re-runnable whenever you suspect drift.
Before any check below works, the user MUST have an env-coords.md (or any plain notes file) listing all of these. Refuse to proceed and ask for them if any are missing — never guess.
| Coordinate | Example shape (do NOT use any of these literal values — these are placeholders) |
|---|---|
| AIDP REST base URL | https://aidp.<region>.oci.oraclecloud.com/20240831 |
| DataLake OCID | ocid1.aidataplatform.oc1.<region>.<id> |
| Workspace UUID | <8-4-4-4-12> UUID format |
| Cluster ID | <8-4-4-4-12> UUID format |
| OCI profile name | <your-profile> (e.g. the section name in ~/.oci/config) |
| Output workspace path | Shared/aidp-migration-tool-output/ (or your team's path) |
Save these into a env-coords.md file at the project root, gitignored. Every other skill in this plugin threads these through verbatim. See references/env-coords.template.md for a complete scaffold.
The migrator engine ships bundled with this plugin under ${CLAUDE_PLUGIN_ROOT}/engine/. Install its Python dependencies once:
python3 --version # 3.10+
pip install -r ${CLAUDE_PLUGIN_ROOT}/engine/requirements.txt
Expected packages: oci, requests, websocket-client, anthropic, nbformat, PyYAML, jsonschema, packaging (plus pandas / numpy, usually pre-installed). If any is missing, install + retry.
ANTHROPIC_API_KEY env varecho $ANTHROPIC_API_KEY | wc -c # should be >50 chars
If empty, the migrator's Pass-2 cell-by-cell loop will crash. Ask the user to export ANTHROPIC_API_KEY=sk-ant-....
Two valid paths — confirm which the user is using:
API key (recommended for unattended runs)
oci iam region list --profile <profile-name> # returns a region list on success
Session token (interactive only, expires ~1 hr)
oci session validate --profile <profile-name>
# if expired:
oci session authenticate --profile <profile-name> --region <region>
If either returns 401/403 or "Security Token expired", surface the exact command the user should run — do not pretend success.
curl -s -H "..." \
"<AIDP_BASE>/dataLakes/<DATALAKE_OCID>/workspaces/<WORKSPACE_UUID>/clusters/<CLUSTER_ID>" \
| python3 -c "import json,sys; d=json.load(sys.stdin); print(d.get('lifecycleState'))"
Expect Active. Acceptable transient states are Starting, Updating. If Stopped or Failed, instruct the user to start the cluster from AIDP console before any Pass-2 run.
Curl with
auth=signer(the migrator's helper) is the proper way; if the user wants an exact one-liner, suggest it in Python (fill the four placeholder values from yourenv-coords.md):import oci, requests # Fill these from env-coords.md (see references/env-coords.template.md): profile = "<your-profile-name>" base = "<AIDP_BASE>" # e.g. https://aidp.<region>.oci.oraclecloud.com/20240831 lake = "<DATALAKE_OCID>" ws = "<WORKSPACE_UUID>" cl = "<CLUSTER_ID>" cfg = oci.config.from_file(profile_name=profile) signer = oci.signer.Signer(cfg["tenancy"], cfg["user"], cfg["fingerprint"], cfg["key_file"]) r = requests.get(f"{base}/dataLakes/{lake}/workspaces/{ws}/clusters/{cl}", auth=signer) print(r.json().get("lifecycleState"))
Confirm the operator can write under the target output path:
python3 -c "
import oci, requests, urllib.parse, os
cfg = oci.config.from_file(profile_name='<profile>')
signer = oci.signer.Signer(cfg['tenancy'], cfg['user'], cfg['fingerprint'], cfg['key_file'])
base = '<AIDP_BASE>'
lake = '<DATALAKE_OCID>'
ws = '<WORKSPACE_UUID>'
path = '<output-workspace-path>'
r = requests.get(f'{base}/dataLakes/{lake}/workspaces/{ws}/objects',
params={'path': path}, auth=signer)
print(r.status_code, r.text[:200])
"
200 → good. 404 → ask the user to create the folder via AIDP console or via POST .../objects with type=FOLDER. 401/403 → the operator's OCI principal lacks workspace.write on this workspace.
python3 -m py_compile ${CLAUDE_PLUGIN_ROOT}/engine/scripts/build_dag_from_workflow.py \
${CLAUDE_PLUGIN_ROOT}/engine/scripts/check_data_availability_for_workflow.py \
${CLAUDE_PLUGIN_ROOT}/engine/scripts/job_migrate_from_workflow.py \
${CLAUDE_PLUGIN_ROOT}/engine/scripts/migrate_catalog.py
Should be silent. If a Python-version mismatch is reported, the user is on the wrong interpreter.
After running, report back to the user as a single table:
| Check | Status | Notes |
|---|---|---|
| Python deps | OK | 3.13.x, all required deps present |
| ANTHROPIC_API_KEY | OK | set, 100+ chars |
| OCI auth (api_key) | OK | profile <name>, region <region> |
| Cluster state | OK | Active |
| Workspace write | OK | output base reachable |
| Migrator compile | OK | all 4 entrypoints compile |
Any FAIL row → emit the exact command the user needs to run to fix it. Do not proceed to other skills if any check failed.
oci session validate shows <10 minutes remaining), warn them and suggest refresh BEFORE invoking a long-running skill like aidp-migrate-job.dbutils.secrets on the cluster is OCI Vault-only (AIDP_VAULT_OCID). If the shell or cluster environment carries AIDP_ALLOW_PLAINTEXT_SECRETS=1, AIDP_SECRET_* or AIDP_SECRETS_FILE, flag it as a WARN row -- those are local-demo switches and must not reach a cluster that executes customer notebooks.job_migrate.py declares AIDP_SANDBOX_CATALOG / AIDP_SANDBOX_SCHEMA / AIDP_SANDBOX_PREFIX on the cluster automatically; a migrated notebook that is later scheduled outside the migrator must carry the same three variables or its dbutils.notebook.run / compat writes refuse (fail closed).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-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.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