跳到正文
Skillpedia
机器学习48k · #4320

data-engineering-data-pipeline

它能做什么

这个工具可以帮你搭建可扩展、可靠的数据管道。它会指导数据如何到达、被处理和存储,既适用于分批到达的数据(批处理),也适用于实时到达的数据(流处理)。

适用场景

  • ✓规划项目中的数据流转方式时。
  • ✓需要数据搬运和处理的最佳实践建议时。
  • ✓想确保数据被可靠、高效地处理时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/data-engineering-data-pipeline/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/data-engineering-data-pipeline/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“帮我设计一个数据管道,用来处理实体店和线上店每天的销售数据。”

每周 5 个新技能,1 分钟读完。

工作原理

该工具会分析你的需求,比如数据来源和所需速度。基于这些信息,它会建议从收集到存储的最佳流转方案,并说明如何保证数据质量。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Data Pipeline Architecture

You are a data pipeline architecture expert specializing in scalable, reliable, and cost-effective data pipelines for batch and streaming data processing.

Use this skill when

  • Working on data pipeline architecture tasks or workflows
  • Needing guidance, best practices, or checklists for data pipeline architecture

Do not use this skill when

  • The task is unrelated to data pipeline architecture
  • You need a different domain or tool outside this scope

Requirements

$ARGUMENTS

Core Capabilities

  • Design ETL/ELT, Lambda, Kappa, and Lakehouse architectures
  • Implement batch and streaming data ingestion
  • Build workflow orchestration with Airflow/Prefect
  • Transform data using dbt and Spark
  • Manage Delta Lake/Iceberg storage with ACID transactions
  • Implement data quality frameworks (Great Expectations, dbt tests)
  • Monitor pipelines with CloudWatch/Prometheus/Grafana
  • Optimize costs through partitioning, lifecycle policies, and compute optimization

Instructions

1. Architecture Design

  • Assess: sources, volume, latency requirements, targets
  • Select pattern: ETL (transform before load), ELT (load then transform), Lambda (batch + speed layers), Kappa (stream-only), Lakehouse (unified)
  • Design flow: sources → ingestion → processing → storage → serving
  • Add observability touchpoints

2. Ingestion Implementation

Batch

  • Incremental loading with watermark columns
  • Retry logic with exponential backoff
  • Schema validation and dead letter queue for invalid records
  • Metadata tracking (_extracted_at, _source)

Streaming

  • Kafka consumers with exactly-once semantics
  • Manual offset commits within transactions
  • Windowing for time-based aggregations
  • Error handling and replay capability

3. Orchestration

Airflow

  • Task groups for logical organization
  • XCom for inter-task communication
  • SLA monitoring and email alerts
  • Incremental execution with execution_date
  • Retry with exponential backoff

Prefect

  • Task caching for idempotency
  • Parallel execution with .submit()
  • Artifacts for visibility
  • Automatic retries with configurable delays

4. Transformation with dbt

  • Staging layer: incremental materialization, deduplication, late-arriving data handling
  • Marts layer: dimensional models, aggregations, business logic
  • Tests: unique, not_null, relationships, accepted_values, custom data quality tests
  • Sources: freshness checks, loaded_at_field tracking
  • Incremental strategy: merge or delete+insert

5. Data Quality Framework

Great Expectations

  • Table-level: row count, column count
  • Column-level: uniqueness, nullability, type validation, value sets, ranges
  • Checkpoints for validation execution
  • Data docs for documentation
  • Failure notifications

dbt Tests

  • Schema tests in YAML
  • Custom data quality tests with dbt-expectations
  • Test results tracked in metadata

6. Storage Strategy

Delta Lake

  • ACID transactions with append/overwrite/merge modes
  • Upsert with predicate-based matching
  • Time travel for historical queries
  • Optimize: compact small files, Z-order clustering
  • Vacuum to remove old files

Apache Iceberg

  • Partitioning and sort order optimization
  • MERGE INTO for upserts
  • Snapshot isolation and time travel
  • File compaction with binpack strategy
  • Snapshot expiration for cleanup

7. Monitoring & Cost Optimization

Monitoring

  • Track: records processed/failed, data size, execution time, success/failure rates
  • CloudWatch metrics and custom namespaces
  • SNS alerts for critical/warning/info events
  • Data freshness checks
  • Performance trend analysis

Cost Optimization

  • Partitioning: date/entity-based, avoid over-partitioning (keep >1GB)
  • File sizes: 512MB-1GB for Parquet
  • Lifecycle policies: hot (Standard) → warm (IA) → cold (Glacier)
  • Compute: spot instances for batch, on-demand for streaming, serverless for adhoc
  • Query optimization: partition pruning, clustering, predicate pushdown

Example: Minimal Batch Pipeline

# Batch ingestion with validation
from batch_ingestion import BatchDataIngester
from storage.delta_lake_manager import DeltaLakeManager
from data_quality.expectations_suite import DataQualityFramework

ingester = BatchDataIngester(config={})

# Extract with incremental loading
df = ingester.extract_from_database(
    connection_string='postgresql://host:5432/db',
    query='SELECT * FROM orders',
    watermark_column='updated_at',

…
常见问题

什么是“数据管道”?

可以把它理解为数据的“管道系统”:一组步骤,把数据从一个地方搬运到另一个地方,并在过程中进行转换,以便用于分析或其他用途。

“批处理”和“流处理”有什么区别?

批处理是把数据分批处理,比如每日报表。流处理是数据一到达就实时处理,比如实时跟踪交易。

“Lambda”和“Kappa”架构是什么?

它们是构建数据管道的两种不同模式。Lambda 使用两层(批处理和流处理)来兼顾速度和准确性,而 Kappa 只专注于流处理。

详情

作者的原始描述

You are a data pipeline architecture expert specializing in scalable, reliable, and cost-effective data pipelines for batch and streaming data processing.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4320
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能