cdc-scd-patterns

cdc-scd-patterns is a skill for Claude Code, Codex from jggomez/expert-ai-developer-skills. It costs 60 tokens per session (1,179 once invoked), scanned A, original, Apache-2.0.

Guides Change Data Capture (CDC) ingestion via Datastream and Slowly Changing Dimension (SCD) modeling in BigQuery/Dataform. Use when replicating an operational database, designing history-tracking dimension tables, or implementing SCD Type 1/2 merge logic.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Install with agentmods
npx agentmods add skills/jggomez/expert-ai-developer-skills/cdc-scd-patterns
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.

Any agent
npx skills add jggomez/expert-ai-developer-skills --skill cdc-scd-patterns
Clone the repo
git clone --depth 1 https://github.com/jggomez/expert-ai-developer-skills

Made for: Claude Code, Codex.

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 cdc-scd-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/cdc-scd-patterns/github.svg)](https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/cdc-scd-patterns)
Your own site
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/cdc-scd-patterns"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/cdc-scd-patterns/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 cdc-scd-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/cdc-scd-patterns"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/cdc-scd-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,179 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.00060 $0.01179
Opus 5.5 $0.00024 $0.00472
Sonnet 5.5 $0.00012 $0.00236
Haiku 4.5 $0.00006 $0.00118

Measured today against content hash edad86b02d83, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cdc-scd-patterns 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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scaffold_scd2_dataform.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/antigravity/senior-data-engineer/skills/cdc-scd-patterns/SKILL.md · 81 lines

How it starts

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

CDC & SCD Patterns Skill

Overview

This skill guides the design and implementation of Change Data Capture (CDC) replication pipelines and Slowly Changing Dimension (SCD) modeling in Google Cloud BigQuery and Dataform. It acts as a Senior Data Engineer and Dimensional Modeling Specialist, ensuring accurate historical point-in-time tracking, idempotent MERGE statements, and clean transition from raw change logs to queryable dimension tables.

When to Use

Trigger Scenarios

  • Replicating relational databases (Cloud SQL, AlloyDB, Oracle, Postgres) into BigQuery using Datastream.
  • Designing dimensional models requiring historical auditability (SCD Type 1 vs. Type 2).
  • Authoring Dataform .sqlx models to deduplicate CDC event streams into current-state snapshots.
  • Generating automated SCD Type 2 merge SQL statements.

When NOT to Use

  • High-level GCP cloud architecture and tool selection: Route to gcp-data-engineering.
  • Query execution plan and indexing diagnostics: Route to bigquery-query-optimization.
  • Application relational database migrations: Route to database-migration-expert.

Process

Phase 1: Datastream CDC Ingestion & Bronze Landing

  1. Log-based CDC: Datastream streams inserts, updates, and deletes from the database transaction log into BigQuery bronze tables without impacting source database CPU.
  2. Bronze Table Metadata: Each record contains metadata columns (_metadata_timestamp, _metadata_deleted, _metadata_change_type).
  3. Serving Rule: Never expose the raw bronze change-log directly to reporting or BI tools. Materialize a silver table representing current state or an SCD Type 2 dimension.

Phase 2: Dimension Classification Matrix (SCD Types 0–6)

Type Behavior Business Use Case
Type 0 Retain original value permanently. Original signup timestamp, initial creation dates.
Type 1 Overwrite in place; no history preserved. Typo corrections, attributes where history has zero analytical value.
Type 2 New row per change with valid_from, valid_to, is_current. Default choice: Customer addresses, pricing tiers, account statuses.
Type 3 Add previous_value column. Tracking only the immediately prior state alongside current.
Type 4 Separate current table and historical log table. Extremely high-churn dimensions where current queries must remain fast.
Type 6 Hybrid: Type 2 versioning with a Type 1 current column. Fast lookups without self-joins while retaining full historical auditability.

Read the full file on GitHub · 81 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 81 lines · 60 tokens per session scan A edad86b02d83

Subscribe to this mod's changes

cdc-scd-patterns is a skill published in the GitHub repository jggomez/expert-ai-developer-skills (30 stars, last pushed yesterday), licensed Apache-2.0. It adds 60 tokens to every session and 1,179 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-11-06.

Related

cdc-scd-patterns compared with skills from other repositories

cdc-scd-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cdc-scd-patternsjggomez/expert-ai-developer-skillsSkill30yesterdayApache-2.0A60Claude Code, Codex
create-prprisma/ormSkill48kyesterdayApache-2.0A48Claude Code, Codex
draft-release-notesprisma/ormSkill48kyesterdayApache-2.0A174Claude Code, Codex
publish-npm-versionprisma/ormSkill48kyesterdayApache-2.0A182Claude Code, Codex
triage-contributor-prprisma/ormSkill48kyesterdayApache-2.0A131Claude Code
contrib-prprisma/ormSkill48kyesterdayApache-2.0A65Claude Code, Codex
review-implement-phaseprisma/ormSkill48kyesterdayApache-2.0A38Claude Code