Websocket design
Design WebSocket and realtime channels with auth, backpressure, and reconnect semantics. Use whenever the user builds realtime features, sockets, presence, live updates, or streaming over persistent connections.From its SKILL.md
npx -y skills add shinzoxD/knackbox --skill websocket-designAssembled 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.
What its file declares
Copied from the file, not written here
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.6 KB, 268 tokens by cl100k_base, as published. Nobody here has run it
WebSocket Design
Realtime needs auth on connect, heartbeats, reconnect/resume, and backpressure. Do not treat sockets as free unlimited fan-out.
Workflow
- Use cases: notifications, collab, trading, presence.
- Auth: ticket/token on connect; revalidate on resume.
- Protocol: message types, versioning, compression.
- Scaling: sticky sessions, pub/sub fan-out, room design.
- Reliability: heartbeats, backoff reconnect, offline buffer.
- Backpressure and max message size.
- Observability: connects, drops, lag.
Output format
## Realtime design
**Channels:** …
**Auth:** …
**Message schema:** …
**Reconnect/resume:** …
**Scale plan:** …
**Limits:** …
Rules
- Authenticate before subscribing to private rooms.
- Validate every client message; never trust client as authority for money.
- Document idle timeouts and ping/pong.
- Prefer idempotent event ids for delivery.
- Separate public broadcast from private streams.
Edge cases
- Mobile networks: aggressive reconnect.
- Horizontal scale: avoid single-node presence without store.
- Browser limits: connection count per origin.
What ships with it: 1 file
1.1 KB alongside SKILL.md
benchmarks/
- prompts.json1.1 KB