validating-alertmanager-routing

validating-alertmanager-routing is a skill for Claude Code, Codex from talkops-ai/talkops-mcp. It costs 137 tokens per session (1,859 once invoked), scanned A, original, Apache-2.0.

A guide for checking Prometheus Alertmanager, the service that decides where monitoring alerts are sent. It tests routing trees, suppression rules, schedules, and receivers against configuration files or a live backend.

In plain words
What is it for?
Use it to simulate who receives an alert, lint Alertmanager configuration, review alert suppression, and design routing rules.
Why use it?
It finds alerts that would be misrouted, silenced unexpectedly, sent to missing destinations, or blocked by configuration mistakes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to simulate who receives an alert, lint Alertmanager configuration, review alert suppression, and design routing rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/talkops-ai/talkops-mcp/validating-alertmanager-routing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add talkops-ai/talkops-mcp --skill validating-alertmanager-routing
Clone the repo
git clone --depth 1 https://github.com/talkops-ai/talkops-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for validating-alertmanager-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/validating-alertmanager-routing/github.svg)](https://agentmods.dev/skills/talkops-ai/talkops-mcp/validating-alertmanager-routing)
Your own site
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/validating-alertmanager-routing"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/validating-alertmanager-routing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for validating-alertmanager-routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/validating-alertmanager-routing"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/validating-alertmanager-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,859 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00137 $0.01859
Opus 5.5 $0.00055 $0.00744
Sonnet 5.5 $0.00027 $0.00372
Haiku 4.5 $0.00014 $0.00186

Measured 11d ago against content hash d7f64116b02c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

validating-alertmanager-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/lint_alertmanager_config.py, scripts/test_routes.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/alertmanager-mcp-server/skills/validating-alertmanager-routing/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Validating Alertmanager Routing & Configuration

Overview

Designs, lints, and simulates Alertmanager routing trees (route), inhibit_rules, time_intervals, and receivers both offline against candidate alertmanager.yml files using deterministic Python scripts and live against running Alertmanager backends via MCP resources and tools.

When invoked via /setup-monitoring, read commands/setup-monitoring.md first, check live Alertmanager alerts/hygiene (am_audit_alert_hygiene / am_list_alerts) and routing config (am://backends/{backend_id}/config, am_explain_routing) concisely to discover the target service's team label and whether it falls into the catch-all route, and output both the multi-burn-rate SLO PrometheusRule manifest (with service, team, severity, env, summary, runbook_url) and the linted alertmanager.yaml child route.

MCP Execution Primitives & Bundled Scripts

  • Bundled Scripts (Always Run Offline Linting & Simulation Helpers):
    • scripts/lint_alertmanager_config.py — static analyzer detecting missing root receiver (LINT001), undefined receivers (LINT002), unused receivers (LINT003), undefined time_intervals (LINT004), deprecated match/match_re (LINT005), shadowed sibling routes (LINT006), invalid Go RE2 regexes (LINT007), and un-scoped/self-matching inhibit_rules (LINT008).
    • scripts/test_routes.py — offline amtool config routes test equivalent implementing exact depth-first Route.Match traversal, parameter inheritance (group_by, group_wait, group_interval, repeat_interval), continue fan-out, IANA time_intervals, and inhibit_rules.
  • Resources (Read via MCP read_resource to Inspect Live Config):
    • am://backends — list configured Alertmanager backends (default, prod, staging, etc.).
    • am://backends/{backend_id}/config — read the active nested routing tree, inhibit_rules, time_intervals, and redacted YAML config from a live backend.
    • am://backends/{backend_id}/receivers — read configured receiver names and integration types (slack, pagerduty, webhook, opsgenie, email) with secrets redacted.
  • Tools (routing & governance toolsets):
    • am_explain_routing — simulate routing tree traversal, at_time time-interval muting, active silences, and live inhibit_rules (check_live_state=True) on a running backend.
    • am_audit_alert_hygiene — detect active live alerts falling back to the root catch-all route (fell_back_to_default == True) and retrieve suggested_matchers.
    • am_push_test_alert — send a time-bounded synthetic test alert (resolve_after_minutes=5, confirm=True) to verify end-to-end delivery when explicitly requested.

Read the full file on GitHub · 67 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 67 lines · 137 tokens per session scan A d7f64116b02c

Subscribe to this mod's changes

validating-alertmanager-routing is a skill published in the GitHub repository talkops-ai/talkops-mcp (4 stars, last pushed 12d ago), licensed Apache-2.0. It adds 137 tokens to every session and 1,859 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-18.

Related

validating-alertmanager-routing compared with skills from other repositories

validating-alertmanager-routing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
validating-alertmanager-routingtalkops-ai/talkops-mcpSkill412d agoApache-2.0A137Claude Code, Codex
agentcore-investigationawslabs/mcpSkill10.0k2d agoApache-2.0A52Claude Code, Codex
gcp-triagenirholas/three.wsSkill287yesterdayApache-2.0A93Claude Code
ssh-incidentbvisible/mcp-ssh-managerSkill554yesterdayMITA46Claude Code, Codex
incident-response-skillagentfront/frontmcpSkill154todayApache-2.0A24Claude Code, Codex
self-unblock-playbooknirholas/three.wsSkill287yesterdayApache-2.0A42Claude Code
zdx-investigate-multi-app-outagezscaler/zscaler-mcp-serverSkill5614d agoMITA155Claude Code