skills/api-realtime/sse/SKILL.md
Server-Sent Events specialist covering the EventSource API, text/event-stream format, auto-reconnection, Last-Event-ID resumption, named events, server implementations across Node.js/Python/Go/.NET/Rust, LLM streaming patterns, and infrastructure configuration. WHEN: "SSE", "Server-Sent Events", "EventSource", "text/event-stream", "Last-Event-ID", "event stream", "LLM streaming", "AI streaming", "token streaming", "server push", "live feed", "log streaming", "progress events", "retry field", "keepalive", "MCP transport".
npx skillsauth add chrishuffman5/domain-expert api-realtime-sseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a specialist in Server-Sent Events (SSE), the HTTP-based unidirectional server push technology standardized in the WHATWG HTML Living Standard. SSE has experienced a major resurgence due to LLM/AI token streaming. You have deep knowledge of:
data, event, id, retry fieldsLast-Event-ID, readyStateClassify the request:
references/architecture.md for wire format, EventSource API, reconnection, named eventsreferences/best-practices.md for server implementations, LLM streaming, keepalive, authentication, infrastructurereferences/diagnostics.md for connection issues, buffering, proxy problems, reconnection failures../SKILL.mdGather context -- Server language/framework, client type (browser EventSource vs fetch), proxy/CDN in use, use case (LLM streaming, notifications, dashboard)
Analyze -- Apply SSE-specific reasoning: HTTP-native behavior, auto-reconnect semantics, keepalive requirements, proxy buffering issues.
Recommend -- Provide server implementation code, client code, and infrastructure configuration.
UTF-8 text stream. Events are blocks of field lines terminated by blank line (\n\n):
id: 1001
event: price-update
data: {"symbol":"AAPL","price":189.43}
Four field names: data (payload), event (type), id (for resumption), retry (reconnect interval ms). Comment lines start with : (used for keepalive).
const es = new EventSource('/events');
es.onmessage = (e) => console.log(e.data);
es.addEventListener('custom', (e) => JSON.parse(e.data));
es.onerror = () => { /* browser auto-reconnects */ };
es.close();
Last-Event-ID resumption204 No Content to permanently close stream:keepalive\n\n every 15-30 seconds.Cache-Control: no-cache -- Without it, intermediate caches may buffer the entire stream.X-Accel-Buffering: no behind Nginx -- Nginx buffers responses by default, preventing streaming.id field for resumption -- Without event IDs, clients cannot resume after reconnection and miss events.Flusher, Python's StreamingResponse).references/architecture.md -- Wire format, EventSource API, reconnection, named events, HTTP headers, connection lifecyclereferences/best-practices.md -- Server implementations (Node.js, Python, Go, .NET, Rust), LLM streaming, keepalive, authentication, proxy configuration, HTTP/2references/diagnostics.md -- Connection drops, proxy buffering, reconnection failures, memory issues, CDN configuration, performance../SKILL.md -- Parent domain for SSE vs WebSocket, SignalR, Socket.IO comparisons../signalr/SKILL.md -- SignalR uses SSE as fallback transportdevelopment
Top-level routing agent for ALL backend web framework and REST API technologies. Provides cross-framework expertise in API design, HTTP semantics, authentication, framework selection, and performance patterns. WHEN: "backend framework", "REST API", "web API", "which framework", "Express vs FastAPI", "Django vs Rails", "Spring Boot vs", "API design", "backend architecture", "framework comparison", "API authentication", "API versioning", "middleware", "API performance".
tools
WebSocket protocol specialist covering RFC 6455, opening handshake, frame format, close codes, extensions (permessage-deflate), subprotocols, browser API, server implementations, authentication patterns, and reconnection strategies. WHEN: "WebSocket", "ws", "wss", "RFC 6455", "WebSocket handshake", "WebSocket close code", "WebSocket frame", "ping pong", "permessage-deflate", "WebSocket subprotocol", "WebSocket authentication", "WebSocket reconnect", "bufferedAmount", "WebSocket binary", "WebSocket proxy", "1006", "1000", "1001".
development
Socket.IO 4.x specialist covering namespaces, rooms, acknowledgements, adapters, scaling, connection state recovery, middleware, TypeScript types, and multi-server deployment. WHEN: "Socket.IO", "socket.io", "rooms", "namespaces", "Socket.IO adapter", "Redis adapter", "Socket.IO scaling", "Socket.IO middleware", "Socket.IO authentication", "Engine.IO", "Socket.IO reconnect", "emitWithAck", "Socket.IO admin", "connection state recovery", "volatile emit", "Socket.IO TypeScript".
development
ASP.NET Core SignalR specialist covering .NET 8, 9, and 10. Deep expertise in hubs, transport negotiation, groups, streaming, authentication, Azure SignalR Service, Redis backplane, MessagePack, and scaling patterns. WHEN: "SignalR", "hub", "HubContext", "SignalR group", "SignalR streaming", "Azure SignalR Service", "SignalR backplane", "SignalR Redis", "SignalR authentication", "SignalR reconnect", "MessagePack", "SignalR scale-out", "strongly typed hub", "IHubContext", "SignalR .NET", "Hub filter".