monitor-alerts-builder
Skill1 starsChanged 8 days agoMITView on GitHub
Design and build monitoring and alerting for an application - health endpoint, uptime checks, error tracking, alert rules (errors, latency, auth abuse, rate limits, backups, spend, certificates), notification channels and runbooks. Use when asked to add monitoring, set up alerts, or fix the "monitor and alerts" gap from app-readiness-audit. Use proactively when an app is about to be deployed or launched with no alerting.
In this repository8 other files it gives its agents.
- skills/zero-trust-review/references/agents.mdAGENTS.md
- api-security-guardSkill
- app-readiness-auditSkill
- build-flow-mapSkill
- motionsiteSkill
- session-journalSkill
- skeletonizerSkill
- zero-trust-reviewSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Runs on its own: when a deploy or launch is being prepared and there is no health check or alerting, Claude offers to build it.
- Very specific: line 38
Every alert needs: a name, a threshold with a duration (for: 5m), a severity, an owner, and a runbook link.
- Distinctive: line 40
Use a duration or multiple failures before firing, so one blip does not page anyone.
- Distinctive: line 42
Never put secrets, tokens, or personal data in alert text.
- Distinctive: line 43
Test alerts after any change.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Monitor and Alerts Builder
Goal: a human is told within minutes when something important breaks, with enough context to act, and is not woken up by noise.
Runs on its own: when a deploy or launch is being prepared and there is no health check or alerting, Claude offers to build it.
Procedure
- Discover what exists. Look for: a health endpoint, an error-tracking SDK (Sentry etc.), a metrics library, logs, a cron or CI that could run checks, and where the app is hosted. Run
app-readiness-auditscan if available. Do not add a second tool if one is already wired in. - Ask three things only if the repo cannot answer them: where alerts should go (Slack, Discord, Telegram, email, PagerDuty), who owns them, and the hosting platform.
- Pick the lightest stack that fits (see table). Prefer the host's built-in monitoring plus one error tracker over running your own Prometheus.
- Build in this order (each step is useful on its own):
- Health endpoint (
/healthzfor "process is up",/readyzfor "database and dependencies reachable"). - Uptime check hitting
/readyzfrom outside, every 1 minute, alerting after 2 failures. - Error tracking with release and environment tags, user ID but no email or tokens.
- Alert rules from
references/alert-catalog.md(start with the "Day one" set). - Notification channel wired and tested by firing a fake alert.
- One runbook per alert, from
templates/runbook-template.md.
- Health endpoint (
- Write out what you built: where each alert is defined, the threshold and why, who gets it, and the runbook link.
Choosing a stack
| Situation | Suggested setup |
| Small app, one server or PaaS | Hosted uptime check + Sentry + templates/healthcheck.py on cron for backups/disk/certs |
| Kubernetes or many services | Prometheus + Alertmanager using templates/alert-rules.prometheus.yml, Grafana for dashboards |
| Serverless | Provider metrics (CloudWatch, Vercel, Cloudflare) + Sentry + external uptime check |
| Mobile app | Crash reporting (Crashlytics or Sentry) + backend alerts above + release health |
Alert design rules
- Alert on symptoms users feel (errors, slowness, downtime) and on things that silently rot (backup age, certificate expiry, queue growth, spend). Do not alert on raw CPU unless it predicts an outage.
- Every alert needs: a name, a threshold with a duration (
for: 5m), a severity, an owner, and a runbook link. If you cannot write what the person should do, delete the alert. - Two severities are enough: page (act now, customers affected) and ticket (fix this week).
- Use a duration or multiple failures before firing, so one blip does not page anyone.
- Group and de-duplicate; send "resolved" messages; repeat reminders for unacknowledged pages only.
- Never put secrets, tokens, or personal data in alert text.
- Test alerts after any change. An untested alert is a guess.
Templates in this skill
templates/healthcheck.py: dependency-free script. Checks URLs, disk space, TLS certificate expiry, and backup freshness; posts to a Slack/Discord/Telegram/generic webhook. Run with cron or a scheduler. Try--helpand--selftest.templates/alert-rules.prometheus.yml: ready-to-adapt Prometheus rules.templates/runbook-template.md: one-page runbook format.references/alert-catalog.md: what to alert on, default thresholds, and why.- Security alert sets from sibling skills (use them when the user asks for API or Zero Trust monitoring):
../api-security-guard/references/monitoring.md(auth failures, credential stuffing, object probing, unknown routes, deprecated versions) and../zero-trust-review/references/monitoring.mdplus../zero-trust-review/templates/aws-eventbridge-patterns.json(logging tampering, MFA, admin grants, exposure, service identity). If those skills are not installed, use the security rows inreferences/alert-catalog.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

