a5c-ai/babysitter / library/specializations/data-engineering-analytics/skills/scd-implementation-generator
SCD Implementation Generator
VerifiedGenerates Slowly Changing Dimension implementations across platforms
SCD Implementation Generator
Overview
Generates Slowly Changing Dimension implementations across platforms. This skill automates the creation of SCD patterns for proper historical tracking.
Capabilities
- SCD Type 1/2/3/4/6 implementation
- MERGE statement generation
- dbt snapshot configuration
- Historical tracking optimization
- Surrogate key management
- Effective date handling
- Current flag management
- Mini-dimension design
Input Schema
{
"dimension": {
"name": "string",
"columns": ["object"],
"businessKey": ["string"]
},
"scdType": "1|2|3|4|6",
"platform": "snowflake|bigquery|redshift|dbt",
"trackingColumns": ["string"]
}
Output Schema
{
"ddl": "string",
"mergeStatement": "string",
"dbtConfig": "object",
"documentation": "string"
}
Target Processes
- SCD Implementation
- Dimensional Model Design
- dbt Model Development
Usage Guidelines
- Define dimension structure with business keys
- Select appropriate SCD type for business requirements
- Specify target platform for syntax generation
- Identify columns to track for historical changes
Best Practices
- Use SCD Type 2 for attributes requiring full history
- Implement surrogate keys for dimension tables
- Use effective dates rather than just current flags
- Consider mini-dimensions for rapidly changing attributes
- Test SCD logic with representative change scenarios
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |