ソース情報
- リポジトリ
- mikailustuner/OmniRule
- ソースの最終更新活動
- 2026年5月8日 23:36
- 検出された SKILL.md の言語
- 英語
- スター
- 5
- フォーク
- 1
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/mikailustuner/OmniRule --skill real-time-patternsコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
Bun runtime: HTTP server, file I/O, SQLite, test runner, package manager, bundler — all-in-one JS toolchain.
Clerk: Drop-in auth UI, Organizations, User management, JWT templates, webhooks, Next.js middleware integration.
Gelişmiş masaüstü, tarayıcı ve işletim sistemi kontrol yeteneği. Görsel (koordinat tabanlı) fare/klavye otomasyonu, DOM manipülasyonu, pencere yönetimi, gelişmiş dosya, ağ ve süreç yönetimini kapsar.
SOC 職業分類に基づく
SKILL.md を表示中
| name | real-time-patterns |
| description | Real-time: WebSockets, SSE, polling, rooms, presence, reconnection |
| triggers | {"keywords":["real-time","WebSocket","SSE","Socket.io","live","streaming","presence","room","broadcast"]} |
| auto_load_when | Implementing real-time features |
| agent | infra-specialist |
| tools | ["Read","Write","Bash"] |
Focus: Choosing real-time strategy, implementation patterns, scaling
Use WebSockets when:
├── Bidirectional communication needed
├── Low-latency updates (chat, games)
├── High frequency messages
└── State synchronization
Use SSE when:
├── Server-to-client only
├── Simple one-way updates
├── Works with HTTP/2
└── Firewall-friendly
Use Polling when:
├── Infrequent updates
├── Simple implementation
├── No server state needed
└── Budget constraints
Connection lifecycle:
├── Handshake: HTTP upgrade
├── Connected: persistent
├── Ping/Pong: keep-alive
└── Close: graceful or error
Message patterns:
├── Text: JSON payloads
├── Binary: protocol buffers
└── Control frames: ping, pong, close
Scaling:
├── Sticky sessions or Redis pub/sub
├── Message brokers (Redis, Kafka)
└── Horizontal scaling
Room structure:
├── userId + roomId: private chat
├── roomId only: group channel
└── projectId: collaborative doc
Implementation:
├── Map roomId to subscriber set
├── Pub/sub to room channels
└── Add/remove on join/leave
State management:
├── In-memory: fast, single instance
├── Redis: distributed, persistent
└── Database: slow, last resort
Presence tracking:
├── Online/offline status
├── Last seen timestamp
├── Currently viewing (optional)
Implementation:
├── Heartbeat: every 30-60s
├── Expire: 2-3x heartbeat
└── Broadcast on join/leave
Use cases:
├── Show "user is typing"
├── Online indicators
└── Active user list
Reconnection strategy:
├── Exponential backoff: 1s, 2s, 4s, 8s, 32s max
├── Max retries: 5-10 then give up
└── User notification after max
State recovery:
├── Replay missed messages (with cursor)
├── Full state refetch
└── Optimistic UI, reconcile
Edge cases:
├── Network switch (wifi/cellular)
├── Sleep/wake
└── Tab backgrounding
Delivery guarantees:
├── At-most-once: fire and forget
├── At-least-once: ack + retry
└── Exactly-once: complex, rarely needed
Implementation:
├── Sequence numbers
├── Client ack
└── Server retry until ack
Offline queue:
├── Queue locally while disconnected
├── Sync on reconnect
└── Handle conflicts
❌ Polling every second from client
✅ Server-Sent Events for server→client; WebSocket for bidirectional
❌ Broadcasting every event to every connected client
✅ Room/channel-based routing — clients subscribe to relevant streams
❌ No backpressure handling on fast publishers
✅ Implement flow control; drop/buffer when consumer is slow
❌ Storing real-time state only in memory (lost on restart)
✅ Persist to Redis / DB; reconnecting clients can catch up
❌ WebSocket without heartbeat/ping-pong
✅ Send heartbeat every 30s; disconnect silent clients
| Pattern | Transport | Use case |
|---|---|---|
| Chat / collaboration | WebSocket | Bidirectional |
| Notifications | SSE | Server→client only |
| Live dashboards | SSE | Server→client only |
| Game state | WebSocket | Low latency |
| Presence | WebSocket + Redis | User online/offline |
| Event stream | Kafka / Redis Streams | Durable replay |