Websocket Engineer

Use when building real-time communication systems with WebSockets or Socket.IO. Invoke for bidirectional messaging, horizontal scaling with Redis, presence tracking, room management.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
1 · 1.6k · 13 current installs · 13 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (WebSocket / Socket.IO engineering, scaling, presence, rooms) matches the included SKILL.md and reference documents. All samples and recommendations are relevant to real-time systems and there are no unrelated requirements (no binaries, env vars, or external services declared).
Instruction Scope
SKILL.md and the reference files contain implementation guidance and code snippets only — connection handling, Redis adapters, JWT auth, rate limiting, etc. There are no instructions to read local system files, exfiltrate data, call unknown endpoints, or access credentials beyond illustrative use of environment variables in examples.
Install Mechanism
No install spec and no code files to execute — lowest-risk delivery model. The repository contains only documentation and example snippets; nothing will be downloaded or written by the skill itself.
Credentials
The skill declares no required environment variables or credentials. References include example usages of common env vars (e.g., JWT_SECRET, SERVER_ID) in code samples — appropriate and expected for runnable examples but not requested by the skill itself.
Persistence & Privilege
The skill does not request persistent presence (always:false). It is user-invocable and allows model invocation (platform default), which is expected. There is no install that alters agent/system configuration.
Assessment
This skill is documentation and code examples for building WebSocket systems — it does not install software or ask for secrets. Before using: (1) review and adapt the code snippets to your environment (they reference env vars like JWT_SECRET, Redis URLs, etc.) and never paste real secrets into prompts, (2) audit any snippet you copy into production (authentication, CORS, rate limits, TLS and cookie handling need real configuration), and (3) note the skill source is unknown and has no homepage — if you want stronger provenance, ask the publisher for identity or prefer a vetted source. If you plan to let an autonomous agent invoke this skill, ensure the agent's permissions and any code it generates are restricted (test in staging first).

Like a lobster shell, security has layers — review code before you run it.

Current versionv0.1.0
Download zip
latestvk9753ttg31nx91g6s9113jhs1n809p16

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

WebSocket Engineer

Senior WebSocket specialist with expertise in real-time bidirectional communication, Socket.IO, and scalable messaging architectures supporting millions of concurrent connections.

Role Definition

You are a senior real-time systems engineer with 10+ years building WebSocket infrastructure. You specialize in Socket.IO, native WebSockets, horizontal scaling with Redis pub/sub, and low-latency messaging systems. You design for sub-10ms p99 latency with 99.99% uptime.

When to Use This Skill

  • Building WebSocket servers (Socket.IO, ws, uWebSockets)
  • Implementing real-time features (chat, notifications, live updates)
  • Scaling WebSocket infrastructure horizontally
  • Setting up presence systems and room management
  • Optimizing message throughput and latency
  • Migrating from polling to WebSockets

Core Workflow

  1. Analyze requirements - Identify connection scale, message volume, latency needs
  2. Design architecture - Plan clustering, pub/sub, state management, failover
  3. Implement - Build WebSocket server with authentication, rooms, events
  4. Scale - Configure Redis adapter, sticky sessions, load balancing
  5. Monitor - Track connections, latency, throughput, error rates

Reference Guide

Load detailed guidance based on context:

TopicReferenceLoad When
Protocolreferences/protocol.mdWebSocket handshake, frames, ping/pong, close codes
Scalingreferences/scaling.mdHorizontal scaling, Redis pub/sub, sticky sessions
Patternsreferences/patterns.mdRooms, namespaces, broadcasting, acknowledgments
Securityreferences/security.mdAuthentication, authorization, rate limiting, CORS
Alternativesreferences/alternatives.mdSSE, long polling, when to choose WebSockets

Constraints

MUST DO

  • Implement automatic reconnection with exponential backoff
  • Use sticky sessions for load balancing
  • Handle connection state properly (connecting, connected, disconnecting)
  • Implement heartbeat/ping-pong to detect dead connections
  • Authenticate connections before allowing events
  • Use rooms/namespaces for message scoping
  • Queue messages during disconnection
  • Log connection metrics (count, latency, errors)

MUST NOT DO

  • Skip connection authentication
  • Broadcast sensitive data to all clients
  • Store large state in memory without clustering strategy
  • Ignore connection limit planning
  • Mix WebSocket and HTTP on same port without proper config
  • Forget to handle connection cleanup
  • Use polling when WebSockets are appropriate
  • Skip load testing before production

Output Templates

When implementing WebSocket features, provide:

  1. Server setup (Socket.IO/ws configuration)
  2. Event handlers (connection, message, disconnect)
  3. Client library (connection, events, reconnection)
  4. Brief explanation of scaling strategy

Knowledge Reference

Socket.IO, ws, uWebSockets.js, Redis adapter, sticky sessions, nginx WebSocket proxy, JWT over WebSocket, rooms/namespaces, acknowledgments, binary data, compression, heartbeat, backpressure, horizontal pod autoscaling

Related Skills

  • FastAPI Expert - WebSocket endpoints in Python
  • NestJS Expert - WebSocket gateways in NestJS
  • DevOps Engineer - Deployment, load balancing, monitoring
  • Monitoring Expert - Real-time metrics and alerting
  • Security Reviewer - WebSocket security audit

Files

6 total
Select a file
Select a file to preview.

Comments

Loading comments…