dual-channel-watchexec

Solid

Dual-channel notifications on watchexec events. TRIGGERS - watchexec alerts, Telegram+Pushover, file change notifications.

AI & Automation 62 stars 9 forks Updated today MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Dual-Channel Watchexec Notifications Send reliable notifications to both Telegram and Pushover when watchexec detects file changes or process crashes. > **Self-Evolving Skill**: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues. ## When to Use This Skill Use this skill when: - Setting up file change monitoring with notifications - Implementing process crash alerting via Telegram and Pushover - Creating watchexec wrappers with dual-channel notification support - Formatting messages for both HTML (Telegram) and plain text (Pushover) - Troubleshooting notification delivery or formatting issues ## Core Pattern **watchexec wrapper script** → **detect event** → **notify-script** → **Telegram + Pushover** ```bash # wrapper.sh - Monitors process and detects restart reasons watchexec --restart -- python bot.py # On event, call: notify-script.sh <reason> <exit_code> <watchexec_info_file> <crash_context> ``` --- ## Critical Rule: Format Differences **Telegram**: HTML mode ONLY ```bash MESSAGE="<b>Alert</b>: <code>file.py</code>" # Escape 3 chars: & → &amp;, < → &lt;, > → &gt; ``` **Pushover**: Plain text ONLY ```bash /usr/bin/env bash << 'SKILL_SCRIPT_EOF' # Strip HTML tags before sending MESSAGE_PLAIN=$(echo "$MESSAGE_HTML" | sed 's/<[^>]*>//g') SKILL_SCRIPT_EOF ``` **Why HTML for Telegram**: - Markdown requires escaping 40+ cha...

Details

Author
terrylica
Repository
terrylica/cc-skills
Created
8 months ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category