/oracle-ai-data-platform-workbench-databricks-migrator:aidp-fixup-cellfrom oracle-ai-data-platform-workbench-databricks-migrator
Surgically re-executes cells in a migrated Jupyter notebook from a given history index, with a 'why' reason for Claude to fix issues. Use when a migration left cells as FAIL or the user identifies a wrong cell post-migration.
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-fixup-cell — surgical re-execute of cells in a migrated notebookThe full-job migrator (job_migrate.py) runs every cell linearly with up to 5 fix attempts each (default MAX_FIX_ATTEMPTS; env AIDP_MAX_FIX_ATTEMPTS / runtime.fix_max_attempts). fixup_cell is the per-cell escape hatch when those 5 attempts weren't enough OR when the user discovers a latent issue downstream.
JOB_REPORT.md shows specific cells as FAIL after aidp-migrate-job finished.Inside an already-running migration, Claude can call the fixup_cell tool:
fixup_cell(start_index=12, why="cell 11 redefined `<base_table>` to use a different schema; replay downstream so the new var flows through")
This is the in-process mode. It:
_cell_history[start_index:] (drops everything from index 12 forward)._replay_cell_entry() — execute + verify + fix loop with the why injected into the Claude prompt so the model knows what changed._cell_history.The cells replayed start at the absolute history index 12 — could be in the SAME notebook or a downstream one if the cells were inlined via %run.
When the migration is done and the user wants to "fix this one cell":
python3 ${CLAUDE_PLUGIN_ROOT}/engine/scripts/job_migrate_from_workflow.py \
--config <customer>.yaml \
--manifest reports/<MyJob>_manifest.json \
--only-tasks <task_key>
This re-runs that single task end-to-end (a fresh migration of just that task — re-migration is the default; never pass --cluster, it is a deprecated no-op).
If the user wants finer-grained control (specific cell, not full task), they need to open the saved .ipynb and edit manually. The migrator doesn't expose a "replay cell K only" CLI outside of the in-process fixup_cell tool.
Helps:
Won't help:
dbutils call that should have been rewritten) — check references/gotchas.md for the recipe, then re-run with the fix.fixup_cell replays cells from start_index FORWARD. This is only safe if the replayed cells are idempotent. If a cell:
.mode("overwrite") → safe..mode("append") → unsafe, will duplicate rows on replay.Before triggering a replay, scan the cells from start_index for non-idempotent ops. If you find any, fix THEM first, then replay.
why reason flowsThe why string is injected into the Claude prompt as:
=== CONTEXT: WHY WE'RE REPLAYING ===
The previous run hit a problem at this stage. Reason: <your why>
Replay each cell with this context in mind. If the prior code was correct
and only the upstream state changed, you can keep it as-is. If the prior
code needs adjustment to handle the new state, rewrite as needed.
So make the why precise — vague reasons produce vague fixes:
"cell 11 was rewritten to use spark.read.table('<sandbox_schema>.events') instead of spark.read.parquet('s3://...'); downstream cells reference the same path and need similar adjustment""something broke, please retry"| Symptom | Action |
|---|---|
| Cell K failed all 5 attempts, all with the same error | Try fixup_cell with a specific why that names the error. |
| Cell K failed because cell K-2 produced a different schema than expected | fixup_cell from K-2 (not K) with why describing the upstream change. |
| Cell K failed because of a known gotcha (see references/gotchas.md) | Apply the gotcha-recipe fix in cell K manually, then fixup_cell from K with why="applied gotcha #N fix". |
| Cell K failed because the cluster died mid-execution | Restart the cluster, re-invoke aidp-migrate-job scoped with --start-task (or an explicit --skip-migrated — it is OFF by default) — fixup not needed. |
JOB_REPORT.md to confirm the cell is now OK (/migration-status).migration-reviewer for a second-opinion review.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-migratorNone: 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.Other plugins' skills for the same job