alerting-strategies
Design effective alerting strategies that catch real issues without causing alert fatigue. Use this skill when setting up alerts, reducing noise, or improving on-call experience. Activate when: alerting, alerts, pagerduty, on-call, alert fatigue, too many alerts, missed alerts, monitoring thresholds, alert tuning.
What this skill does
# Alerting Strategies
**Get paged for real problems, not noise.**
## Alerting Philosophy
> "Every alert should be actionable, and every action should have a runbook."
### The Goal
- Page for **symptoms** (user impact), not **causes** (internal metrics)
- Every page should require **human judgment**
- False positives erode trust; false negatives cause outages
## Alert Severity Levels
| Level | Response | Time to Ack | Example |
|-------|----------|-------------|---------|
| **P1/Critical** | Page immediately | 5 min | Service down, data loss |
| **P2/High** | Page during hours | 30 min | Degraded performance |
| **P3/Medium** | Ticket | Next day | Non-critical feature broken |
| **P4/Low** | Review weekly | N/A | Cleanup tasks, warnings |
## Alert Types
### 1. Symptom-Based (Recommended)
Alert on what users experience:
```yaml
# Good: Users are experiencing errors
- alert: HighErrorRate
expr: |
sum(rate(http_requests_total{status=~"5.."}[5m]))
/
sum(rate(http_requests_total[5m]))
> 0.01
for: 5m
labels:
severity: critical
annotations:
summary: "Error rate above 1%"
runbook: "https://wiki/runbooks/high-error-rate"
```
### 2. Cause-Based (Use Sparingly)
Alert on infrastructure issues that will cause symptoms:
```yaml
# Acceptable: Will cause problems soon
- alert: DiskSpaceLow
expr: node_filesystem_avail_bytes / node_filesystem_size_bytes < 0.1
for: 15m
labels:
severity: warning
annotations:
summary: "Disk space below 10%"
```
### 3. SLO-Based (Best Practice)
Alert on error budget consumption:
```yaml
# Excellent: Based on SLO burn rate
- alert: SLOBurnRateHigh
expr: |
(
sum(rate(http_requests_total{status=~"5.."}[1h]))
/
sum(rate(http_requests_total[1h]))
) > (14.4 * 0.001) # 14.4x burn rate
for: 5m
labels:
severity: critical
annotations:
summary: "Burning error budget 14x faster than sustainable"
```
## Multi-Window, Multi-Burn-Rate Alerts
Google SRE's recommended approach:
```yaml
# Fast burn (page immediately)
- alert: SLOBurnRateFast
expr: |
(
job:slo_errors_per_request:ratio_rate1h > (14.4 * 0.001)
and
job:slo_errors_per_request:ratio_rate5m > (14.4 * 0.001)
)
for: 2m
labels:
severity: critical
# Slow burn (page during business hours)
- alert: SLOBurnRateSlow
expr: |
(
job:slo_errors_per_request:ratio_rate6h > (1 * 0.001)
and
job:slo_errors_per_request:ratio_rate30m > (1 * 0.001)
)
for: 15m
labels:
severity: warning
```
## Alert Design Patterns
### Pattern 1: Percentage-Based Thresholds
```yaml
# Alert when error rate exceeds normal baseline
- alert: ErrorRateAnomaly
expr: |
(
sum(rate(http_errors_total[5m]))
/
sum(rate(http_requests_total[5m]))
)
>
(
sum(rate(http_errors_total[1d] offset 1d))
/
sum(rate(http_requests_total[1d] offset 1d))
) * 2
```
### Pattern 2: Absence Detection
```yaml
# Alert when service stops reporting
- alert: ServiceDown
expr: absent(up{job="api-service"} == 1)
for: 5m
```
### Pattern 3: Derivative-Based
```yaml
# Alert on rapid change
- alert: LatencySpike
expr: deriv(http_request_duration_seconds_sum[5m]) > 0.1
for: 2m
```
## Alert Fatigue Prevention
### Checklist Before Creating Alert
```
□ Is this actionable? What should responder do?
□ Does a runbook exist?
□ Is this a symptom or a cause?
□ What's the false positive rate likely to be?
□ Can this be a ticket instead of a page?
□ Is the threshold based on data, not gut feel?
□ Does it have appropriate for/pending duration?
```
### Noisy Alert Remediation
| Problem | Solution |
|---------|----------|
| Too many pages | Increase threshold or duration |
| Flapping alerts | Add hysteresis (different up/down thresholds) |
| Duplicate alerts | Use alert grouping/inhibition |
| Low-signal alerts | Convert to ticket or remove |
| Night pages for non-urgent | Route to next business day |
### Alert Hygiene Process
```
Weekly:
- Review all alerts that fired
- Tag: actionable / noise / duplicate
- Fix or remove noisy alerts
Monthly:
- Review alert coverage vs incidents
- Identify incidents with no alerts (gaps)
- Identify alerts that never fired (remove?)
Quarterly:
- Full alert audit
- Update thresholds based on SLO performance
- Review on-call burden metrics
```
## Alert Routing
### Example PagerDuty Integration
```yaml
# Route based on service and severity
receivers:
- name: 'platform-critical'
pagerduty_configs:
- service_key: '<platform-team-key>'
severity: critical
- name: 'platform-warning'
pagerduty_configs:
- service_key: '<platform-team-key>'
severity: warning
- name: 'tickets'
webhook_configs:
- url: 'https://jira.company.com/webhook'
route:
group_by: ['alertname', 'service']
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
receiver: 'platform-warning'
routes:
- match:
severity: critical
receiver: 'platform-critical'
- match:
severity: low
receiver: 'tickets'
```
## Alert Documentation Template
Every alert should have:
```markdown
# Alert: HighErrorRate
## What This Means
Error rate has exceeded 1% for the past 5 minutes.
Users are experiencing failures.
## Impact
- Users see error pages
- API consumers get 500 responses
- Potential revenue impact
## First Response
1. Check deployment timeline - recent deploy?
2. Check dependency status (database, external APIs)
3. Look at error logs for specific error messages
## Runbook
[Link to detailed runbook]
## Escalation
If unresolved after 15 minutes, page @platform-lead
## Historical Context
- Normal error rate: 0.01-0.05%
- Common causes: bad deploys, DB issues, traffic spikes
```
## Metrics for Alerting Health
Track these to improve your alerting:
| Metric | Target | Why |
|--------|--------|-----|
| **MTTA** (Mean Time to Acknowledge) | <5 min | Are pages noticed? |
| **Pages per week per engineer** | <10 | Alert fatigue risk |
| **% actionable pages** | >80% | Signal vs noise |
| **Incidents with no alerts** | <10% | Coverage gaps |
| **False positive rate** | <20% | Trust in alerts |
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.