Flux Monitor

VérifiéPrudence

Diffusez en direct les événements d'essaim avec l'outil Monitor pour une observabilité en temps réel.

Spar Skills Guide Bot
DevOpsDébutant
1023/07/2026
Claude Code
#swarm#monitoring#real-time#observability#streaming

Recommandé pour

Notre avis

Diffuse en continu les événements de swarm pour une observabilité en temps réel en utilisant l'outil Monitor au lieu d'interroger.

Points forts

  • Flux en temps réel réduit la latence par rapport au sondage.
  • Sortie NDJSON facile à analyser.
  • Chaque événement déclenche une notification.
  • Évite les appels d'état répétés.

Limites

  • Nécessite la disponibilité de l'outil Monitor.
  • Fonctionne uniquement avec les swarms claude-flow.
  • Le streaming peut consommer des ressources en cas de nombreux événements.
Quand l'utiliser

Utilisez quand vous avez besoin d'observer les événements swarm en temps réel.

Quand l'éviter

Utilisez les vérifications d'état ponctuelles si vous n'avez pas besoin d'une surveillance continue.

Analyse de sécurité

Prudence
Score qualité85/100

The skill uses npx to run @claude-flow/cli for streaming swarm events. While the command is read-only, npx executes code from npm, which introduces potential supply-chain risk.

Points d'attention
  • Uses npx to execute a third-party command from npm registry, which could pose supply-chain risks.

Exemples

Real-time swarm event streaming
Stream the live events from my swarm cluster in real time using Monitor.
Set up live monitoring
Set up real-time monitoring for my claude-flow swarm with streaming to watch agent spawns and task completions.

name: monitor-stream description: Stream live swarm events using the Monitor tool for real-time observability argument-hint: "" allowed-tools: Bash(npx *) mcp__claude-flow__swarm_status mcp__claude-flow__swarm_health Monitor

Use the Monitor tool to stream swarm events in real time instead of polling:

Run via Monitor: npx @claude-flow/cli@latest swarm watch --stream

This streams NDJSON events for agent spawns, task completions, memory writes, and health checks. Each stdout line triggers a notification.

For one-shot status, use MCP: mcp__claude-flow__swarm_status or mcp__claude-flow__swarm_health.

Prefer Monitor over polling swarm status in a loop. See ADR-091 for rationale.

Skills similaires