.claude/skills/ts-ably/SKILL.md
You are an expert in Ably, the enterprise-grade realtime messaging platform. You help developers add pub/sub messaging, presence, chat, live updates, and event streaming to applications with guaranteed message ordering, exactly-once delivery, automatic reconnection, and global edge infrastructure — handling millions of messages per second with 99.999% uptime SLA.
npx skillsauth add eliferjunior/Claude ablyInstall 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 an expert in Ably, the enterprise-grade realtime messaging platform. You help developers add pub/sub messaging, presence, chat, live updates, and event streaming to applications with guaranteed message ordering, exactly-once delivery, automatic reconnection, and global edge infrastructure — handling millions of messages per second with 99.999% uptime SLA.
import Ably from "ably";
// Realtime client
const ably = new Ably.Realtime({ key: process.env.ABLY_API_KEY });
// Subscribe to channel
const channel = ably.channels.get("orders");
channel.subscribe("new", (message) => {
console.log("New order:", message.data);
// { orderId: "ORD-789", total: 99.99, items: [...] }
});
channel.subscribe("status-update", (message) => {
console.log("Status changed:", message.data);
});
// Publish
await channel.publish("new", {
orderId: "ORD-789",
total: 99.99,
items: [{ name: "Widget", qty: 2 }],
});
// Presence — who's online
const presenceChannel = ably.channels.get("room:lobby");
await presenceChannel.presence.enter({ name: "Alice", avatar: "👩" });
presenceChannel.presence.subscribe("enter", (member) => {
console.log(`${member.data.name} joined`);
});
const members = await presenceChannel.presence.get();
console.log("Online:", members.map(m => m.data.name));
import Ably from "ably";
const ably = new Ably.Rest({ key: process.env.ABLY_API_KEY });
// Publish from server
const channel = ably.channels.get("notifications:user-42");
await channel.publish("alert", {
title: "Payment received",
amount: 150.00,
timestamp: Date.now(),
});
// Batch publish
await ably.request("POST", "/messages", {}, {}, [
{ channel: "notifications:user-1", name: "alert", data: { text: "Hello!" } },
{ channel: "notifications:user-2", name: "alert", data: { text: "Hi!" } },
]);
// Token authentication (for clients)
const tokenRequest = await ably.auth.createTokenRequest({
clientId: "user-42",
capability: {
"chat:*": ["subscribe", "publish", "presence"],
"notifications:user-42": ["subscribe"],
},
});
// Send tokenRequest to client — they auth without exposing API key
import { ChatClient, RoomOptionsDefaults } from "@ably/chat";
const chatClient = new ChatClient(realtimeClient);
const room = chatClient.rooms.get("support-room", RoomOptionsDefaults);
// Send message
await room.messages.send({ text: "How can I help you?" });
// Listen for messages
room.messages.subscribe((event) => {
console.log(`${event.message.clientId}: ${event.message.text}`);
});
// Typing indicators
room.typing.subscribe((event) => {
console.log("Typing:", event.currentlyTyping);
});
await room.typing.start();
// Reactions
await room.reactions.send({ type: "like" });
room.reactions.subscribe((reaction) => {
console.log(`${reaction.clientId} reacted: ${reaction.type}`);
});
npm install ably
npm install @ably/chat # Chat SDK (optional)
createTokenRequest from your serverchat:, notifications:, updates: prefixes; configure rules per namespacedevelopment
Expert guidance for Fireworks AI, the platform for running open-source LLMs (Llama, Mixtral, Qwen, etc.) with enterprise-grade speed and reliability. Helps developers integrate Fireworks' inference API, fine-tune models, and deploy custom model endpoints with function calling and structured output support.
development
Convert any website into clean, structured data with Firecrawl — API-first web scraping service. Use when someone asks to "turn a website into markdown", "scrape website for LLM", "Firecrawl", "extract website content as clean text", "crawl and convert to structured data", or "scrape website for RAG". Covers single-page scraping, full-site crawling, structured extraction, and LLM-ready output.
tools
Expert guidance for Firebase, Google's platform for building and scaling web and mobile applications. Helps developers set up authentication, Firestore/Realtime Database, Cloud Functions, hosting, storage, and analytics using Firebase's SDK and CLI.
development
When the user needs to build file upload functionality for a web application. Use when the user mentions "file upload," "image upload," "upload endpoint," "multipart upload," "presigned URL," "S3 upload," "file validation," "upload to cloud storage," or "accept user files." Handles upload endpoints, file validation (type, size, magic bytes), cloud storage integration, and upload status tracking. For image/video processing after upload, see media-transcoder.