PA network health dashboard. Use when: checking if all PAs in the network are active, checking billing status, verifying calendar connections, or generating a network status report. Reads from data/pa-directory.json.
针对 data/pa-directory.json 中的每个PA,检查以下内容:
| 检查项 | 字段 | 健康状态 |
|---|---|---|
| 最后活跃时间 | lastseen | 24小时内 |
| 计费状态 |
python
#!/usr/bin/env python3
import json
import datetime
today = datetime.date.today().isoformat()
online = []
issues = []
offline = []
for pa in d.get(pas, []):
name = pa[name]
owner = pa[owner]
status = pa.get(status, unknown)
model = pa.get(model, unknown)
# 格式化日历和计费指示器
calendar = ✅ if pa.get(calendar_connected) else ❌
billingok = not pa.get(billingerror, False)
billing = ✅ if billing_ok else ⚠️ 计费错误
# 将每个PA分类为在线/问题/离线
if status == active and billing_ok:
online.append(f• {name} ({owner}) — {model}, 日历 {calendar})
elif status == inactive:
offline.append(f• {name} ({owner}))
else:
issues.append(f• {name} ({owner}) — {billing})
if issues:
print(\n⚠️ 存在问题)
for line in issues:
print(line)
if offline:
print(\n❌ 离线)
for line in offline:
print(line)
if not issues and not offline:
print(\n所有PA均运行正常 🎉)
在 pa-directory.json 中为每个PA条目添加以下字段:
json
{
name: Aria,
phone: +1XXXXXXXXXX,
owner: 所有者姓名,
owner_email: owner@company.com,
status: active,
model: your-llm-model,
last_seen: 2026-04-01T10:00:00Z,
calendar_connected: true,
billing_error: false,
billingerrorsince: null
}
将 your-llm-model 替换为实际的模型ID(例如 claude-haiku-20240307、gpt-4o-mini、gemini-1.5-flash)。
用于实时检查(在上述脚本之后):
针对问题列表中的每个PA:
发送:ping 🏓
等待最多5分钟
如果收到回复:标记为在线
如果没有回复:标记为无响应 → 检查 whatsapp-diagnostics 和 billing-monitor 技能
规则: 仅对标记的PA进行Ping。不要Ping健康的PA——这会产生噪音。
| 频率 | 操作 |
|---|---|
| 每日09:00 | 向管理员发送完整网络报告 |
| 计费错误时 |
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 pa-status-1775885708 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 pa-status-1775885708 技能
skillhub install pa-status-1775885708
文件大小: 2.73 KB | 发布时间: 2026-4-12 10:54