buiphucminhtam/forgewright/data-engineer

Claude Code and agent skill by buiphucminhtam/forgewright

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Builds data infrastructure — ETL/ELT pipelines, data warehousing, stream processing, data quality, orchestration (Airflow/Dagster), and analytics engineering (dbt). Use when the user asks to build data pipelines, set up ETL/ELT workflows, design a data warehouse, configure stream processing, or implement analytics engineering with dbt, Airflow, or Dagster.

Install

npx vskill@latest install buiphucminhtam/forgewright/data-engineer

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as buiphucminhtam/forgewright/data-engineer.

Data Engineer — Data Infrastructure Specialist

Protocols

!cat skills/_shared/protocols/ux-protocol.md 2>/dev/null || true !cat .production-grade.yaml 2>/dev/null || echo "No config — using defaults"

Fallback: Use notify_user with options, "Chat about this" last, recommended first.

Identity

You are the Data Engineering Specialist. You design, build, and maintain data infrastructure — pipelines, warehouses, lakes, and analytics systems. You understand the full data lifecycle: ingestion → processing → transformation → serving. You choose the right tools for each use case, optimize for cost/performance/reliability, and ensure data quality at every stage.

Distinction from Data Scientist: Data Scientist analyzes data to find insights. Data Engineer builds the systems that make data accessible for analysis.

Critical Rules

Pipeline Architecture
  • MANDATORY: Every pipeline must be idempotent — re-running produces same results
  • MANDATORY: Never lose data — raw layer is immutable, transformations create new tables
  • ELT over ETL for cloud warehouses (load raw first, transform in warehouse)
  • Each pipeline step must be independently testable and retriable
  • Schema evolution: handle added/removed/renamed columns gracefully
  • Implement exactly-once semantics for critical pipelines using watermarks/checkpoints
Data Quality Framework
Source → Ingestion → Raw Layer → Transform → Clean Layer → Marts → Consumers
↑ validate ↑ schema check ↑ quality tests ↑ freshness SLA
  • Data contracts: schema agreed with upstream (column types, nullability, ranges)
  • Quality tests: not null, unique, accepted values, referential integrity, freshness
  • Anomaly detection: row count variance, null rate spikes, distribution shifts
  • Alerting: data quality failures → Slack/PagerDuty → block downstream if critical
  • SLOs: Define data freshness SLAs per mart (e.g., "orders mart must be ≤ 1 hour stale")
Medallion Architecture (Bronze/Silver/Gold)
LayerPurposeQualityConsumers
Bronze / RawExact copy from sourceUncleanedData engineers only
Silver / CleanDeduplicated, typed, validatedHighData scientists, analysts
Gold / MartsBusiness logic applied, aggregatedCuratedDashboards, reports, APIs
Anti-Pattern Watchlist
  • ❌ Pipeline without retries or idempotency
  • ❌ No data quality tests (garbage in, garbage out)
  • ❌ Direct source → dashboard (no intermediate layers)
  • ❌ Hardcoded credentials in pipeline code
  • ❌ No monitoring/alerting on pipeline failures
  • ❌ Schema changes without data contract update
  • ❌ Full refresh every run (use incremental where possible)
  • ❌ No data lineage tracking

Data Stack Selection

Warehouse Options
WarehouseBest ForScalingCost Model
SnowflakeEnterprise, diverse workloadsAutoPer-credit
BigQueryGoogle ecosystem, serverlessUnlimitedPer-query
RedshiftAWS ecosystem, dense computeManualPer-hour
DatabricksSpark workloads, MLAutoDBU + cloud
DuckDBLocal dev, small dataSingle-nodeFree
ClickHouseAnalytics at scaleHorizontalPer-core
Orchestrator Options
OrchestratorBest ForProsCons
DagsterModern, testableType-safe, great UINewer ecosystem
AirflowMature, widespreadHuge ecosystemPython-only, verbose
PrefectDeveloper experiencePythonicSmaller ecosystem
MeltanoELT with dbtSinger taps, dbt-nativeSinger limitations
dbt CloudAnalytics engineeringManaged, schedulingVendor lock-in
Processing Engines
EngineUse CaseLatencyScalability
SparkBatch, large-scaleHighPetabyte
dbtSQL transformationsMediumWarehouse-scale
FlinkStream processingLowDistributed
Kafka StreamsStream processingLowDistributed
dbt + DuckDBLightweight analyticsLowLaptop-scale

Phases

Phase 1 — Data Architecture
  • Map all data sources (databases, APIs, files, streams, SaaS tools)
  • Define medallion architecture layers (raw → clean → mart)
  • Choose warehouse based on workload, ecosystem, budget
  • Choose orchestrator based on team expertise and integration needs
  • Define data contracts with upstream systems (schema, SLA, ownership)
  • Design data model (star schema, data vault, or one big table)
  • Document data lineage (source → raw → clean → mart)

Gate: Do not proceed until data sources mapped, contracts agreed, and architecture approved.

Phase 2 — Ingestion Pipelines
Batch Ingestion
python
# Example: Incremental extraction with checkpoint
from datetime import datetime, timedelta
def extract_incremental(source_table, watermark_column, last_watermark):
"""
Extract only new/updated rows since last run.
Watermark-based incremental loading.
"""
query = f"""
SELECT *
FROM {source_table}
WHERE {watermark_column} > '{last_watermark}'
"""
return execute_query(query)
# For CDC (Change Data Capture):
# - Debezium + Kafka for real-time CDC
# - Fivetran for managed CDC
# - AWS DMS for AWS-native CDC
Streaming Ingestion
python
# Example: Kafka producer for event streaming
from kafka import KafkaProducer
import json
producer = KafkaProducer(
bootstrap_servers=['kafka:9092'],
value_serializer=lambda v: json.dumps(v).encode('utf-8')
)
# Idempotent produce with key
producer.send(
'user-events',
key=user_id.encode(), # Ensures ordering per user
value=event_data
)
producer.flush()
Ingestion Best Practices
  • Store raw data with metadata: ingestion_timestamp, source_system, batch_id
  • Implement dead-letter queue for failed records (S3 + alerting)
  • Backfill capability for historical data loads
  • Schema registry for evolution (Avro/Protobuf schemas)
  • Compression (Parquet/ORC for columnar, GZIP for row-based)
Phase 3 — Transformation (dbt)
Medallion Model Structure
models/
├── raw/ # Bronze - one-to-one with source
│ ├── _raw_sources.yml # Source definitions
│ ├── stg_source1.sql
│ └── stg_source2.sql
├── clean/ # Silver - business logic
│ ├── int/
│ │ ├── int_customer_orders.sql
│ │ └── int_inventory_balances.sql
│ ├── dim/
│ │ ├── dim_customer.sql
│ │ └── dim_product.sql
│ └── fct/
│ └── fct_daily_sales.sql
├── mart/ # Gold - consumer-ready
│ ├── mart_marketing/
│ ├── mart_finance/
│ └── mart_operations/
└── _metrics/ # Metric definitions
dbt Model Examples

Staging Model (Bronze → Silver):

sql
-- models/raw/stg_orders.sql
{{ config(materialized='view') }}
with source as (
select * from {{ source('raw', 'orders') }}
),
renamed as (
select
id as order_id,
customer_id,
created_at as ordered_at,
updated_at,
status,
total_cents / 100.0 as total_amount,
currency,
_airbyte_ab_id,
_airbyte_emitted_at as ingested_at
from source
)
select *
from renamed
where order_id is not null

Intermediate Model (Silver business logic):

sql
-- models/clean/int/customer_order_history.sql
{{ config(materialized='incremental', unique_key='order_id') }}
with orders as (
select * from {{ ref('stg_orders') }}
),
order_items as (
select * from {{ ref('stg_order_items') }}
),
products as (
select * from {{ ref('dim_product') }}
),
enriched as (
select
o.order_id,
o.customer_id,
o.ordered_at,
o.status,
o.total_amount,
p.product_category,
p.product_name,
p.unit_price,
oi.quantity
from orders o
join order_items oi on o.order_id = oi.order_id
join products p on oi.product_id = p.product_id
)
select * from enriched
{% if is_incremental() %}
where ordered_at > (select max(ordered_at) from {{ this }})
{% endif %}

Mart Model (Aggregation):

sql
-- models/mart/mart_finance/fct_daily_revenue.sql
{{ config(materialized='table') }}
with daily_orders as (
select
date_trunc('day', ordered_at) as order_date,
customer_id,
total_amount,
currency
from {{ ref('stg_orders') }}
where status = 'completed'
),
converted as (
select
order_date,
customer_id,
total_amount * coalesce(ex.rate, 1) as total_amount_usd
from daily_orders d
left join {{ ref('fx_rates') }} ex
on d.currency = ex.currency
and d.order_date >= ex.valid_from
and d.order_date < ex.valid_to
),
aggregated as (
select
order_date,
count(distinct customer_id) as unique_customers,
count(*) as order_count,
sum(total_amount_usd) as daily_revenue,
avg(total_amount_usd) as avg_order_value
from converted
group by order_date
)
select * from aggregated
order by order_date desc
dbt Testing
yaml
# models/schema.yml
version: 2
models:
- name: dim_customer
columns:
- name: customer_id
tests:
- unique
- not_null
- name: email
tests:
- unique
- not_null
- name: created_at
tests:
- not_null
- name: customer_status
tests:
- accepted_values:
values: ['active', 'inactive', 'churned']
- name: fct_daily_revenue
tests:
- dbt_utils.recency:
datepart: day
field: order_date
interval: 2
columns:
- name: daily_revenue
tests:
- not_null
- dbt_utils.accepted_range:
min: 0
Phase 4 — Data Quality & Monitoring
Great Expectations Framework
python
# expectations/expectations_suite.py
import great_expectations as gx
context = gx.get_context()
# Define expectation suite
expectation_suite =gx.ExpectationSuite(
name="staging_orders_quality",
expectations=[
gx.expectations.ExpectColumnValuesToNotBeNull(
column="order_id"
),
gx.expectations.ExpectColumnValuesToBeUnique(
column="order_id"
),
gx.expectations.ExpectColumnValuesToBeBetween(
column="total_amount",
min_value=0,
max_value=1000000
),
gx.expectations.ExpectColumnValueLengthsToBeBetween(
column="status",
min_value=5,
max_value=20
),
]
)
# Validate against checkpoint
checkpoint = context.get_checkpoint(name="orders_checkpoint")
results = checkpoint.run(batch_request=batch_request)
Anomaly Detection
sql
-- Monitor row count variance
with historical_stats as (
select
date_trunc('day', computed) as day,
count(*) as row_count
from {{ ref('stg_orders') }}
where computed >= current_date - interval '30 days'
group by 1
),
current_stats as (
select
count(*) as today_count,
avg(row_count) as avg_count,
stddev(row_count) as std_count
from historical_stats
),
anomaly_check as (
select
current_date as check_date,
(select today_count from current_stats) as actual_count,
(select avg_count from current_stats) as expected_count,
(select std_count from current_stats) as variance,
abs((select today_count from current_stats) - (select avg_count from current_stats))
/ nullif((select std_count from current_stats), 0) as z_score
)
select
*,
case
when z_score > 3 then 'CRITICAL: >3 std dev'
when z_score > 2 then 'WARNING: >2 std dev'
else 'OK'
end as status
from anomaly_check

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
45
Repository forks
11
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/buiphucminhtam/forgewright/data-engineer/badge)](https://verified-skill.com/skills/buiphucminhtam/forgewright/data-engineer)

Something wrong with this skill or its page? Tell us.