Stream Swarm Events with Monitor

VerifiedCaution

Use the Monitor tool to stream live swarm events for real-time observability instead of polling. Provides NDJSON notifications for agent spawns, completions, memory writes, and health checks.

Sby Skills Guide Bot
DevOpsIntermediate
8/29/2026
Claude Code
#observability#real-time#event-streaming#swarm-monitoring#claude-flow

Recommended for

Automated summary

Streams live swarm events through the Monitor tool instead of repeatedly polling swarm state.

Strengths

  • Replaces polling with a pushed NDJSON stream where each stdout line triggers a notification
  • Covers key events: agent spawns, task completions, memory writes, and health checks
  • Provides a fallback one-shot snapshot through the MCP swarm_status and swarm_health tools
  • Cites an architectural decision record (ADR-091) explaining why streaming is preferred

Limitations

  • Requires the Claude Code Monitor tool, the @claude-flow CLI, and the ruflo-core MCP plugin to be configured
  • No event filtering is described, so an active stream can produce a high volume of notifications
  • It invokes @latest, whose behavior may change between runs
When to use it

Use it when you need live visibility into what a swarm of agents is doing rather than looping on status checks.

When not to use it

Avoid it when the Monitor tool or the ruflo-core MCP plugin is unavailable, or when a single status snapshot is enough.

Security analysis

Caution
Quality score72/100

The skill is a thin wrapper that runs a real, plausibly legitimate CLI (`@claude-flow/cli`) under the Monitor tool and calls two MCP observability methods; there is no destructive command, credential exfiltration, obfuscation, or safety-disabling instruction. The main residual concerns are the unpinned `@latest` package fetch (arbitrary code execution at install/run time) and the broad `npx *` grant plus streaming output, so it warrants caution rather than a risky rating.

Findings
  • •Runs an unpinned remote npm package via `npx @claude-flow/cli@latest`, so the executed code can change without review (supply-chain/version-drift risk)
  • •Uses the Monitor tool to stream and trigger notifications on every stdout line, which may surface sensitive log/event data into the agent context
  • •Declares broad `Bash(npx *)` permission rather than a narrow, specific command scope
How this analysis is made

Examples

Live task tracking
Stream the swarm events and tell me as soon as any agent completes a task.
Health watch
Start a live stream of swarm activity and report any failing health checks you see.
Stream plus snapshot
Begin streaming swarm events with Monitor, then also pull a one-shot swarm_status and swarm_health snapshot for comparison.

name: monitor-stream description: Stream live swarm events using the Monitor tool for real-time observability argument-hint: "" allowed-tools: Bash(npx *) mcp__plugin_ruflo-core_ruflo__swarm_status mcp__plugin_ruflo-core_ruflo__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__plugin_ruflo-core_ruflo__swarm_status or mcp__plugin_ruflo-core_ruflo__swarm_health.

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

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/stream-swarm-events-with-monitor-mte1lhiv/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/stream-swarm-events-with-monitor-mte1lhiv' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/stream-swarm-events-with-monitor-mte1lhiv/download' --output '.skill-downloads/stream-swarm-events-with-monitor-mte1lhiv/SKILL.md.part' && mv '.skill-downloads/stream-swarm-events-with-monitor-mte1lhiv/SKILL.md.part' '.skill-downloads/stream-swarm-events-with-monitor-mte1lhiv/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Bash(npx *) mcp__plugin_ruflo-core_ruflo__swarm_status mcp__plugin_ruflo-core_ruflo__swarm_health Monitor

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/stream-swarm-events-with-monitor-mte1lhiv/SKILL.md' && test -s '.skill-downloads/stream-swarm-events-with-monitor-mte1lhiv/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/monitor-stream' && cp -R '.skill-downloads/stream-swarm-events-with-monitor-mte1lhiv' '.claude/skills/monitor-stream'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/stream-swarm-events-with-monitor-mte1lhiv'

openskills read 'stream-swarm-events-with-monitor-mte1lhiv'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/stream-swarm-events-with-monitor-mte1lhiv/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills