/oracle-ai-data-platform-workbench-engineer-agent:aidp-sql-ddlfrom oracle-ai-data-platform-workbench-engineer-agent
Executes write-side Spark SQL on AIDP lakehouse: DDL, DML (INSERT/UPDATE/DELETE/MERGE upsert), and Delta maintenance (OPTIMIZE, VACUUM, time travel, RESTORE, schema evolution, liquid clustering).
Ships in oracle-ai-data-platform-workbench-engineer-agent. 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-sql-ddl — lakehouse write SQL (DDL / DML / Delta maintenance)AIDP runs Spark 3.5 + Delta Lake 3.2 (platform-ref §39), so the full write grammar works through the
bundled scripts/aidp_sql.py helper — the same engine aidp-analyzing-data uses for SELECT. This skill
covers everything that changes data or schema. Live-verified on AIDP 2026-06-10 (USER cluster, via
aidp_sql.py, all un-wrapped → status: ok): CREATE TABLE, INSERT, UPDATE, DELETE, MERGE,
OPTIMIZE, VACUUM, DESCRIBE HISTORY, time travel (VERSION AS OF), DROP — the full Spark 3.5 / Delta
3.2 write grammar (platform-ref §39) executes end-to-end. (A tester once saw the first bare CREATE TABLE on a
brand-new instance throw a transient catalog-registration error; it was not reproducible on a fresh
instance — see Caveat below.)
aidp-analyzing-data. NOT for control-plane catalog/connection registration
→ aidp-table-management.Every statement here changes state. Before running any DML/DDL:
aidp-cluster-ops) and qualify objects fully (catalog.schema.table).DROP, DELETE,
TRUNCATE, INSERT OVERWRITE, VACUUM (VACUUM permanently removes old files → breaks time travel)..aidp/payloads/ per references/payloads.md.SELECT count(*) … WHERE <predicate> before the matching UPDATE/DELETE.python "$PLUGIN_DIR/scripts/aidp_sql.py" \
--region <region> --datalake <DATALAKE_OCID> --workspace <ws> --cluster <cluster-key> \
--code "spark.sql('''<SQL>''')"
Returns JSON {status, execution_count, outputs, spark_job_ids, error}. No MCP / no AIDP_SESSION needed.
| Need | SQL |
|---|---|
| Create managed Delta table | CREATE TABLE c.s.t (id INT, v STRING) USING DELTA |
| CTAS | CREATE TABLE c.s.t USING DELTA AS SELECT … |
| Liquid clustering | CREATE TABLE … CLUSTER BY (col) (or ALTER TABLE … CLUSTER BY) |
| Insert | INSERT INTO c.s.t VALUES (…) · full reload INSERT OVERWRITE c.s.t SELECT … |
| Update / Delete | UPDATE c.s.t SET v='x' WHERE … · DELETE FROM c.s.t WHERE … |
| Upsert (MERGE) | MERGE INTO c.s.t t USING src s ON t.id=s.id WHEN MATCHED THEN UPDATE SET * WHEN NOT MATCHED THEN INSERT * |
| Schema evolution | ALTER TABLE c.s.t ADD COLUMNS (x INT) · … RENAME COLUMN · … DROP COLUMN; or write with mergeSchema |
| Compact | OPTIMIZE c.s.t [ZORDER BY (col)] |
| Reclaim files | VACUUM c.s.t RETAIN 168 HOURS (destructive — confirm; <168h needs spark.databricks.delta.retentionDurationCheck.enabled=false) |
| History | DESCRIBE HISTORY c.s.t |
| Time travel | SELECT * FROM c.s.t VERSION AS OF 3 · … TIMESTAMP AS OF '2026-06-01' |
| Restore | RESTORE TABLE c.s.t TO VERSION AS OF 3 |
| View | CREATE VIEW c.s.v AS SELECT … · CREATE OR REPLACE VIEW … · DROP VIEW … |
| Schema (namespace) | CREATE SCHEMA IF NOT EXISTS c.s · DROP SCHEMA c.s [CASCADE] |
CREATE TABLE report (NOT reproduced)A tester once reported that the first bare CREATE TABLE … USING DELTA on a just-provisioned DataLake threw
ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 (a suspected catalog-registration race,
not a SQL error). This could NOT be reproduced. On a genuinely freshly-provisioned DataLake + cluster, the
very first bare CREATE TABLE succeeded (live-checked 2026-06-12 on a brand-new instance — table created,
confirmed via SHOW TABLES; also fine on established instances). So treat it as a possible transient in a
narrow post-provision window, not a deterministic behavior. If you ever do hit it, don't hammer the DDL —
create the first table via the writer (spark.createDataFrame(rows).write.saveAsTable('c.s.t')) or
ingest-then-CTAS (aidp-ingest-file-to-table) to warm the catalog, then bare CREATE TABLE works.
.aidp/catalog.md or a DESCRIBE/SHOW COLUMNS cell.error field, fix grounded in the catalog, retry once — don't guess repeatedly.aidp-pipelines).oci:// table reads/writes from other sources → delegate to the
…-spark-connectors plugin (aidp-iceberg, aidp-object-storage); this skill is lakehouse-native SQL.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ahmedawan-oracle/claude-code-plugins --plugin oracle-ai-data-platform-workbench-engineer-agent37 skills in this plugin
/aidp-agent-flowsDiscover, author, deploy, and run AIDP agent flows. Use when the user wants to list/inspect agent flows, or create/update/deploy/run a flow, manage sessions/guardrails, attach compute, or attach a remote MCP server to a flow (an MCP_TOOL node — AIDP's "Native MCP Client Support" LA feature, where the flow connects OUT to OAC/ADW/OIC/any MCP-compatible service). Everything runs over the Limited-Availability AgentFlows REST API via `oci raw-request`; verify live first. (An `aidp` MCP `list_agent_flows`, if configured, is an optional read accelerator only.)/aidp-agent-highcodeBuild AIDP agents in high-code Python with aidputils + LangGraph (the code-first alternative to the low-code agent-flow canvas). Use when the user wants to write an agent in Python, use LangGraph / create_react_agent / StateGraph, call aidputils (OCIAIConf, AIDPToolConf, init_oci_llm, create_langgraph_tool), build a custom or multi-agent supervisor flow in code, or asks "how do I code an AIDP agent". For the low-code/REST node-graph path use aidp-agent-flows./aidp-ai-sqlRun LLM functions inside Spark SQL on AIDP via ai_generate(). Use when the user wants to summarize/classify/extract/enrich rows with an LLM directly in SQL, generate narratives over aggregated results, or do grounded RAG-style analysis in the lakehouse. Signature is model-first; available models must be confirmed live before relying on it./aidp-analyzing-dataAnswer business questions over the AIDP lakehouse with Spark SQL. Use when the user asks a data question ("how many…", "top N…", "show me…", "trend of…", "revenue by…") or wants to run ad-hoc Spark SQL. Grounds in .aidp/catalog.md + .aidp/semantic.md and reuses validated verified queries before generating SQL, then executes via the bundled aidp_sql.py helper./aidp-auditManage and search AIDP audit logs — enable/disable auditing, set retention, and query audit-log entries for a DataLake. Use when the user asks about audit logging, who did what, compliance/retention of AIDP activity, or wants to search audit events. Self-contained — official `aidp audit` CLI preferred, `oci raw-request` fallback./aidp-bundleDeploy AIDP resources as a bundle — create a bundle, deploy all its assets atomically, query deployment status, and purge. Use when the user wants to promote/deploy a set of AIDP resources together, manage a deployment bundle, check bundle deployment status, or tear one down. Preview API via `oci raw-request`; verify live first.Other plugins' skills for the same job