realtime-patterns

Installation
SKILL.md

Real-Time Patterns — Live Application Mastery


Mandatory Pre-Flight Context Inspection

Before architecting real-time streaming or WebSocket infrastructure, you MUST inspect:

  1. One-Way SSE Selection Rule (Section 49) → Prefer SSE for one-way server-to-client streaming (AI responses, notifications); reserve WebSockets for bidirectional interactive features
  2. WebSocket Exponential Reconnection (Section 183) → Implement exponential backoff with random jitter for client reconnection loops to prevent thundering herd crashes
  3. Optimistic UI Rollback Handler (Section 207) → Capture previous state before optimistic mutations and implement explicit onError rollback logic

Activation Boundaries

  • Activate when: Operating in tasks requiring Real-time application mastery. WebSockets, Server-Sent Events (SSE), CRDTs for conflict-free collaboration, presence systems, optimistic updates, live cursors, multiplayer state sync, reconnection strategies, and real-time database patterns (Supabase Realtime, Firebase). Use when building chat, live collaboration, dashboards, or multiplayer features..
  • DO NOT activate when: The task falls strictly outside realtime-patterns domain or belongs to a different dedicated specialist.

Installs
3
GitHub Stars
7
First Seen
Apr 26, 2026