knofler/app/ops-alert-rules

Claude Code and agent skill by knofler/app

Trust tier 2
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Define alerting rules. Error rate thresholds, latency p95/p99, disk/memory alerts, custom business metrics. Output as structured config. Triggers: alert rules, alerting, monitoring alerts, error threshold, latency alert

Install

npx vskill@latest install knofler/app/ops-alert-rules

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as knofler/myai/ops-alert-rules.

Alert Rules Definition Playbook

When to Use

  • Setting up alerting for a new production service
  • Adding alerts for new infrastructure or business metrics
  • Reviewing and tuning existing alert thresholds to reduce noise
  • Defining escalation policies for different severity levels

Prerequisites

  • Production service with health endpoints deployed
  • Knowledge of baseline performance metrics (or will establish during setup)
  • Notification channels configured (Slack, email, PagerDuty, or webhook)

Playbook

1. Categorize Alert Severity Levels

Define four severity tiers:

SeverityResponse TimeExampleNotification
P1 CriticalImmediate (<5min)Service down, data loss riskPagerDuty + Slack #incidents
P2 High<30minError rate >5%, latency p95 >5sSlack #alerts + email
P3 Medium<4hrDisk >80%, memory >85%Slack #monitoring
P4 LowNext business dayCert expiring in 14d, deps outdatedEmail digest
2. Define Infrastructure Alerts
yaml
infrastructure_alerts:
cpu_usage:
warning: { threshold: 70, duration: "5m", severity: P3 }
critical: { threshold: 90, duration: "2m", severity: P1 }
memory_usage:
warning: { threshold: 80, duration: "5m", severity: P3 }
critical: { threshold: 95, duration: "2m", severity: P1 }
disk_usage:
warning: { threshold: 75, duration: "10m", severity: P3 }
critical: { threshold: 90, duration: "5m", severity: P2 }
container_restarts:
warning: { threshold: 3, window: "15m", severity: P3 }
critical: { threshold: 5, window: "15m", severity: P2 }
3. Define Application Alerts
yaml
application_alerts:
error_rate:
warning: { threshold: "1%", window: "5m", severity: P3 }
critical: { threshold: "5%", window: "5m", severity: P1 }
latency_p95:
warning: { threshold: "1000ms", window: "5m", severity: P3 }
critical: { threshold: "3000ms", window: "5m", severity: P2 }
latency_p99:
warning: { threshold: "3000ms", window: "5m", severity: P3 }
critical: { threshold: "5000ms", window: "5m", severity: P1 }
health_check_failure:
critical: { consecutive_failures: 3, severity: P1 }
request_volume_drop:
warning: { threshold: "50% below baseline", window: "15m", severity: P2 }
4. Define Database Alerts
yaml
database_alerts:
connection_pool_usage:
warning: { threshold: "80%", severity: P3 }
critical: { threshold: "95%", severity: P1 }
slow_queries:
warning: { threshold: ">500ms", count: 10, window: "5m", severity: P3 }
replication_lag:
warning: { threshold: "5s", severity: P3 }
critical: { threshold: "30s", severity: P2 }
5. Define Business Metric Alerts

Identify key business metrics from the application domain:

  • Signups per hour dropping below baseline
  • Payment failures exceeding threshold
  • Queue depth growing beyond capacity
  • API quota usage approaching limit

Format each with threshold, window, severity, and runbook link.

6. Configure Alert Routing and Deduplication
  • Group related alerts to avoid alert storms (e.g., one DB outage triggers many downstream alerts)
  • Set inhibition rules: P1 database alert suppresses P2/P3 application alerts
  • Configure cooldown periods: do not re-alert for same condition within 15 minutes
  • Route by severity to appropriate channels and on-call schedules
7. Document Runbook Links

Every P1 and P2 alert must link to a runbook with first-responder steps. Reference the ops-runbook-create skill for creating these.

Output

  • Alert rules configuration file (YAML or JSON)
  • Severity level definitions with response time expectations
  • Alert routing and escalation policy
  • Runbook link for each critical alert

Review Checklist

  • [ ] Every P1/P2 alert has a linked runbook
  • [ ] Thresholds are based on baseline data, not arbitrary values
  • [ ] Alert grouping prevents storm scenarios
  • [ ] Cooldown periods prevent duplicate notifications
  • [ ] Business metric alerts cover key revenue and user-facing flows
  • [ ] At least one human has validated thresholds against real traffic

Security

  • Security scanPassed, 96 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • configConfiguration overrides

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/knofler/app/ops-alert-rules/badge)](https://verified-skill.com/skills/knofler/app/ops-alert-rules)

Something wrong with this skill or its page? Tell us.