SCD Implementation Generator
DevelopmentSCD Implementation Generator is an Agent Skill for development published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Generates Slowly Changing Dimension implementations across platforms
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/data-engineering-analytics/skills/scd-implementation-generator/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/scd-implementation-generator, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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