Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add medy-gribkov/arcana --skill websocket-realtimegit clone --depth 1 https://github.com/medy-gribkov/arcanaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/medy-gribkov/arcana/websocket-realtime)<a href="https://agentmods.dev/skills/medy-gribkov/arcana/websocket-realtime"><img src="https://agentmods.dev/badge/skills/medy-gribkov/arcana/websocket-realtime/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/medy-gribkov/arcana/websocket-realtime"><img src="https://agentmods.dev/badge/skills/medy-gribkov/arcana/websocket-realtime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00036 | $0.01652 |
| Opus 5 | $0.00018 | $0.00826 |
| Sonnet 5 | $0.00007 | $0.00330 |
| Haiku 4.5 | $0.00004 | $0.00165 |
Grade A, and why
websocket-realtime scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 304 lines — stays where its author put it; the contents beside it link to each section on GitHub.
WebSocket and Real-Time Communication
Build production-ready WebSocket servers with reconnection, heartbeat, authentication, and horizontal scaling.
WebSocket Server (Node.js ws)
BAD: No connection lifecycle management.
import WebSocket, { WebSocketServer } from 'ws';
const wss = new WebSocketServer({ port: 8080 });
wss.on('connection', (ws) => {
ws.on('message', (data) => {
// Broadcast to everyone
wss.clients.forEach((client) => {
client.send(data);
});
});
});
GOOD: Connection tracking, error handling, graceful shutdown.
import WebSocket, { WebSocketServer } from 'ws';
import http from 'http';
interface Client {
ws: WebSocket;
userId: string;
rooms: Set<string>;
isAlive: boolean;
}
const server = http.createServer();
const wss = new WebSocketServer({ server });
const clients = new Map<WebSocket, Client>();
wss.on('connection', (ws, req) => {
const client: Client = {
ws,
userId: '', // Set after auth
rooms: new Set(),
isAlive: true,
};
clients.set(ws, client);
ws.on('pong', () => {
client.isAlive = true;
});
ws.on('message', (data) => {
try {
const msg = JSON.parse(data.toString());
handleMessage(client, msg);
} catch (err) {
ws.send(JSON.stringify({ error: 'Invalid message format' }));
}
});
ws.on('error', (err) => {
console.error('WebSocket error:', err);
});
ws.on('close', () => {
clients.delete(ws);
});
ws.send(JSON.stringify({ type: 'connected' }));
});
// Heartbeat interval
const heartbeat = setInterval(() => {
wss.clients.forEach((ws) => {
const client = clients.get(ws);
if (!client) return;
if (!client.isAlive) {
client.rooms.clear();
clients.delete(ws);
return ws.terminate();
}
client.isAlive = false;
ws.ping();
});
}, 30000);
// Graceful shutdown
process.on('SIGTERM', () => {
clearInterval(heartbeat);
wss.clients.forEach((ws) => {
ws.close(1000, 'Server shutting down');
});
server.close(() => {
process.exit(0);
});
});
server.listen(8080);
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 304 lines · 36 tokens per session scan A 62201384e969
websocket-realtime is a skill published in the GitHub repository medy-gribkov/arcana (1 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 36 tokens to every session and 1,652 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
github-integration
Integrate with GitHub — Actions, Apps, webhooks, Octokit, and repository automation workflows.
perf-optimizer
Profile and optimize application performance — algorithmic complexity, caching strategies, database queries, and bundle size.
slack-bot-builder
Build Slack bots and apps — Bolt framework, slash commands, modals, Block Kit UI, and event subscriptions.
stripe-integration
Integrate Stripe payments — Checkout, Payment Intents, subscriptions, webhooks, and billing portal.
teams-integration
Build Microsoft Teams apps — bots, message extensions, tabs, adaptive cards, and Graph API integration.
api-designer
Design RESTful and RPC APIs — OpenAPI specs, request/response schemas, error codes, versioning, and documentation.