dbt-transformation-patterns
بناء نماذج dbt باستخدام الأنماط المثبتة
也可从以下获取: sickn33
قد يكون بناء تحويلات dbt الموثوقة بطيئًا دون وجود هيكل واضح. توفر هذه المهارة طبقات من الأنماط والنماذج والاستراتيجيات التزايدية التي يمكنك تطبيقها بسرعة.
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“dbt-transformation-patterns”。 Create a dbt structure for Stripe and Shopify data with staging and marts.
预期结果:
- Set up staging models for Stripe customers and payments with stg_ prefix
- Add an intermediate model to aggregate payments by customer using int_ prefix
- Create marts with dim_customers for dimensions and fct_orders for facts
- Add YAML tests for unique and not_null on primary keys
- Configure incremental processing for large payment tables
正在使用“dbt-transformation-patterns”。 How do I test my dbt models?
预期结果:
- Add not_null and unique tests on all primary key columns
- Use relationships tests to validate foreign key references
- Add accepted_values tests for categorical columns like order_status
- Use dbt_utils.expression_is_true for business rule validation
- Configure freshness checks on source definitions
正在使用“dbt-transformation-patterns”。 What are incremental models and when should I use them?
预期结果:
- Incremental models process only new or changed data since last run
- Use when tables exceed 1 million rows to reduce runtime
- Configure with unique_key to identify records and incremental_strategy for update logic
- Use is_incremental() macro to filter incoming data
- Supports merge, delete+insert, and insert_overwrite strategies
安全审计
安全Pure documentation skill containing only SQL and YAML examples for dbt patterns. The static analyzer produced false positives: YAML frontmatter markers were flagged as shell backticks, Jinja2 template syntax was flagged as command execution, and normal dbt CLI commands were flagged as reconnaissance. All findings are dismissed. No executable code, network calls, file system access, or external command execution capabilities exist.
风险因素
⚙️ 外部命令 (34)
质量评分
你能构建什么
توحيد طبقات النماذج
تبني أنماط التجهيز والوسيطة والمارت مع تسمية واتساق هيكلية.
تحسين جودة البيانات
إضافة فحوصات المصادر والنماذج مع توثيق واضح للحوكمة.
بدء مشروع dbt
إعداد dbt_project.yml وتخطيط مجلد واضح للنماذج.
试试这些提示
اشرح تخطيطًا بسيطًا للتجهيز والوسيطة والمارت لمشروع dbt الخاص بي مع أمثلة التسمية.
صمم فحوصات وتوثيق YAML لنموذج أبعاد العملاء ونموذج حقائق الطلبات.
اقترح تكوين نموذج تزايدي للمدفوعات مع عامل تصفية تزايدي آمن.
عرض نمط ماكرو لتوحيد تحويل العملات وتسمية المخططات في dbt.
最佳实践
- استخدم طبقة تجهيز لتنظيف المصادر مرة واحدة وإعادة استخدامها لاحقًا عبر جميع النماذج
- أضف فحوصات not_null و unique لكل عمود مفتاح أساسي في نماذجك
- وثق النماذج والأعمدة أثناء بنائها مع أوصاف واضحة
避免
- تجاوز طبقة التجهيز وربط البيانات الخام مباشرة في المارت يُنشئ رمزًا غير قابل للصيانة
- تواريخ أو قيم مُشفرة بدلاً من استخدام vars للتكوين يُكسر قابلية النقل
- تكرار المنطق عبر النماذج بدلاً من استخراجه إلى ماكرو قابل لإعادة الاستخدام يزيد الصيانة