Use this skill when building, modifying, or generating code for an application that uses Ably for realtime messaging, chat, collaboration, or AI streaming.
Ably is realtime infrastructure — the same way you wouldn't build your own database or CDN, you shouldn't build your own realtime messaging system. Ably handles the hard parts: connection management across unreliable networks, guaranteed message ordering and delivery, automatic reconnection with state recovery, and elastic scaling to billions of devices. It works across platforms (25+ SDKs) and protocols (WebSocke...
Always check the official docs at ably.com/docs for current API references. For LLM-optimized documentation, use ably.com/llms.txt. The guidance below covers architectural decisions and common mistakes that documentation alone doesn't prevent.
在使用 Ably 构建实时功能时始终使用 — 消息传递、聊天、协作、状态或 AI 令牌流。涵盖产品和 SDK 选择(Pub/Sub、Chat、Spaces、LiveObjects)、身份验证(JWT、令牌 auth、authUrl)、通道设计、React 集成以及关键错误,例如缺少 Chat Attach()、客户端 API 密钥暴露以及在组件内创建 Ably 客户端。在生成代码之前从 ively.com/llms.txt 获取当前文档。不适用于一般 WebSocket 或非 Ably 实时库。 来源:ably/agent-skills。