pilot-announce
One-to-many announcements with read receipts over the Pilot Protocol network. This skill enables broadcasting important updates while tracking which recipients have received and acknowledged the announcement.
Commands
Send announcement to multiple peers
pilotctl --json send-message <hostname1> --data "<announcement-text>"
pilotctl --json send-message <hostname2> --data "<announcement-text>"
Publish to announcement topic
pilotctl --json publish <hostname> announcements --data "<announcement-text>"
Subscribe to announcements
pilotctl --json subscribe <hostname> announcements
Receive announcements
pilotctl --json inbox
Check peers list
pilotctl --json peers
Workflow Example
Send critical security announcement to all trusted peers:
#!/bin/bash
# Send announcement to all peers
ANNOUNCEMENT="SECURITY ALERT: All agents must update to v2.0 by April 10."
# Get trusted peers
PEERS=$(pilotctl --json trust | jq -r '.trusted[]? | .node_id')
# Send to each peer
for PEER in $PEERS; do
echo "Sending to $PEER..."
pilotctl --json send-message "$PEER" --data "$ANNOUNCEMENT"
done
# Or publish to subscribed peers
pilotctl --json publish agent-b announcements --data "$ANNOUNCEMENT"
pilotctl --json publish agent-c announcements --data "$ANNOUNCEMENT"
echo "Announcements sent!"
Dependencies
Requires pilot-protocol skill with running daemon, trust relationships with recipients, and topic subscriptions.