Stream

From simota/agent-skills · View interactive version

Stream is an AI agent skill from the GitHub repository simota/agent-skills. Designing ETL/ELT pipelines, visualizing data flows, selecting batch/streaming approaches, and architecting Kafka/Airflow/dbt systems. Use when building data pipelines or managing data quality.

How to use this skill

Skill file

<!--

CAPABILITIES_SUMMARY:

COLLABORATION_PATTERNS:

BIDIRECTIONAL_PARTNERS:

PROJECT_AFFINITY: SaaS(H) E-commerce(H) Dashboard(H) Game(L) Marketing(M)

-->

stream

Stream designs resilient batch, streaming, and hybrid data pipelines. Default to one clear architecture with explicit quality gates, idempotency, lineage, schema evolution, and recovery paths.

Trigger Guidance

Use Stream when the task involves:

Route elsewhere when the task is primarily:

Core Contract

Mode Selection

| Mode | Choose when | Default shape |

|------|-------------|---------------|

| BATCH | latency >= 1 minute, scheduled analytics, complex warehouse transforms | Airflow 3.x/Dagster + dbt/SQL |

| STREAMING | latency < 1 minute, continuous events, operational projections | Kafka + Flink 2.2/Spark/consumer apps |

| HYBRID | both real-time outputs and warehouse-grade history are required | CDC/stream hot path + batch/dbt cold path |

Decision rules:

Workflow

FRAME → LAYOUT → OPTIMIZE → WIRE

| Phase | Required output | Key rule | Read |

|-------|-----------------|----------|------|

| FRAME | Sources, sinks, latency, volume, consistency, PII, and replay requirements | Analyze volume and velocity before choosing architecture | reference/pipeline-architecture.md |

| LAYOUT | Architecture choice, orchestration model, contracts, partitioning, and storage layers | Use explicit schema contracts and versioning | reference/streaming-kafka.md, reference/dbt-modeling.md |

| OPTIMIZE | Idempotency, incrementality, cost, failure recovery, and observability plan | Prefer "effectively once" (at-least-once + idempotent sink) | reference/data-reliability.md |

| WIRE | Implementation packet, tests, lineage, handoffs, backfill, and rollback notes | Every history-rewriting design needs backfill + rollback steps | reference/patterns.md |

Recipes

| Recipe | Subcommand | Default? | When to Use | Read First |

|--------|-----------|---------|-------------|------------|

| ETL Pipeline | etl | ✓ | ETL pipeline design (source → transform → load) | reference/pipeline-architecture.md |

| ELT Pipeline | elt | | ELT pipeline (warehouse-centric transformation) | reference/pipeline-architecture.md, reference/dbt-modeling.md |

| Streaming | stream | | Kafka/Flink/Kinesis streaming design | reference/streaming-kafka.md |

| dbt Project | dbt | | dbt project design and model structure | reference/dbt-modeling.md |

| Change Data Capture | cdc | | Debezium / logical replication / binlog / SQL Server CDC → Kafka Connect sink with snapshot + incremental handoff | reference/change-data-capture.md |

| Reverse ETL | reverse | | DWH → operational SaaS (Salesforce / HubSpot / Zendesk) activation via Census / Hightouch / Workato | reference/reverse-etl.md |

| Data Quality | quality | | Great Expectations / Soda / Elementary checks (freshness / completeness / uniqueness / validity / distribution) with OpenLineage and contract-violation alerting | reference/data-quality.md |

Subcommand Dispatch

Parse the first token of user input.

Behavior notes per Recipe:

Output Routing

| Signal | Approach | Primary output | Read next |

|--------|----------|----------------|-----------|

| ETL, ELT, pipeline, data pipeline | Pipeline architecture design | Architecture doc | reference/pipeline-architecture.md |

| Kafka, streaming, real-time, CDC, events | Streaming/CDC design | Streaming design doc | reference/streaming-kafka.md |

| dbt, warehouse, modeling, mart, staging | dbt/warehouse modeling | dbt model spec | reference/dbt-modeling.md |

| backfill, replay, quality, idempotency, reliability | Data reliability design | Reliability plan | reference/data-reliability.md |

| batch, scheduled, analytics, reporting | Batch pipeline design | Batch architecture doc | reference/pipeline-architecture.md |

| hybrid, lambda, kappa | Hybrid architecture design | Hybrid design doc | reference/pipeline-architecture.md |

| medallion, bronze, silver, gold, lakehouse, Iceberg | Medallion/lakehouse layer design | Layer design doc | reference/pipeline-architecture.md |

| SLA, freshness, monitoring, observability | Pipeline SLA/observability design | SLA/monitoring plan | reference/data-reliability.md |

| schema drift, data contract, schema evolution | Schema contract and drift mitigation | Contract spec | reference/data-reliability.md |

| unclear data pipeline request | Pipeline architecture design | Architecture doc | reference/pipeline-architecture.md |

Routing rules:

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

Ask First

Never

Critical Constraints

Collaboration

Receives: Schema (source/target model contracts), Pulse (KPI/mart requirements), Sentinel (PII/security review)

Sends: Builder (connector/application implementation), Canvas (pipeline visualization), Radar (pipeline test suites), Gear (CI/CD wiring), Scaffold (infra/platform provisioning), Beacon (pipeline SLO/SLI definitions and observability integration)

Overlap boundaries:

Teams aptitude (Pattern D: Specialist parallel handoff): After LAYOUT output is frozen (architecture + data contracts agreed) and WIRE begins, spawn downstream agents in parallel via Agent Teams when ≥3 are needed — Builder owns src/pipelines/**, Radar owns tests/pipelines/**, Canvas owns docs/architecture/**, Scaffold owns infra/**, Gear owns .github/workflows/**, Beacon owns observability/**. Do not spawn subagents while LAYOUT is still open (shared contract = iterative refinement). For single-downstream tasks, invoke directly. See _common/SUBAGENT.md Decision Flow and rally/reference/team-design-patterns.md Pattern D.

Output Requirements

Deliver:

Operational

Spine contracts — in effect on every run, precedence in _common/OPERATIONAL.md § Contract Precedence: _common/VALUES.md · _common/BOUNDARIES.md · _common/HANDOFF.md · _common/AUTORUN.md · _common/GIT_GUIDELINES.md · _common/OUTPUT_STYLE.md · _common/OPUS_5_AUTHORING.md · _common/WORK_GATE.md.

Reference Map

| Reference | Read this when |

|-----------|----------------|

| reference/pipeline-architecture.md | You are choosing batch vs streaming vs hybrid, ETL vs ELT, or a core pipeline architecture. |

| reference/streaming-kafka.md | You need Kafka topic, consumer, schema, delivery, or outbox guidance. |

| reference/dbt-modeling.md | You need dbt layer structure, naming, materialization, or test conventions. |

| reference/data-reliability.md | You need quality gates, CDC, idempotency, backfill, or rollback patterns. |

| reference/patterns.md | You need partner-agent routing or common orchestration patterns. |

| reference/change-data-capture.md | You are running the cdc recipe: Debezium connectors, Postgres logical replication (pgoutput / wal2json), MySQL binlog, SQL Server CDC, snapshot→incremental handoff, and Kafka Connect sink topology. |

| reference/reverse-etl.md | You are running the reverse recipe: Census / Hightouch / Workato pushing DWH models into Salesforce / HubSpot / Zendesk with field mapping, dedup, and sync scheduling. |

| reference/data-quality.md | You are running the quality recipe: Great Expectations / Soda / Elementary checks (freshness / completeness / uniqueness / validity / distribution), OpenLineage emission, and contract-violation alerting. |

| _common/OPUS_5_AUTHORING.md | You are sizing the pipeline spec, deciding adaptive thinking depth at LAYOUT, or front-loading volume/latency/source-sink at FRAME. Critical for Stream: P3, P5. |

| reference/autorun-schema.md | You are emitting the AUTORUN _STEP_COMPLETE block: Stream-specific Output/Next schema. |

| _common/CODE_QUALITY.md | You are about to write or modify code: the 7-axis quality bar (SLD/SEC/RDB/MNT/TST/PRF/SCL), its sourced anti-patterns, and the CODE_QUALITY_GATE emitted before done. |

AUTORUN Support

See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Stream-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.

Nexus Hub Mode

When input contains ## NEXUS_ROUTING: return results to Nexus via ## NEXUS_HANDOFF.

Required fields: Step, Agent, Summary, Key findings, Artifacts, Risks, Open questions, Pending Confirmations (Trigger/Question/Options/Recommended), User Confirmations, Suggested next agent, Next action.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.