Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

muting-alert-channels

БесплатноБез исполняемых скриптовНе проверен

Use when muting an alert bot or notification lane.

jiayaoqijiaот jiayaoqijia★ 81 звезда на GitHub

Об этом скилле

Muting an outbound alert channel — silently, and provably

Turning a notification bot off looks trivial and is not: the usual lane design prints the payload when the send fails, so a mute implemented as "skip the send" ends up flooding the user's main chat. This skill is the procedure plus the three checks that make "it's off" a verifiable claim.

When to use

User says any of: "non aktifin ", "matiin bot alert", "stop kirim dulu", "pause notif", "jangan posting", "jangan kirim ke X lagi". Applies to cron-driven alert lanes, standalone Telegram bots (alert bot, news bot, engine bot), webhook senders, digest mailers.

Scope check first. If the thing named is not a delivery channel — a stop-loss value, a score threshold, a gate flag — this is the wrong door. Locate the file that actually owns that value before touching anything, and if no such value exists in the system, say that instead of inventing a place to put it.

Step 1 — Pin the channel and audit its senders

  1. Resolve the user's shorthand to a real bot. Shorthand like "memebot" maps to a bot username through its credentials file, not by guessing: python3 -c "import json;print(json.load(open('$HOME/.hermes/data/perf_bot.json'))['bot'])" → @memescallsbot. Never print the token.
  2. Audit every sender of THAT channel before claiming it is off: grep -rln "deliver(\|tg_push(" ~/.hermes/scripts/*.py — the senders are usually fewer than it feels (one shared helper plus a couple of on-demand scripts).
  3. Scope your greps. A bare grep -rI over $HOME will read multi-MB catalog/index files; one unscoped search dumped 42 MB of matches. Always constrain with --include, -l and explicit directories.
  4. Touch only the named channel. Muting the bot the user named must not touch the news bot, the engine bot, or anything else sharing the same scripts — and the report should say which channels were deliberately left running.
  5. Choose mute-the-sink vs pause-the-producter, and say which. Muting delivery while the scanner/tracker keeps running preserves the measured record (ledger, checkpoints, heartbeats) so nothing is lost when it is switched back on. Pausing the cron jobs is a separate, blunter action that stops data accrual — offer it explicitly when the user's intent could be "stop everything", and default to the reversible one.

Step 2 — One choke point, two switches

  • Put the check inside the single function every sender already calls (e.g. the shared deliver()), never at N call sites. Then coverage is provable with one grep.
  • Support both an env var (one-off runs) and a flag file under ~/.hermes/data/ (~/.hermes/data/<channel>_off). The file flag survives restarts and needs no env plumbing through the many cron entries that may invoke the script directly.
  • Keep an audit trail: the channel's push log records a distinct status for the suppressed send (e.g. MATI) instead of silently writing nothing.

Step 3 — The rule that matters most: a muted channel must be SILENT

Most lanes here are silence-on-success: on send failure the payload is printed to stdout, and deliver: origin turns that print into a message in the origin chat — a safety net so an alert is never lost. That design makes the naive mute actively harmful:

Skip-the-send alone prints the payload → cron delivers it → the chat the user asked to quiet gets flooded. Muting the bot is not the same as moving its output to the DM.

So the mute path must drop the payload and leave stdout empty, and record the suppression in the log.

  • An existing ALERT_PUSH=off-style switch is usually a PRINT-MODE switch (run locally, print instead of send), not a mute. Never reach for it to silence a channel — verify what a switch does to stdout before using it.
  • Manual/on-demand commands are the exception: if the user explicitly asks for that report while the channel is muted, print it locally rather than dropping it. What was muted is the unattended push, not the user's ability to ask.

Step 4 — Prove it (all three, then report)

  1. End-to-end, exactly as cron runs it: run the producer and assert stdout = 0 bytes and a | MATI | line in the push log. Quote the last pre-mute line (KIRIM … <message_id>) next to it as contrast — the message_id is Telegram's own receipt.
  2. Catch fallbacks: walk the Step 1 audit list and confirm each sender hits the same choke point (also run at least one other lane, not just the one you happened to test).
  3. Producers still healthy: heartbeat/.last mtimes advancing, ledger rows still growing.

Then report: what is off, what is deliberately still running, the one-line reversal, and the tradeoff (quota/CPU still spent if producers keep running).

Rerouting a lane to another bot (the other answer besides mute)

"Lempar ke aja, laporannya per daily, jangan spam" is THREE knobs, not on

Полный SKILL.md на GitHub

Установить muting-alert-channels в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSESOURCE.mdTRUST.auto.yamlreferences/false-alarm-triage.mdreferences/insider-track-position-only.mdreferences/lowcap-memebot-killswitch.md

FAQ

Что делает скилл muting-alert-channels?

Use when muting an alert bot or notification lane.

Как установить скилл muting-alert-channels?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл muting-alert-channels запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить muting-alert-channels с