legout/data-agent-skills/building-streaming-pipelines
Claude Code and agent skill by legout/data-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Build real-time data pipelines with Apache Kafka, MQTT (IoT), and NATS JetStream. Covers producers, consumers, streaming patterns, and integration with data platforms. Use when designing or implementing streaming data ingestion, event-driven architectures, or real-time processing workflows in Python.
Install
npx vskill@latest install legout/data-agent-skills/building-streaming-pipelinesSKILL.md
The same SKILL.md was published earlier as legout/data-agent-skills/building-streaming-pipelines.
Building Streaming Pipelines
Build robust, real-time data pipelines in Python. This skill covers the complete streaming lifecycle: producing events, consuming streams, processing in real-time, and operating with production standards for reliability and scalability.
When to use this skill
Use this skill when:
- Building real-time event streaming pipelines
- Implementing producers and consumers for Kafka, MQTT, or NATS
- Designing IoT data ingestion with constrained devices
- Setting up event-driven microservices communication
- Implementing Change Data Capture (CDC) pipelines
- Handling high-throughput log aggregation
- Designing stream processing with exactly-once semantics
- Implementing backpressure and flow control
When not to use this skill
Use other skills for:
- Batch data processing →
building-data-pipelines - Cloud storage authentication and access →
accessing-cloud-storage - Lakehouse table formats (Delta/Iceberg) →
designing-data-storage - Workflow orchestration (Prefect/Dagster) →
orchestrating-data-pipelines - Data quality frameworks →
assuring-data-pipelines - AI/ML pipelines (embeddings/vectors) →
engineering-ai-pipelines
Quick tool selection
| Use Case | Default choice | When to consider alternatives | |
|---|---|---|---|
| High-throughput event streaming | Apache Kafka | Use NATS for simpler ops, MQTT for IoT | |
| IoT devices, constrained networks | MQTT | Use Kafka for aggregation layer, NATS for internal routing | |
| Cloud-native microservices | NATS JetStream | Use Kafka for replayable event logs, MQTT for edge devices | |
| Log aggregation, CDC | Apache Kafka | NATS for lower throughput, simpler requirements | |
| Real-time analytics | Kafka + ksqlDB | NATS for simpler stream processing | |
| Request-reply patterns | NATS (core) | Use gRPC for binary efficiency |
Decision rule: Use Kafka for high-volume, replayable event logs. Use MQTT for IoT and mobile with constrained connectivity. Use NATS for cloud-native, microservices, and simpler operational requirements.
Core workflow
1. Design the stream
Answer these questions before writing code:
- Message volume: Events per second? Peak vs average?
- Durability requirements: Can you lose messages? Need replay?
- Ordering guarantees: Per-key ordering required? Global ordering?
- Delivery semantics: At-least-once, at-most-once, or exactly-once?
- Consumer patterns: Single consumer, consumer groups, or fan-out?
- Schema evolution: Will message formats change over time?
2. Implement producer and consumer
Producer pattern (Kafka example):
Consumer pattern (with manual commit for reliability):
For detailed patterns with Schema Registry, error handling, and production configuration, see references/kafka.md.
3. Validate and operate
- Consumer lag monitoring: Track lag per partition
- Dead letter queues: Handle poison messages
- Schema validation: Validate messages before processing
- Idempotency: Handle duplicate delivery gracefully
Production standards
Delivery semantics
| Semantic | When to use | Implementation | |
|---|---|---|---|
| At-most-once | Loss is acceptable, highest throughput | Auto-commit before processing | |
| At-least-once | No data loss, duplicates OK | Manual commit after processing | |
| Exactly-once | No duplicates, financial/critical | Idempotent consumers + transactional writes |
Idempotency pattern
Stream processors may receive duplicates. Always design idempotent consumers:
Error handling strategy
- Retryable errors (timeouts, transient): Requeue with backoff
- Non-retryable errors (schema mismatch, bad data): Send to dead letter queue
- Always acknowledge after handling to prevent infinite retry loops
For complete error handling patterns, see platform-specific references.
Progressive disclosure
Start here based on your need:
- Kafka patterns →
references/kafka.md- Producers, consumers, Schema Registry, ksqlDB - MQTT for IoT →
references/mqtt.md- QoS levels, retained messages, last will - NATS JetStream →
references/nats.md- Streams, push/pull consumers, work queues
Related skills
accessing-cloud-storage— Cloud storage authentication and remote file accessdesigning-data-storage— Lakehouse formats (Delta Lake, Iceberg), file formats, storage designorchestrating-data-pipelines— Prefect, Dagster, dbt for workflow schedulingassuring-data-pipelines— Data quality testing and observabilitybuilding-data-pipelines— Batch data processing with Polars, DuckDB, PyArrowengineering-ai-pipelines— Embeddings, vector databases, RAG patterns
Migration notes
This skill replaces and consolidates:
data-engineering-streaming— Real-time data pipelines with Kafka, MQTT, NATS
Content has been reorganized into workflow-focused SKILL.md with detailed reference files for each streaming platform.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/building-streaming-pipelines/SKILL.md
Popularity
- 7-day trend score
- 0
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
[](https://verified-skill.com/skills/legout/data-agent-skills/building-streaming-pipelines)