Skillquality 0.45
pilot-stream-data
Real-time NDJSON data streaming over persistent Pilot Protocol connections. Use this skill when: 1. You need to stream structured data in real-time between agents 2. You want to send continuous sensor readings, logs, or metrics 3. You need bidirectional streaming communication w
What it does
pilot-stream-data
Real-time structured data streaming using NDJSON format over Pilot Protocol's persistent connections with backpressure handling.
Commands
Start stream server:
pilotctl --json listen 1002 > /tmp/pilot-stream.log &
Stream NDJSON data:
DEST="1:0001.AAAA.BBBB"
while true; do
MSG="{\"timestamp\":$(date +%s),\"temp\":$(echo "scale=2; 20 + $RANDOM % 10" | bc),\"humidity\":50}"
pilotctl --json send "$DEST" 1002 --data "$MSG"
sleep 1
done
Receive and process stream:
pilotctl --json listen 1002 | while read -r line; do
TIMESTAMP=$(echo "$line" | jq -r '.timestamp')
VALUE=$(echo "$line" | jq -r '.value')
echo "[$TIMESTAMP] Value: $VALUE"
done
Subscribe to stream topic:
pilotctl --json subscribe "$DEST" data-stream | while read -r line; do
echo "Data: $(echo $line | jq -r '.value')"
done
Workflow Example
#!/bin/bash
# Real-time sensor data streaming
STREAM_PORT=1002
DEST="1:0001.AAAA.BBBB"
# Producer: stream sensor data
produce_stream() {
echo "Starting stream producer"
# Send metadata header
pilotctl --json send "$DEST" "$STREAM_PORT" \
--data "{\"type\":\"stream_start\",\"schema\":\"temp_humidity_v1\"}"
# Stream data
counter=0
while true; do
timestamp=$(date +%s)
temp=$(echo "scale=2; 20 + ($counter % 10)" | bc)
humidity=$(echo "scale=2; 50 + ($counter % 20)" | bc)
pilotctl --json send "$DEST" "$STREAM_PORT" \
--data "{\"type\":\"data\",\"timestamp\":$timestamp,\"temp\":$temp,\"humidity\":$humidity,\"seq\":$counter}"
counter=$((counter + 1))
sleep 1
done
}
# Consumer: receive and process
consume_stream() {
pilotctl --json listen "$STREAM_PORT" | while read -r line; do
type=$(echo "$line" | jq -r '.type')
if [ "$type" = "data" ]; then
temp=$(echo "$line" | jq -r '.temp')
echo "Temperature: ${temp}°C"
fi
done
}
produce_stream
Dependencies
Requires pilot-protocol skill, running daemon, jq, bc, and optional gzip for compression.
Capabilities
skillsource-teoslayerskill-pilot-stream-datatopic-agent-skillstopic-ai-agentstopic-clawhubtopic-networkingtopic-openclawtopic-overlay-networktopic-p2ptopic-pilot-protocol
Install
Installnpx skills add TeoSlayer/pilot-skills
Transportskills-sh
Protocolskill
Quality
0.45/ 1.00
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 6 github stars · SKILL.md body (2,068 chars)
Provenance
Indexed fromgithub
Enriched2026-05-18 19:15:04Z · deterministic:skill-github:v1 · v1
First seen2026-05-18
Last seen2026-05-18