AgentSkillsCN

convex-realtime

使用Convex反应式查询实现实时功能,当数据变化时自动更新,实现实时协作、即时更新及无需手动轮询的反应式UI。在构建实时仪表板、实现协作编辑、创建聊天应用、显示实时通知、构建活动流、实现在线状态指示器、创建反应式搜索,或任何需要跨客户端即时数据同步的功能时使用。

SKILL.md
--- frontmatter
name: convex-realtime
description: Implement real-time features using Convex reactive queries that automatically update when data changes, enabling live collaboration, instant updates, and reactive UIs without manual polling. Use when building live dashboards, implementing collaborative editing, creating chat applications, showing real-time notifications, building activity feeds, implementing presence indicators, creating reactive search, or any feature requiring instant data synchronization across clients.

Convex Realtime - Live Data Subscriptions

When to use this skill

  • Building live dashboards that update instantly
  • Implementing collaborative editing features
  • Creating real-time chat applications
  • Showing instant notifications to users
  • Building activity feeds that update live
  • Implementing user presence indicators
  • Creating reactive search with live results
  • Building multiplayer or collaborative features
  • Showing real-time analytics and metrics
  • Implementing live document collaboration
  • Creating real-time forms with validation
  • Building features requiring instant synchronization

When to use this skill

  • Building realtime features, live updates, collaborative apps.
  • When working on related tasks or features
  • During development that requires this expertise

Use when: Building realtime features, live updates, collaborative apps.

Auto-Updating Queries

```typescript const messages = useQuery(api.messages.list, { channelId }); // Automatically updates when data changes! ```

Resources