跳到正文
cccskills
免费在 GitHub 公开

notification-engine

'Use for alerting: desktop, sound, log, webhook, daemon.'

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Notification Engine — Multi-Channel Alerting

Use this skill when you need to send alerts, configure the notification engine, start/stop the daemon, or check alert history.

Files

  • Script: scripts/notification-engine.py im OpenAmer-Repo
  • Config: ~/.notification-engine/config.json
  • Incoming: ~/.notification-engine/incoming/ (JSON-Alarm-Dateien)
  • Log: ~/.notification-engine/logs/engine.log
  • History: ~/.notification-engine/history/history.json

CLI Usage

# Sofort eine Benachrichtigung senden
python scripts/notification-engine.py --send "Backup abgeschlossen"
python scripts/notification-engine.py --send "Kritischer Fehler" --priority critical --channel sound
python scripts/notification-engine.py --send "Warnung" --priority warning --channel desktop --channel logfile

# Daemon starten (überwacht incoming/ alle 30s)
python scripts/notification-engine.py --daemon

# Daemon mit eigenem Intervall
python scripts/notification-engine.py --daemon --interval 10

# History anzeigen
python scripts/notification-engine.py --history

# Status anzeigen
python scripts/notification-engine.py --status

# Incoming-Datei anlegen (für andere Skripte)
python scripts/notification-engine.py --send-incoming "Nachricht"

# Alle wartenden Incoming-Dateien verarbeiten
python scripts/notification-engine.py --process-incoming

# Cooldown ignorieren
python scripts/notification-engine.py --send "Dringend!" --force

Priority-Level

LevelDesktopSoundLogfileWebhook
info✓—✓—
warning✓—✓✓
critical✓✓✓✓

(Sound nur bei critical, es sei denn die Config wird angepasst)

Channels

  • desktop: Windows Toast-Notification via PowerShell Burst
  • sound: PowerShell Console.Beep (Frequenz abhängig von Priority)
  • logfile: Text-Log in ~/.notification-engine/logs/engine.log
  • webhook: HTTP-POST (Generic JSON) — muss in Config aktiviert werden

Config (~/.notification-engine/config.json)

{
  "channels": {
    "desktop": { "enabled": true, "min_priority": "info" },
    "sound":   { "enabled": true, "min_priority": "critical" },
    "logfile": { "enabled": true, "min_priority": "info" },
    "webhook": { "enabled": false, "min_priority": "warning", "url": null }
  },
  "cooldown_minutes": 60,
  "history_max": 50,
  "webhook_default_url": null
}

Cooldown

Identische Nachrichten werden nicht öfter als alle cooldown_minutes (Default 60) gesendet. Mit --force kann der Cooldown umgangen werden.

Incoming-Datei-Format (für andere Skripte)

Andere Skripte legen einfach eine JSON-Datei in ~/.notification-engine/incoming/ ab:

{
  "message": "Deine Nachricht",
  "priority": "critical",
  "channels": ["desktop", "sound"],
  "force": false
}

Der Daemon oder --process-incoming verarbeitet sie dann automatisch.

Cron-Job

Der Notification-Daemon läuft als Cron-Job (notification-engine-daemon) alle 1 Minute. Er startet den Daemon, falls er nicht läuft, oder lässt ihn laufen.

Integration in andere Skripte

# Direkt in einem anderen Skript:
import subprocess
subprocess.run(["python", "scripts/notification-engine.py",
    "--send", "Backup fehlgeschlagen!", "--priority", "critical"])

Oder:

# Incoming-Datei anlegen:
from pathlib import Path
import json
(Path.home() / ".notification-engine/incoming/alert.json").write_text(
    json.dumps({"message": "Test", "priority": "info"}), encoding="utf-8")

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Build integrated IS/BS/CF financial workbooks in Excel.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

a2a-swarm

免费

Run and grow the OpenAmer Agent-to-Agent swarm: identity, trust, node-to-node ask, signed skill/insight sharing, and the autonomous self-learning loop.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

Use for A/B experiments on OpenAmer configs and skills.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

Roleplay a hostile user to find and triage UX pain points.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

Agent mesh: master/worker nodes, HTTP delegation, heartbeat.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

Use for agentic commerce payments tasks. Candidate synthesized from trend radar; awaiting trial promotion.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

查看 openamer 的全部技能

报告此技能的问题