migrate-catalog

migrate-catalog is a command for coding agents from ahmedawan-oracle/claude-code-plugins. It costs 41 tokens per session (672 once invoked), scanned A, original, MIT.

A guided command for moving Databricks catalog metadata to AIDP. A data catalog stores information about databases and tables; DDL is the SQL used to create them.

In plain words
What is it for?
Extracting Unity Catalog or Hive Metastore metadata, rewriting and previewing table and schema statements, mapping external S3 locations, replaying changes in batches, and verifying migrated tables.
Why use it?
It separates preparation, preview, and replay so you can inspect rewritten SQL and rejected items before changes are sent to the cluster.

Command

Part of the oracle-ai-data-platform-workbench-databricks-migrator plugin — 10 skills, 4 commands, 2 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/ahmedawan-oracle/claude-code-plugins/migrate-catalog
Clone the repo
git clone --depth 1 https://github.com/ahmedawan-oracle/claude-code-plugins

Or install oracle-ai-data-platform-workbench-databricks-migrator, the plugin that ships this one along with the rest of its 10 skills, 4 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migrate-catalog

README.md
[![agentmods](https://agentmods.dev/badge/commands/ahmedawan-oracle/claude-code-plugins/migrate-catalog.svg)](https://agentmods.dev/commands/ahmedawan-oracle/claude-code-plugins/migrate-catalog)
Your own site
<a href="https://agentmods.dev/commands/ahmedawan-oracle/claude-code-plugins/migrate-catalog"><img src="https://agentmods.dev/badge/commands/ahmedawan-oracle/claude-code-plugins/migrate-catalog.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 672 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00041 $0.00672
Opus 5 $0.00020 $0.00336
Sonnet 5 $0.00008 $0.00134
Haiku 4.5 $0.00004 $0.00067

Measured 3d ago against content hash f31d8ef19350, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

migrate-catalog scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-code-plugins/oracle-ai-data-platform-workbench-databricks-migrator/commands/migrate-catalog.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/migrate-catalog — guided catalog migration

Walk the user through extracting Unity Catalog / HMS metadata from Databricks, previewing the rewritten DDL, and replaying it on AIDP.

Workflow

  1. Confirm prereqs — invoke aidp-migrator-bootstrap. Especially check DATABRICKS_HOST + DATABRICKS_TOKEN are set (catalog extract needs them).
  2. Confirm scope — ask which catalogs / schemas the user wants to migrate. Default to "everything in this catalog" but accept a filter list.
  3. Confirm bucket mapping — if any external tables have s3:// locations, the bucket-map config must exist. Route to aidp-bucket-mapping if missing.
  4. Stage 1: extractextract_catalog_databricks.pyreports/catalog_pack.json. Show the table count.
  5. Stage 2 dry-run: rewrite previewmigrate_catalog.py --dry-run. Surface:
    • Total CREATE SCHEMA statements
    • Total CREATE TABLE statements
    • Any rejections (MV / streaming / unsupported)
    • Any bucket-map misses Ask the user "ready to replay on the cluster?"
  6. Stage 2 replaymigrate_catalog.py (no --dry-run). Surface per-chunk status.
  7. Verify — for each migrated schema, run SHOW TABLES IN default.<schema> and surface the count. Compare to extract.

Args

$ARGUMENTS

If $ARGUMENTS provides <catalog> or <catalog>:<schema> filters, use them; else ask.

Checkpoints

[Phase 1/4] Extracted N catalogs, M schemas, K tables → reports/catalog_pack.json
[Phase 2/4] Dry-run: would create N schemas + M tables. Rejected: K MVs, J streaming tables.
            About to run live DDL replay — proceed? (y/N)
[Phase 3/4] Replayed in 4 chunks of 25 statements each. All chunks committed.
[Phase 4/4] Verify: SHOW TABLES across each schema. Discrepancies: 0

When to stop

  • User aborts at the dry-run checkpoint.
  • Bucket-map is missing buckets — fix first via aidp-bucket-mapping.
  • Dry-run shows >10% rejected (MVs / streaming) — likely a structural mismatch; review with the user before proceeding.

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 50 lines · 41 tokens per session scan A f31d8ef19350

Subscribe to this mod's changes

migrate-catalog is a command published in the GitHub repository ahmedawan-oracle/claude-code-plugins (2 stars, last pushed 1mo ago), licensed MIT. It adds 41 tokens to every session and 672 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.