Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ancoleman/implementing-realtime-sync
Real-time communication patterns for live updates, collaboration, and presence.
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
1 fixed20 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
Write a Python FastAPI endpoint at `/chat/stream` that accepts a `prompt` string parameter and asynchronously streams response chunks to the frontend. Ensure the implementation uses standard HTTP streaming with built-in browser reconnection rather than upgrading to WebSockets.
| Checked | Without skill | With skill |
|---|---|---|
| Uses sse-starlette EventSourceResponse to handle the SSE streaming response. | Missed | Passed |
| Yields SSE event payloads containing event name and content data fields. | Missed | Passed |
The instructions your model reads when the skill loads.
Implement real-time communication for live updates, collaboration, and presence awareness across applications.
Use this skill when building:
Choose the transport protocol based on communication pattern:
ONE-WAY (Server → Client only)
├─ LLM streaming, notifications, live feeds
└─ Use SSE (Server-Sent Events)
├─ Automatic reconnection (browser-native)
├─ Event IDs for resumption
└─ Simple HTTP implementation
BIDIRECTIONAL (Client ↔ Server)
├─ Chat, games, collaborative editing
└─ Use WebSocket
├─ Manual reconnection required
├─ Binary + text support
└─ Lower latency for two-way
COLLABORATIVE EDITING
├─ Multi-user documents/spreadsheets
└─ Use WebSocket + CRDT (Yjs or Automerge)
├─ CRDT handles conflict resolution
test cases passed, vs 20 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.