knofler/myai/ops-alert-rules
Claude Code and agent skill by knofler/myai
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
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/myai/ops-alert-rulesSemi-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:
| Severity | Response Time | Example | Notification | |
|---|---|---|---|---|
| P1 Critical | Immediate (<5min) | Service down, data loss risk | PagerDuty + Slack #incidents | |
| P2 High | <30min | Error rate >5%, latency p95 >5s | Slack #alerts + email | |
| P3 Medium | <4hr | Disk >80%, memory >85% | Slack #monitoring | |
| P4 Low | Next business day | Cert expiring in 14d, deps outdated | Email digest |
2. Define Infrastructure Alerts
3. Define Application Alerts
4. Define Database Alerts
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, 90 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/ops-alert-rules/SKILL.md
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
[](https://verified-skill.com/skills/knofler/myai/ops-alert-rules)