Skip to main content

pilot-event-filter

Filter and transform events before delivery using pattern matching and jq transforms. Use this skill when: 1. You need to filter events by content, not just topic wildcards 2. You need to transform event payloads before processing 3. You need to route events conditionally based on content 4. You need to reduce event noise by selective forwarding Do NOT use this skill when: - Topic wildcards alone are sufficient (use pilot-event-bus instead) - You need all events without filtering (subscribe directly) - You need persistent storage (use pilot-event-log instead)

来源信息

仓库
TeoSlayer/pilot-skills
最近来源活动
2026年4月20日 17:42
检测到的 SKILL.md 语言
英语
星标
8
分支
2

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
pilot-event-filter
description
Filter and transform events before delivery using pattern matching and jq transforms. Use this skill when: 1. You need to filter events by content, not just topic wildcards 2. You need to transform event payloads before processing 3. You need to route events conditionally based on content 4. You need to reduce event noise by selective forwarding Do NOT use this skill when: - Topic wildcards alone are sufficient (use pilot-event-bus instead) - You need all events without filtering (subscribe directly) - You need persistent storage (use pilot-event-log instead)
tags
["pilot-protocol","pub-sub","filtering","transformation"]
license
AGPL-3.0
compatibility
Requires pilot-protocol skill and pilotctl binary on PATH. The daemon must be running (pilotctl daemon start). Requires jq for JSON filtering and transformation.
metadata
{"author":"vulture-labs","version":"1.0","openclaw":{"requires":{"bins":"[Truncated]"},"homepage":"https://pilotprotocol.network"}}
allowed-tools
["Bash"]
# Pilot Event Filter Filter and transform Pilot Protocol event streams using jq-based pattern matching. ## Commands ### Subscribe with filtering ```bash pilotctl --json subscribe <source-hostname> <topic> --timeout 60 | \ jq -c '.data.events[] | select(<filter-expression>)' ``` ### Transform and republish ```bash pilotctl --json subscribe <source> <topic> --timeout 60 | \ jq -c '.data.events[] | <transform-expression>' | \ while IFS= read -r event; do pilotctl --json publish <destination> "<new-topic>" --data "$event" done ``` ## Workflow Example Filter critical alerts and forward to on-call agent: ```bash #!/bin/bash SOURCE_AGENT="monitoring-hub" ONCALL_AGENT="oncall-agent" pilotctl --json subscribe "$SOURCE_AGENT" "alerts.*" --timeout 600 | \ jq -c '.data.events[]' | \ while IFS= read -r event; do severity=$(echo "$event" | jq -r '.data | fromjson | .severity // "unknown"') if [ "$severity" = "critical" ]; then pilotctl --json publish "$ONCALL_AGENT" "oncall.critical" --data "$event" fi done ``` ## Dependencies Requires pilot-protocol skill, jq, and a running daemon.
在 GitHub 查看