Pilot event replay
80+ agent skills for Pilot Protocol — communication, file transfer, trust, task routing, swarm coordination, and more
npx -y skills add TeoSlayer/pilot-skills --skill pilot-event-replayAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Record and replay event streams for debugging, testing, and audit purposes. Use this skill when: 1. You need to capture event streams for later analysis 2. You need to replay events to test downstream consumers 3. You need to debug event-driven workflows 4. You need to audit event history with timestamps Do NOT use this skill when: - You need real-time event forwarding (use pilot-event-bus instead) - You need long-term storage with rotation (use pilot-event-log instead) - You need filtering before recording (use pilot-event-filter first)
The file declares its own license as AGPL-3.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.3 KB, 388 tokens by cl100k_base, as published. Nobody here has run it
Pilot Event Replay
Record event streams to NDJSON files and replay them for debugging and testing.
Commands
Record events to file
pilotctl --json subscribe <source-hostname> <topic> --timeout <seconds> | \
jq -c '.data.events[]' >> <recording-file.ndjson>
Replay events from file
cat <recording-file.ndjson> | jq -c '.' | while IFS= read -r event; do
topic=$(echo "$event" | jq -r '.topic')
data=$(echo "$event" | jq -r '.data')
pilotctl --json publish <target-hostname> "$topic" --data "$data"
sleep <delay-seconds>
done
Workflow Example
Record debug session:
#!/bin/bash
SOURCE="buggy-worker"
DURATION=300
RECORDING="/tmp/debug-session-$(date +%Y%m%d-%H%M%S).ndjson"
pilotctl --json subscribe "$SOURCE" "*" --timeout "$DURATION" | \
jq -c '.data.events[]' >> "$RECORDING"
event_count=$(wc -l < "$RECORDING")
echo "Recorded $event_count events"
Replay to test agent:
#!/bin/bash
RECORDING="$1"
TEST_TARGET="test-agent"
jq -c '.' "$RECORDING" | while IFS= read -r event; do
topic=$(echo "$event" | jq -r '.topic')
data=$(echo "$event" | jq -r '.data')
pilotctl --json publish "$TEST_TARGET" "$topic" --data "$data"
sleep 0.5
done
Dependencies
Requires pilot-protocol skill, jq, and a running daemon.