Kompletter Workflow für neue Entity
Executes a complete workflow to create a new data vault entity, including staging, hub, satellite, and optional links. Use this to automate the end-to-end setup of new entities from source to mart.
/plugin marketplace add fellnerd/claude-marketplace/plugin install datavault@dimetrics-marketplaceKompletter Workflow um eine neue Entity von der Quelle bis zum Mart zu erstellen.
┌──────────────────────────────────────────────────────────────┐
│ Entity Workflow │
├──────────────────────────────────────────────────────────────┤
│ 1. External Table → 2. Staging → 3. Hub → 4. Sat │
│ └──→ 5. Link(s) │
│ └──→ 6. Mart │
└──────────────────────────────────────────────────────────────┘
Prüfe ob Parquet-Daten verfügbar sind:
Tool: describe_table
Args: { "tableName": "ext_{{ENTITY_NAME}}", "schema": "stg" }
Falls nicht vorhanden:
sources.yml hinzudbt run-operation stage_external_sources/create-staging {{ENTITY_NAME}}
→ Fragt nach Business Key → Generiert Hash Keys & Hash Diff
/create-hub {{ENTITY_NAME}}
→ Verwendet Business Key aus Staging
→ Erstellt hub_{{ENTITY_NAME}}.sql
/create-satellite {{ENTITY_NAME}}
→ Zeigt verfügbare Attribute
→ Fragt nach Auswahl
→ Erstellt sat_{{ENTITY_NAME}}.sql
Prüfe Fremdschlüssel in Staging:
Tool: suggest_attributes
Args: { "entityName": "{{ENTITY_NAME}}" }
Für jeden erkannten FK:
/create-link {{ENTITY_NAME}}_{{REFERENCED_ENTITY}}
/create-mart {{ENTITY_NAME}}_current_v
Tool: run_command
Args: {
"command": "dbt run --select stg_{{ENTITY_NAME}} hub_{{ENTITY_NAME}} sat_{{ENTITY_NAME}}"
}
/new-entity product
/new-entity contractor
/new-entity supplier