agentsclimarketplace

Streaming architecture

Skill sairam0424/MindForge/.mindforge/skills/streaming-architecture

MindForge: The Enterprise Agentic Framework for Claude Code & Antigravity. High-performance autonomous execution, wave-parallelism, and multi-tier governance for production-grade AI engineering.From the repository description

Install
npx -y skills add sairam0424/MindForge --skill streaming-architecture

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.7 KB, 704 tokens by cl100k_base, as published. Nobody here has run it

Skill — Streaming Architecture

When this skill activates

Any task involving real-time data streaming, SSE, chunked transfer encoding, stream processing pipelines, backpressure, partitioning, or windowing strategies.

Mandatory actions when this skill is active

Before writing any code

  1. Choose transport (SSE vs WebSocket vs long-polling) using the decision matrix.
  2. Define stream data format (NDJSON, chunked binary, protobuf frames).
  3. Identify backpressure requirements and partition strategy.

During implementation

  • Implement backpressure handling at every pipeline stage.
  • Use chunked transfer encoding for HTTP streaming responses.
  • Apply appropriate windowing strategy for aggregation needs.
  • Partition by key for ordering, round-robin for throughput.

After implementation

  • Load test under sustained high-throughput conditions.
  • Verify consumer groups scale horizontally without message loss.
  • Document partition strategy and windowing semantics.

Transport Decision Matrix

TransportDirectionUse ForLimitation
SSEServer→ClientNotifications, feeds, progress, logsText-only, unidirectional
WebSocketBidirectionalChat, collaboration, gamingProxy complexity, reconnection logic
Long-PollingClient→Server→ClientLegacy envs, infrequent updatesHigh latency, resource overhead
  • SSE: auto-reconnect via Last-Event-ID, works through load balancers.
  • WebSocket: lower per-message overhead after handshake, requires connection management.
  • Long-Polling: universally compatible, highest resource cost at scale.

Streaming Response Patterns

  • Chunked Transfer: Transfer-Encoding: chunked — each chunk is a parseable unit.
  • NDJSON: one JSON object per \n-separated line, parse incrementally.
  • Use NDJSON for LLM token streaming, batch results, log streams.

Stream Processing Windows

  • Tumbling: fixed-size, non-overlapping. Use for per-minute aggregations.
  • Sliding: fixed-size, overlapping by step. Use for moving averages.
  • Session: dynamic size, closes after inactivity gap. Use for user sessions.

Backpressure Strategies

  • Buffer and Batch: bounded buffer, process in batches at threshold or timer.
  • Drop Oldest (lossy): discard stale messages when buffer full. Never for transactions.
  • Signal Producer (reactive): consumer signals demand, producer throttles emission.

Partition Strategies

  • Key-Based: same key → same partition. Guarantees per-key ordering. Risk: hot partitions.
  • Round-Robin: even distribution, max throughput, no ordering guarantees.

Consumer Groups

  • Multiple consumers share partitions (one partition per consumer max).
  • Scale up to partition count (more consumers = idle).
  • Rebalancing on consumer join/leave. Track offsets for resume-from-failure.

Self-check before task completion

  • Is the transport correct for the use case (SSE/WebSocket/long-polling)?
  • Is backpressure handled at every pipeline stage?
  • Are streaming responses chunked with parseable units?
  • Is windowing strategy appropriate for aggregation needs?
  • Are partitions designed for the right ordering vs throughput trade-off?
  • Can consumers scale horizontally without message loss?
  • Is reconnection logic implemented for client-side streams?

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,569. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.