Command Palette

Search for a command to run...

Back to skills
skill № 85575

alerting

Use when the user asks about alert rules, Prometheus Alertmanager, Grafana alerts, alert fatigue, PagerDuty or Opsgenie routing, escalation policies or…

FreeNo executable scripts
j4flmaoby j4flmao★ 47 GitHub stars

Install alerting in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Alert Rules

Purpose

Design alert rules following the RED/USE method with severity classification, threshold tuning, notification routing, and escalation paths. Ensure every alert is actionable, documented with a runbook, and tuned to balance detection speed against fatigue.

Framework and Methodology

Alerting Philosophy

Four principles guide alert rule design:

  1. Actionability — if no action can be taken, it belongs on a dashboard, not as an alert.
  2. Signal over noise — every firing alert represents a real issue requiring human intervention.
  3. Tiered response — severity dictates speed of response, not importance of the metric.
  4. Continuous tuning — thresholds degrade over time as systems evolve; review monthly.

RED Method (Applications)

Rate, Errors, Duration — the three golden signals for application monitoring.

Rate: How much traffic is flowing through the system?
  Query: rate(http_requests_total[5m])
  Alert: sudden drop (possible outage) or unexpected surge (traffic anomaly)

Errors: What fraction of requests are failing?
  Query: rate(http_requests_total{status=~"5.."}[5m]) / rate(http_requests_total[5m])
  Alert: > 1% warning, > 5% critical

Duration: How long do requests take?
  Query: histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m]))
  Alert: p99 > 500ms warning, > 2s critical

USE Method (Infrastructure)

Utilization, Saturation, Errors — resource-focused monitoring.

Utilization: What percentage of capacity is being used?
  CPU: node_cpu_seconds_total{mode="idle"} < 0.1
  Memory: node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes < 0.1
  Disk: node_filesystem_avail_bytes / node_filesystem_size_bytes < 0.1

Saturation: How much extra work is queued?
  CPU run queue length > 4 * core count
  Disk I/O queue depth > disk I/O capacity
  Network interface drops > 0

Errors: How many errors are occurring?
  OOM kills: increase(node_vmstat_oom_kill[5m]) > 0
  Disk errors: increase(node_disk_io_time_seconds_total[5m]) > 0
  Network errors: increase(node_network_transmit_errors_total[5m]) > 0

Business Metrics

Domain-specific alerts on revenue-impacting signals.

- Order failure rate > 10%
- Payment processing delay > 30s p95
- User signup completion rate < 90%
- API integration partner error rate > 5%
- Cart abandonment rate spike > 20% above baseline

Alert Fatigue Calculation

Alert Fatigue Risk = (Total Alerts / Week) / (Actionable Alerts / Week)

  Healthy: < 3 alerts per actionable alert
  Warning: 3-10 alerts per actionable (investigate thresholds)
  Critical: > 10 alerts per actionable (urgent tuning needed)

  Target: < 5 total alerts per on-call person per shift
  Maximum: 10 alerts per shift before burnout risk

Decision Tree: Alert or Dashboard?

Will someone take immediate action when this fires?
  ├── Yes → What action?
  │   ├── Rollback, restart, failover
  │   │   └── P0/P1 alert with runbook
  │   ├── Investigate during business hours
  │   │   └── P2 alert with runbook
  │   └── Investigate when someone has time
  │       └── P3 alert or ticket, not pager
  └── No → Is it useful for post-mortem analysis?
      ├── Yes → Dashboard panel + log
      └── No → Delete the metric or reduce collection frequency

Agent Protocol

Trigger

User request includes: alert rule, alertmanager, prometheus alert, grafana alert, notification, pagerduty, on-call, escalation, alert fatigue, threshold.

Input Context

  • Monitoring platform (Prometheus, Grafana, ELK, Datadog, New Relic)
  • On-call tool (PagerDuty, Opsgenie, Slack)
  • Current alert volume and known pain points
  • Service criticality tiers

Output Artifact

A markdown document containing:

  • Alert severity definitions with response SLAs
  • Alert rule templates per signal type (latency, errors, saturation, throughput)
  • Threshold tuning guidelines (avoid alert fatigue)
  • Notification routing rules (severity to channel to escalation)
  • Silence/maintenance window policy
  • Runbook template for common alerts

Response Format

Produce the artifact directly. No preamble. No postamble. No explanations.

Completion Criteria

  • Severity levels defined with clear escalation paths
  • Alert rules cover USE/RED method
  • Thresholds tuned with tuning guidelines
  • Notification routing defined per severity
  • Runbook template included

Max Response Length

4096 tokens

Workflow

Step 1: Define Severity Levels

Map severity (P0-P3) to response SLA, notification channels, and escalation paths.

P0: Critical -- 5 min acknowledge, 1 hr fix -- Phone + Slack + PagerDuty
     Escalation: EM -> CTO -- Example: total service outage, data loss
P1: High -- 15 min acknowledge, 4 hr fix -- Slack + PagerDuty
     Escalation: Team lead -- Example: high error rate, degraded performance
P2: Warning -- 1 hr acknowledge, 24 hr fix -- Slack
     Escalation: None -- Example: disk usage rising, latency increasing
P3:
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • references/alert-rules-catalog.md
  • references/alert-rules-templates.md
  • references/alerting-advanced.md
  • references/alerting-fundamentals.md
  • references/alerting-oncall-rotation.md
  • references/alerting-rule-design.md
  • references/escalation-policies.md
  • references/notification-routing.md

FAQ

What does the alerting skill do?

Use when the user asks about alert rules, Prometheus Alertmanager, Grafana alerts, alert fatigue, PagerDuty or Opsgenie routing, escalation policies or threshold tuning. Produces actionable alert rules with severity and routing. Not for dashboards and metrics stacks (use monitoring) or SLO burn-rate design (use enterprise-sla-management).

How do I install the alerting skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the alerting skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare alerting with