jeremyinthebay/relay-skills/alert-routing
Claude Code and agent skill by jeremyinthebay/relay-skills
- community
Checking that the SKILL.md file is still in the repository.
Stop your automation from paging a human for routine events. Route every alert through one front door so agents triage first and humans are only woken for real emergencies. Use when an autonomous system texts/emails/pages a person too often, when alerts get ignored because they're noisy, when a human is manually relaying alarms back to an agent, or when the same alert policy is duplicated across several scripts.
Install
npx vskill@latest install jeremyinthebay/relay-skills/alert-routingSKILL.md
The same SKILL.md was published earlier as jeremyinthebay/relay-skills/alert-routing.
Alert routing: the human is the last responder, not the first
The problem this solves
Your automation detects a problem and texts a human. The human reads it, and then has to tell an agent to go look — even though an agent runs every five minutes and could have seen it first.
The human has become the message bus for a system built to avoid exactly that.
Meanwhile, routine states ("a PR is open and waiting", "retrying a task") page them too — so the alerts get muted, and then the one that mattered is missed.
The rule
| Severity | Goes to | Wakes a human? | |
|---|---|---|---|
| urgent | log + chat + agent queue + page | Yes — prod is down or money is burning | |
| normal | log + chat + agent queue | No |
Default is normal. Paging is opt-in, and the bar is: would they want to be woken for this?
An agent triages the queue on its next cycle, fixes what's safe, and escalates with a diagnosis rather than a raw alarm. A person is contacted only if the agent can't resolve it.
The mistake almost everyone makes
Do not add severity to each script's `alert()` function. We did. We changed one of them, declared the policy shipped, and the very next routine event paged the human anyway — because four other scripts each had their own copy of alert() calling the pager directly.
A policy implemented in five places is not a policy. It's a coincidence waiting to end.
Collapse them into one front door every script must call, then prove no other path survives:
If that returns anything but your router, you have not shipped the policy. Make the wrong thing structurally impossible, not merely discouraged.
Reference implementation
alert.sh — the only script permitted to call the pager:
Every caller collapses to one line:
Shell can't call your chat API? Don't try. Queue to a file and let the agent — which does have chat tools — drain it on its next run. Queue, don't block.
Test it for real
Stub the pager so it records instead of sending, fire both severities, assert the count:
Exactly one page. If the routine one paged too, a caller is still bypassing the front door.
Then fire the same class twice with only a number changed — assert it logs once:
If the second one logs, your dedup key still carries a volatile substring and the throttle is a no-op. A test that fires a class only once can never catch this — vary the number and watch. (This is the bug that flooded us; the test that would have caught it didn't exist until after.)
The last mile: don't chatter either
Once alerting is trustworthy, delete the periodic "everything's fine" heartbeat. Ours ran every 10 minutes until the owner killed it: "I trust the process is working, we have a watcher, and you'll alert me when I need to do work."
A status update nobody asked for is a tax on attention. A watchdog is what makes silence trustworthy. Chattering to prove you're alive is just noise with good intentions.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/alert-routing/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jeremyinthebay/relay-skills/alert-routing)