/dak:schema-mappingfrom dak
Guides analyzing, mapping, and documenting transformations between source and target schemas for databases, data warehouses, or data platforms. Creates a high-fidelity Mapping Manifesto for ETL/ELT/integration tasks with multiple tables before writing code.
Ships in dak. 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.
Follow this structured process and procedures for analyzing source-to-target data relationships and creating a high-fidelity Mapping Plan (also known as a Mapping Manifesto). This process is platform-agnostic and should be used before generating any target-specific pipeline code. When this skill is loaded, you MUST use this plan and replace the existing generic plan.
Use this skill when:
Before creating the plan, you must obtain or request:
SOURCE_SCHEMAS: Definitions (schemas, tables, fields, types) of the
source data.TARGET_SCHEMAS: Definitions of the desired target/destination schemas.BUSINESS_CONTEXT: Domain details, business rules, or use case
description.TARGET_PLATFORM: The database or execution engine (e.g., BigQuery,
Snowflake, Postgres, Spark, Beam).KNOWLEDGE_GRAPH: If there's a knowledge graph / property graph
available, always inspect the graph for node table definitions, edge table
definitions, and foreign key bindings (SOURCE / DESTINATION key
references), etc.[!IMPORTANT] Execution Strategy: Table-by-Table Iteration
You MUST execute this procedure iteratively, one target table at a time. For each individual table in the
TARGET_SCHEMAS, complete Steps 1 through 6 sequentially before moving to the next table. Do not attempt to map or summarize multiple tables in a single batch, as this leads to hallucinations, overlooked constraints, and context window bloat.
Analyze the entity names and attributes in the SOURCE_SCHEMAS against the
TARGET_SCHEMAS.
BUSINESS_CONTEXT, map matching concepts
with different names (e.g., client_id vs customer_num).For each table or collection in the TARGET_SCHEMAS:
If a target field mapping is ambiguous or schema types do not tell the whole story (e.g., verifying if a timestamp is ISO-8601, if a string is a JSON array, or checking the distribution of values):
SELECT ... LIMIT 10,
SELECT COUNT(DISTINCT ... )) to sample values.Evaluate every column in each target table to determine its source mapping. Categorize mappings and plan cleanliness transformations:
SUM, COUNT, ARRAY_AGG or string concatenation).NOT NULL or REQUIRED constraint in the target schema.NULL or define a default value.NOT NULL, you
MUST NOT map it to NULL. (Rationale: Mapping NOT NULL target columns
to NULL will cause execution-time database constraint violations and
pipeline failures). You must identify a source field to derive it from,
default it to a valid non-null placeholder (e.g., 'UNKNOWN', 0, or
default dates), or define logic to generate a valid unique reference."NULL", "None",
"N/A", or empty spaces to true database NULL values.YYYY-MM-DDTHH:MM:SSZ) or standard destination TIMESTAMP
format. Plan checks to ensure logical temporal progression (e.g.,
start_time <= end_time).DECIMAL).Specify the logical join path to connect the Anchor Table with all contributing source tables:
source_order.customer_id = source_customer.id).INT column to a
STRING column).Analyze the schemas and reference the ONE_SHOT_EXAMPLE below to structure your
output.
dataset: my_music_library
style: {id: int, style: string}
band: {name: string, biography: string, style: int}
cd: {name: string, year: int, artist: string, numbers: array<string>}
track: {id: string, number: int, name: string}
dataset: music_standard
artist: {name: string, albums: array<string>}
album: {name: string, year: int, genre: string, tracks: array<string>}
For each target table, document your column-to-column reasoning:
# Mapping Plan: `album`
* **Anchor Source Table**: `cd`
* **Join Paths & Optimization**:
* `cd` JOIN `band` ON `cd.artist = band.name`
* `band` JOIN `style` ON `band.style = style.id`
* `cd` JOIN `track` ON `track.id IN UNNEST(cd.numbers)`
### Field Mappings
| Target Field | Source Field / Logic | Mapping Type | Rationale / Transformation Details |
| :--- | :--- | :--- | :--- |
| `album.name` | `cd.name` | Direct | A CD is a physical medium representing an album; direct semantic match |
| `album.year` | `cd.year` | Direct | Direct semantic match for release year |
| `album.genre` | `style.style` | Joined | Resolved via `cd.artist` -> `band.name` -> `band.style` (ID) -> `style.id` -> `style.style` (String) |
| `album.tracks` | `ARRAY_AGG(track.name)` | Aggregated | Aggregation Point: Collapses 1-to-many track IDs in `cd.numbers` into an array of track names |
SOURCE_SCHEMAS. You MUST NOT reference non-existent columns,
guess field names, or make assumptions about source schemas without
explicitly confirming them in the schema definitions. (Rationale: Proposing
guesses leads to compilation errors and invalid mapping specifications).NULL to a column defined as NOT NULL or REQUIRED in the
TARGET_SCHEMAS.TIMESTAMP, BOOLEAN, DECIMAL) to avoid
load failures. (Rationale: Different databases and platforms handle type
validation strictly; pre-planning casts prevents execution-time runtime
errors).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
41 skills in this plugin
/accidental-data-loss-prevention**STOP AND VERIFY**: Before running any command or tool that results in irreversible data loss, you MUST obtain explicit user consent.
When in doubt, ask. It is better to wait for confirmation than to accidentally delete production data or critical project assets.
Use this for:
- SQL: DROP TABLE/VIEW/SCHEMA/DATABASE, TRUNCATE, or broad DELETE (missing WHERE or using 1=1).
- Cloud Storage: gsutil rm or gcloud storage rm targeting production data or critical buckets.
- Infrastructure: gcloud projects delete, deleting Spanner/BigQuery/Dataproc resources, deleting secrets, or KMS key destruction.
/bigquery-ai-mlLeverages BigQuery's built-in machine learning and GenAI capabilities for advanced data analytics. Use when you need to write SQL queries that perform time-series forecasting, predict values, detect outliers or anomalies, find key drivers, perform semantic search or vector search, classify text, calculate similarity, summarize content, translate language, evaluate models, filter by semantic conditions, measure the causal effect of an intervention, compute correlations between columns, generate descriptive statistics and table distribution profiles, detect change points or structural breaks, extract trend or seasonality components, or leverage generative AI capabilities in BigQuery. Do not use for general BigQuery dataset, table, or job management requests./bigquery-bigframesGenerates Python code using BigQuery DataFrames (BigFrames). Use by default for any Python data task involving BigQuery, including data processing, analysis, and machine learning. Don't use for SQL-first workflows or the google-cloud-bigquery client library — use bigquery-basics./bigquery-data-transfer-serviceDiscovers and inspects BigQuery Data Transfer Service (DTS) configurations. Use this to identify existing ingestion pipelines and extract datasource or transfer config metadata for data pipelines. Use when a user asks for ingestion scenarios while building or managing data pipelines or when a user asks to "ingest" or "add" data that may already be managed by a DTS transfer./bigquery-graph-authorProvides an end-to-end journey for authoring a BigQuery property graph from your tables or from a model document/diagram (an ER diagram, an ontology, a semantic model): dataset discovery, candidate relationships verified against the data, a readable plan, and `CREATE PROPERTY GRAPH` DDL with schema best practices and semantic measures/dimensions, plus an opt-in verification suite for the landed graph. Use when creating or replacing a property graph, authoring a graph from a dataset or a document, or verifying relationships or suspicious edge counts. Don't use for querying an existing graph, for non-BigQuery graph databases, or for drawing/rendering diagrams./bigquery-graph-queryProvides guidelines and best practices for querying BigQuery property graphs and semantic graphs: native GQL (Graph Query Language) pattern matching, multi-hop and variable-length paths, aggregation, top-N, path extraction, output formatting (graph visualization with TO_JSON vs tabular), GRAPH_TABLE relational SQL integration, and semantic graph querying via the GRAPH_EXPAND TVF with starting-node view selection and AGG() measures. Also covers hybrid semantic search, combining `VECTOR_SEARCH` candidate generation with graph traversal when a node carries an embedding-backed property. Use when querying graph topology, node/edge connections, paths, or semantic measures over an existing BigQuery graph. Don't use for Cypher or non-BigQuery graph databases, or for creating/modifying a graph schema.npx claudepluginhub googlecloudplatform/data-agent-kit-plugin --plugin dakOther plugins' skills for the same job