migrate-catalog

migrate-catalog is a command for Claude Code 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 for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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

Good fit 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.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ahmedawan-oracle/claude-code-plugins/migrate-catalog
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.

Clone the repo
git clone --depth 1 https://github.com/ahmedawan-oracle/claude-code-plugins

Made for: Claude Code.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for migrate-catalog

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00041 $0.00672
Opus 5.5 $0.00016 $0.00269
Sonnet 5.5 $0.00008 $0.00134
Haiku 4.5 $0.00004 $0.00067

Measured 2mo ago against content hash f31d8ef19350, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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: extract — extract_catalog_databricks.py → reports/catalog_pack.json. Show the table count.
  5. Stage 2 dry-run: rewrite preview — migrate_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 replay — migrate_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. 2mo 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 (4 stars, last pushed 3mo ago), licensed MIT. It adds 41 tokens to every session and 672 once invoked, about $0.0002 per session on Opus 5.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.

Related

migrate-catalog compared with commands from other repositories

migrate-catalog next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
migrate-catalogahmedawan-oracle/claude-code-pluginsCommand43mo agoMITA41Claude Code
initfcakyon/claude-codex-settingsCommand1.2ktodayApache-2.0A0Claude Code
securityajitpratap0/GoSQLXCommand124todayApache-2.0A21Claude Code
database-setupimsaif/design-with-claudeCommand113d agoMITA36Claude Code
new-migrationRaNDoM6913/claude-code-superkitCommand3todayMITA22Claude Code
json.batch_getstratalab/strata-coreCommand51mo agoApache-2.0A0Claude Code
json.index.dropstratalab/strata-coreCommand51mo agoApache-2.0A0Claude Code