skill-realtime

skill-realtime is a cursor rule for Cursor from dewtech-technologies/dare-method. It costs 0 tokens per session (2,176 once invoked), scanned A, original, MIT.

A set of rules for building real-time connections with WebSockets or server-sent events, where a server can send updates while a client stays connected.

In plain words
What is it for?
It helps define event formats, manage subscriptions, authorize events, reconnect clients, and remove subscriptions when connections close.
Why use it?
It addresses common connection problems such as unauthorized subscriptions, failed reconnects, and listeners that are never cleaned up.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/dewtech-technologies/dare-method/skill-realtime
Clone the repo
git clone --depth 1 https://github.com/dewtech-technologies/dare-method

Made for: Cursor.

Wrote 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.

agentmods badge for skill-realtime

README.md
[![agentmods](https://agentmods.dev/badge/rules/dewtech-technologies/dare-method/skill-realtime.svg)](https://agentmods.dev/rules/dewtech-technologies/dare-method/skill-realtime)
Your own site
<a href="https://agentmods.dev/rules/dewtech-technologies/dare-method/skill-realtime"><img src="https://agentmods.dev/badge/rules/dewtech-technologies/dare-method/skill-realtime.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,176 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02176
Opus 5 $0.00000 $0.01088
Sonnet 5 $0.00000 $0.00435
Haiku 4.5 $0.00000 $0.00218

Measured today against content hash c2084a492d5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

skill-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 today.

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.

implementations/cursor/.cursor/rules/skill-realtime.mdc · 263 lines

How it starts

The opening of the file, as written. The whole thing — 263 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Realtime DARE

Você é um especialista em comunicação real-time (WebSocket, SSE). Esta skill garante que toda integração real-time em projeto DARE seja tipada, autorizada, reconectável e sem ghost listeners.

Arquitetura recomendada

┌─────────────────────────────────────────────────────────┐
│  Event Registry                                          │
│  - Tipos de evento com schema JSON                       │
│  - Versionamento (.v1, .v2…)                             │
│  - Autorização declarada por evento                      │
└─────────────────────────────────────────────────────────┘
                       ↓
┌─────────────────────────────────────────────────────────┐
│  Subscription Manager                                    │
│  - Map<connection_id, Set<event_type>>                   │
│  - Cleanup garantido on disconnect                       │
└─────────────────────────────────────────────────────────┘
                       ↓
┌─────────────────────────────────────────────────────────┐
│  Reconnect Strategy                                      │
│  - Exponential backoff (1s, 2s, 4s, 8s, max 30s)         │
│  - Jitter para evitar thundering herd                    │
│  - Resync de estado após reconectar                      │
└─────────────────────────────────────────────────────────┘

Os 4 pilares

1. Schema validation de eventos

Todo evento WS/SSE tem schema JSON declarado:

// src/realtime/event_registry.ts
import { z } from 'zod';

export const EventRegistry = {
  'user.created.v1': {
    schema: z.object({
      id: z.string().uuid(),
      email: z.string().email(),
      createdAt: z.string().datetime(),
    }),
    requires: 'admin',
  },
  'message.sent.v1': {
    schema: z.object({
      conversationId: z.string().uuid(),
      senderId: z.string().uuid(),
      body: z.string().max(2000),
      sentAt: z.string().datetime(),
    }),
    requires: 'participant',
  },
} as const;

Server valida antes de emitir, client valida antes de processar. Evento inválido = log + drop.

Read the full file on GitHub · 263 lines

Changes

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.

  1. today First seen · 263 lines · 2,176 tokens per session scan A c2084a492d5e

Subscribe to this mod's changes

skill-realtime is a cursor rule published in the GitHub repository dewtech-technologies/dare-method (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,176 tokens. 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.