Complete guide to building real-time dashboards with streaming data, WebSocket/SSE, and live updates. Orchestrates dual-stream architecture, React hooks, and data visualization. Use when building trading dashboards, monitoring UIs, or live analytics. Triggers on realtime dashboard, live data, streaming dashboard, trading UI, monitoring.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install realtime-dashboard或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install realtime-dashboard⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/realtime-dashboard/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: realtime-dashboard model: reasoning description: Complete guide to building real-time dashboards with streaming data, WebSocket/SSE, and live updates. Orchestrates dual-stream architecture, React hooks, and data visualization. Use when building trading dashboards, monitoring UIs, or live analytics. Triggers on realtime dashboard, live data, streaming dashboard, trading UI, monitoring. ---
Complete guide to building real-time dashboards with streaming data.
npx clawhub@latest install realtime-dashboard
---
---
┌─────────────────────────────────────────────────────────────┐
│ Data Sources │
│ APIs, Databases, Message Queues │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ Backend Services │
├─────────────────────────────────────────────────────────────┤
│ Kafka (durable) │ Redis Pub/Sub (real-time) │
│ See: dual-stream-architecture │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WebSocket/SSE Gateway │
│ See: websocket-hub-patterns │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ React Application │
├─────────────────────────────────────────────────────────────┤
│ Real-time Hooks │ Data Visualization │
│ See: realtime-react-hooks│ See: financial-data-visualization
├─────────────────────────────────────────────────────────────┤
│ Animated Displays │ Connection Handling │
│ See: animated-financial │ See: resilient-connections │
└─────────────────────────────────────────────────────────────┘
---
Set up dual-stream publishing for durability + real-time.
Read: ai/skills/realtime/dual-stream-architecture
func (p *DualPublisher) Publish(ctx context.Context, event Event) error {
// 1. Kafka: Must succeed (durable)
err := p.kafka.WriteMessages(ctx, kafka.Message{...})
if err != nil {
return err
}
// 2. Redis: Best-effort (real-time)
p.publishToRedis(ctx, event)
return nil
}
Create horizontally-scalable WebSocket connections.
Read: ai/skills/realtime/websocket-hub-patterns
type Hub struct {
connections map[*Connection]bool
subscriptions map[string]map[*Connection]bool
redisClient *redis.Client
}
// Lazy Redis subscriptions
func (h *Hub) subscribeToChannel(conn *Connection, channel string) {
// Only subscribe to Redis on first local subscriber
}
Connect React to real-time data.
Read: ai/skills/realtime/realtime-react-hooks
const { data, isConnected } = useSSE({
url: '/api/events',
onMessage: (data) => updateState(data),
});
// Or with SWR integration
const { data } = useRealtimeData('metrics', fetchMetrics);
Handle connection failures gracefully.
Read: ai/skills/realtime/resilient-connections
const { isConnected, send } = useWebSocket({
url: 'wss://api/ws',
reconnect: true,
maxRetries: 5,
onMessage: handleMessage,
});
Build dark-themed financial charts.
Read: ai/skills/design-systems/financial-data-visualization
<PriceChart
data={priceHistory}
isPositive={change >= 0}
/>
Add smooth number animations.
Read: ai/skills/design-systems/animated-financial-display
<AnimatedNumber value={price} prefix="$" decimals={2} />
<FlashingValue value={value} formatter={formatCurrency} />
---
| Skill | Purpose | |-------|---------| | dual-stream-architecture | Kafka + Redis publishing | | websocket-hub-patterns | Scalable WebSocket server | | realtime-react-hooks | SSE/WebSocket React hooks | | resilient-connections | Retry, circuit breaker | | financial-data-visualization | Chart theming | | animated-financial-display | Number animations |
---
Never wait for all data. Show immediately, improve progressively:
Phase 1: Initial data + hints → Immediate display
Phase 2: Background refinement → Prices update in place
Phase 3: Historical data → Charts populate
Never zero out data when refinement fails. Only update when you have better data.
Always show users their connection state:
<ConnectionStatus isConnected={isConnected} />
---
---
安装 Realtime Dashboard 后,可以对 AI 说这些话来触发它
Help me get started with Realtime Dashboard
Explains what Realtime Dashboard does, walks through the setup, and runs a quick demo based on your current project
Use Realtime Dashboard to complete guide to building real-time dashboards with streaming data...
Invokes Realtime Dashboard with the right parameters and returns the result directly in the conversation
What can I do with Realtime Dashboard in my data & analytics workflow?
Lists the top use cases for Realtime Dashboard, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/realtime-dashboard/ 目录(个人级,所有项目可用),或 .claude/skills/realtime-dashboard/(项目级)。重启 AI 客户端后,用 /realtime-dashboard 主动调用,或让 AI 根据上下文自动发现并使用。
Realtime Dashboard 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Realtime Dashboard 可免费安装使用。请查阅仓库了解许可证信息。
Complete guide to building real-time dashboards with streaming data, WebSocket/SSE, and live updates. Orchestrates dual-stream architecture, React hooks, and data visualization. Use when building trading dashboards, monitoring UIs, or live analytics. Triggers on realtime dashboard, live data, streaming dashboard, trading UI, monitoring.
Automate my data & analytics tasks using Realtime Dashboard
Identifies repetitive steps in your workflow and sets up Realtime Dashboard to handle them automatically
Realtime Dashboard 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。