Tool.Data Engineering.55c8f35d7b3cac72 标志

Tool.Data Engineering.55c8f35d7b3cac72

组织
AI45Lab
tool.data_engineering.55c8f35d7b3cac72

Data engineering practice patterns for data pipelines, ETL/ELT, orchestration, data quality, and infrastructure. Covers Airflow, Dagster, Prefect, Spark, dbt, data lakes, lakehouses, Iceberg, Delta Lake, warehouses (Snowflake, BigQuery, Databricks), streaming (Kafka, Kinesis, Flink), CDC, data contracts, data governance, data mesh, and batch processing. Use when reviewing or building data pipelines, ingestion systems, stream processing, data infrastructure, or data platform architecture. Do not use for SQL modeling or dbt projects (use analytics-engineering), business dashboards (use analytics), or ML model training (use data-science).

Add to TypingMind

概览

发布者AI45Lab
代码仓库OpenART
技能名称tool.data_engineering.55c8f35d7b3cac72
星标数
251
复刻数
28
附带文件
1
许可协议AGPL-3.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 AI45Lab 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Tool.Data Engineering.55c8f35d7b3cac72 AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/AI45Lab/OpenART/tree/main/openart-tools/tool.data_engineering.55c8f35d7b3cac72
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AI45Lab/OpenART.git /tmp/OpenART
mkdir -p .claude/skills
cp -r /tmp/OpenART/openart-tools/tool.data_engineering.55c8f35d7b3cac72 .claude/skills/tool.data_engineering.55c8f35d7b3cac72
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Tool.Data Engineering.55c8f35d7b3cac72,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Tool.Data Engineering.55c8f35d7b3cac72。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Tool.Data Engineering.55c8f35d7b3cac72 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Use this skill when the OpenART registry selects tool.data_engineering.55c8f35d7b3cac72 for the current task.

Data Engineering Practice

Domain-specific patterns and checklists for data engineering work.

Scope

  • Data pipelines: batch and streaming
  • ETL/ELT processes and ingestion patterns
  • Orchestration: Airflow, Dagster, Prefect
  • Data quality and observability
  • Data lakes, lakehouses, and warehouses
  • Streaming: Kafka, Kinesis, Flink, Spark Streaming
  • CDC (Change Data Capture) patterns
  • Data contracts and schema registry
  • Data governance, lineage, and cataloging
  • Data mesh architecture

Code Review Checklist

Pipeline Design

  • Idempotent operations (safe to re-run without duplicates)
  • Atomic writes (all-or-nothing, no partial state)
  • Backfill strategy defined
  • Failure handling and retry logic
  • Appropriate task granularity (not monolithic)
  • Dependencies explicitly declared
  • No hardcoded dates or file paths
  • SLA defined for production pipelines

Data Quality

  • Schema validation on ingestion (not just at transform time)
  • Null handling explicit (expected vs unexpected nulls)
  • Data type coercion documented
  • Uniqueness constraints where needed
  • Freshness checks (data not stale beyond SLA)
  • Volume anomaly detection (row count within expected range)
  • Data quality tests defined (not just schema tests)

Orchestration

  • DAG structure is clear and documented
  • Task dependencies are correct and minimal
  • Timeouts configured at task and DAG level
  • Alerts on failure routed to right channel
  • SLAs defined and monitored for critical pipelines
  • Concurrency limits set to prevent resource contention
  • Catchup behavior explicitly configured

Performance

  • Partitioning strategy appropriate for access pattern
  • Incremental processing where possible (no full refreshes on large tables)
  • No full table scans on large fact tables
  • Appropriate file formats (Parquet/Iceberg/Delta, not CSV)
  • Compression enabled
  • Resource allocation sized appropriately (not default)

Architecture Patterns

Pipeline Structure

pipelines/
  ingestion/
    source_name/
      extract.py        # Pull from source system
      validate.py       # Schema and quality checks at landing
      load.py           # Write to bronze/raw zone
  transformation/
    domain/
      staging.sql       # Clean, dedupe (silver)
      intermediate.sql  # Business logic joins
      marts.sql         # Aggregated final models (gold)
  orchestration/
    dags/
      source_name_dag.py
  quality/
    checks/
      source_name_checks.py

Idempotency Pattern

python
# Good: Overwrite partition on re-run — idempotent
def load_partition(date: str):
    df = extract(date)
    (df.write
       .mode("overwrite")
       .partitionBy("date")
       .format("parquet")
       .save(path))

# Bad: Append creates duplicates on re-run
def load_partition(date: str):
    df = extract(date)
    df.write.mode("append").parquet(path)  # ❌

Incremental / Watermark Pattern

python
def load_incremental(source_table: str):
    watermark = get_watermark(source_table)
    new_records = source.filter(col("updated_at") > watermark)
    if new_records.isEmpty():
        return  # Nothing to do
    write_data(new_records)
    set_watermark(source_table, current_timestamp())
    log_metrics(source_table, new_records.count())

Data Lakehouse and Table Formats

Apache Iceberg

python
# Preferred for new lakehouses — ACID, schema evolution, time travel
spark.sql("""
    CREATE TABLE catalog.db.orders (
        order_id BIGINT NOT NULL,
        customer_id BIGINT,
        amount DECIMAL(10,2),
        created_at TIMESTAMP
    )
    USING iceberg
    PARTITIONED BY (days(created_at))
    TBLPROPERTIES (
        'write.delete.mode' = 'merge-on-read',
        'write.update.mode' = 'merge-on-read',
        'history.expire.max-snapshot-age-ms' = '604800000'  -- 7 days
    )
""")

# Incremental merge (ACID upsert)
spark.sql("""
    MERGE INTO catalog.db.orders t
    USING staging_orders s ON t.order_id = s.order_id
    WHEN MATCHED THEN UPDATE SET *
    WHEN NOT MATCHED THEN INSERT *
""")

Table Format Decision

ScenarioFormatReason
New Snowflake/BigQuery projectNative tablesWarehouse-managed; no format choice needed
Multi-engine lakehouse (Spark + Presto + Flink)IcebergBest interoperability
Databricks-only lakehouseDelta LakeNative integration, best Databricks perf
On-prem HDFS legacyParquet + HivePragmatic — migration cost > format benefit

Medallion Architecture

Bronze (raw)  → Silver (cleaned/conformed) → Gold (business-ready)
  • Bronze: Exact copy, no transformations. All fields including errors. Partition by ingest_date. Never delete rows.
  • Silver: Deduplicated, type-cast, renamed. One row per entity or event. Conforms to data contract.
  • Gold: Aggregated, dimensional, business-ready. Equivalent to dbt mart layer.

CDC (Change Data Capture)

Debezium + Kafka Pattern

Source DB (Postgres/MySQL) → Debezium → Kafka → Kafka Sink Connector → Warehouse/Lake
json
// Debezium connector config (Kafka Connect)
{
  "name": "postgres-source-connector",
  "config": {
    "connector.class": "io.debezium.connector.postgresql.PostgresConnector",
    "database.hostname": "postgres",
    "database.port": "5432",
    "database.user": "debezium",
    "database.password": "${secret:db-password}",
    "database.dbname": "production",
    "table.include.list": "public.orders,public.customers",
    "publication.name": "dbz_publication",
    "slot.name": "dbz_slot",
    "transforms": "unwrap",
    "transforms.unwrap.type": "io.debezium.transforms.ExtractNewRecordState",
    "transforms.unwrap.add.fields": "op,ts_ms"
  }
}

CDC Checklist:

  • Replication slot lag monitored (Postgres slots cause disk bloat if consumer falls behind)
  • Schema registry integrated (schema evolution without breaking consumers)
  • Dead letter queue for unprocessable messages
  • Exactly-once or at-least-once semantics explicitly chosen (and compensated if at-least-once)
  • Initial snapshot strategy defined (full table snapshot or skip)

Data Contracts

A data contract is the schema + SLA agreement between a producer and consumer.

yaml
# contracts/orders_v2.yaml
contract:
  name: orders
  version: "2.0.0"
  owner: data-platform-team
  consumers: [analytics, ml-team]

  schema:
    - name: order_id
      type: BIGINT
      nullable: false
      description: Unique order identifier
    - name: status
      type: VARCHAR
      nullable: false
      allowed_values: ["pending", "completed", "cancelled", "refunded"]

  sla:
    freshness_minutes: 30
    availability: "99.5%"

  quality:
    - check: row_count_min
      value: 1000
      window: daily
    - check: not_null
      columns: [order_id, status, created_at]

Schema Registry (Confluent / AWS Glue)

  • Register schemas before any producer sends data
  • Consumers rely on registry for deserialization — not hardcoded schemas
  • Use BACKWARD compatibility by default (new schema can read old data)
  • Breaking changes require major version bump + consumer migration plan

Streaming Patterns

Kafka Topic Design

# Naming: {environment}.{domain}.{entity}.{version}
production.commerce.orders.v2
staging.commerce.orders.v2

# Partition strategy:
# - Partition by entity key (customer_id, order_id) for ordered processing
# - More partitions = more parallelism, but more overhead
# - Rule: start with max expected consumers, add headroom

Flink Windowing

java
// Tumbling windows — non-overlapping, fixed size
DataStream<OrderMetrics> windowed = orders
    .keyBy(order -> order.getRegion())
    .window(TumblingEventTimeWindows.of(Time.minutes(5)))
    .aggregate(new OrderAggregator());

// Always: set watermarks for event time processing
DataStream<Order> withWatermarks = orders
    .assignTimestampsAndWatermarks(
        WatermarkStrategy.<Order>forBoundedOutOfOrderness(Duration.ofSeconds(30))
            .withTimestampAssigner((event, ts) -> event.getTimestamp())
    );

Late Data Handling

python
# Define what "late" means upfront — don't discover it in production
WATERMARK_DELAY_SECONDS = 30  # Accept data up to 30s late
ALLOWED_LATENESS_SECONDS = 300  # Process up to 5min late (side output)

# Late data should go to: side output → correction pipeline → restatement

Data Quality Framework

Validation Layers

  1. Schema validation — column names, types, nullability (fail fast at landing)
  2. Semantic validation — value ranges, formats, referential integrity
  3. Statistical validation — volume, distribution, anomalies vs baseline

Great Expectations Pattern

python
# Define expectations as code — version-controlled quality contract
context = gx.get_context()
suite = context.add_expectation_suite("orders.bronze")

suite.add_expectation(
    gx.expectations.ExpectColumnValuesToNotBeNull(column="order_id")
)
suite.add_expectation(
    gx.expectations.ExpectColumnValuesToBeBetween(column="amount", min_value=0, max_value=1_000_000)
)
suite.add_expectation(
    gx.expectations.ExpectTableRowCountToBeBetween(min_value=1_000, max_value=10_000_000)
)

# Run as a checkpoint in your pipeline — block if quality fails
checkpoint.run(batch_request=batch, run_name=f"orders_{date}")

Orchestration Best Practices

Dagster (Preferred for new projects)

python
@asset(
    partitions_def=DailyPartitionsDefinition(start_date="2024-01-01"),
    metadata={"owner": "data-platform"},
)
def orders_bronze(context: AssetExecutionContext) -> None:
    partition_date = context.partition_key
    df = extract_orders(partition_date)
    validate_schema(df)
    df.write_parquet(f"s3://data-lake/bronze/orders/date={partition_date}/")
    context.add_output_metadata({"row_count": len(df)})

@asset(deps=[orders_bronze])
def orders_silver(context: AssetExecutionContext) -> None:
    # Automatic lineage from asset dependency graph
    ...

Airflow (Existing deployments)

  • Use TaskFlow API (Airflow 2.x) — cleaner than classic operators
  • catchup=False unless backfill is needed
  • max_active_runs=1 for sequential pipelines
  • Use pools for shared resource limits (DB connections, API rate limits)
  • XCom for metadata only (IDs, counts) — not DataFrames

Common Anti-Patterns

Anti-patternFix
Non-idempotent pipelinesUse overwrite + partition strategy
Hardcoded credentialsSecrets manager (AWS Secrets Manager, HashiCorp Vault)
No backfill capabilityParameterize all date logic; never hardcode
Monolithic DAGsSplit by domain and source
Silent failuresAlert on every failure; define severity levels
Full refreshes when incremental is possibleImplement watermark / incremental load
No data quality checksQuality gates in pipeline, not as afterthought
Tight coupling between extract and transformStage to intermediate storage first
CSV files for large dataParquet or Iceberg always
Schema changes without consumer notificationData contracts + schema registry

Technology-Specific Notes

Spark

  • Avoid collect() on large datasets (driver memory)
  • Use broadcast joins for tables < 100MB
  • Partition by high-cardinality filter columns, not low-cardinality
  • Cache (persist()) only if reused more than twice in the same job
  • Tune shuffle partitions: spark.sql.shuffle.partitions defaults to 200 — too high for small data, too low for large

Kafka

  • Monitor consumer lag as primary health metric
  • Consumer group naming: {service}-{purpose} (e.g., analytics-etl)
  • Dead letter queue for every consumer — unprocessable messages must not block progress
  • Retention: event sourcing topics = infinite; operational topics = 7 days

Snowflake (Data Engineering)

  • Use COPY INTO for bulk loads — not INSERT SELECT for large volumes
  • Snowpipe for continuous micro-batch ingestion
  • Dynamic tables for incremental transformations without Airflow/dbt
  • Monitor credits by warehouse; alert on unexpected spend

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Tool.Data Engineering.55c8f35d7b3cac72 AI 技能有什么作用?

Data engineering practice patterns for data pipelines, ETL/ELT, orchestration, data quality, and infrastructure. Covers Airflow, Dagster, Prefect, Spark, dbt, data lakes, lakehouses, Iceberg, Delta Lake, warehouses (Snowflake, BigQuery, Databricks), streaming (Kafka, Kinesis, Flink), CDC, data contracts, data governance, data mesh, and batch processing. Use when reviewing or building data pipelines, ingestion systems, stream processing, data infrastructure, or data platform architecture. Do not use for SQL modeling or dbt projects (use analytics-engineering), business dashboards (use analyt...

为什么在 TypingMind 中使用 Tool.Data Engineering.55c8f35d7b3cac72?

因为您只需安装一次,就能搭配任何模型使用。Tool.Data Engineering.55c8f35d7b3cac72 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Tool.Data Engineering.55c8f35d7b3cac72?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/AI45Lab/OpenART/tree/main/openart-tools/tool.data_engineering.55c8f35d7b3cac72。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Tool.Data Engineering.55c8f35d7b3cac72?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Tool.Data Engineering.55c8f35d7b3cac72 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Tool.Data Engineering.55c8f35d7b3cac72 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Tool.Data Engineering.55c8f35d7b3cac72 AI 技能免费吗?

是的。AI45Lab 已在 GitHub 上根据 AGPL-3.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇