Best for
- Use this CLI when an agent or operator needs to query, audit, or provision a Better Stack Uptime account from the terminal - especially for cross-resource questions (which monitors are unprotected, how fast incidents re…
Servosity/msp-skills/skills/betterstack/SKILL.md
Every Better Stack Uptime feature, plus an offline SQLite mirror and cross-resource fleet analytics - what's down and who's paged, coverage gaps, MTTA/MTTR, flapping, on-call gaps, and status-page drift - that the API alone can't answer. Trigger phrases: `which monitors are down`, `find unprotected monitors`, `incident MTTR report`, `who is on call`, `noisy monitors`, `use betterstack`, `run betterstack-cli`.
Decision brief
Every Better Stack Uptime feature, plus an offline SQLite mirror and cross-resource fleet analytics - what's down and who's paged, coverage gaps, MTTA/MTTR, flapping, on-call gaps, and status-page drift - that the API alone can't answer. Trigger phrases: `which monitors are down`, `find unprotected monitors`, `incident MTTR report`, `who is on call`, `noisy…
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/Servosity/msp-skills --skill "skills/betterstack"Inspect the Agent Skill "betterstack" from https://github.com/Servosity/msp-skills/blob/30e109db0872897de0b88adb38d81d4c292da3ae/skills/betterstack/SKILL.md at commit 30e109db0872897de0b88adb38d81d4c292da3ae. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Auth is a Better Stack Uptime API token (Authorization: Bearer). Create one under Better Stack → Settings → API tokens, then set BETTERSTACKAPITOKEN. Run betterstack-cli doctor to confirm the token and reachability.
This skill drives the betterstack-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
Use this CLI when an agent or operator needs to query, audit, or provision a Better Stack Uptime account from the terminal - especially for cross-resource questions (which monitors are unprotected, how fast incidents resolve, which monitors flap, who is on call) that the one-res…
These capabilities aren't available in any other tool for this API.
Reach for this first when an agent needs the operational state of the entire account in one call instead of five.
Permission review
The documentation asks the agent to run terminal commands or scripts.
npx -y @mvanhorn/printing-press-library install betterstack --cli-onlyThe documentation asks the agent to run terminal commands or scripts.
go install github.com/mvanhorn/printing-press-library/library/monitoring/betterstack/cmd/betterstack-cli@latestThe documentation includes sending, uploading, or posting data to a remote service.
| `webhook:<url>` | POST the output body to the URL (`application/json` or `application/x-ndjson` when `--compact`) |The documentation includes network, browsing, or remote request actions.
| `webhook:<url>` | POST the output body to the URL (`application/json` or `application/x-ndjson` when `--compact`) |Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 83/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 15 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
This skill drives the betterstack-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
$HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
npx -y @mvanhorn/printing-press-library install betterstack --cli-only
betterstack-cli --version$PATH for the agent/runtime that will invoke this skill.If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.4 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:
go install github.com/mvanhorn/printing-press-library/library/monitoring/betterstack/cmd/betterstack-cli@latest
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
betterstack-cli mirrors your whole Better Stack Uptime account (monitors, heartbeats, incidents, on-call, escalation policies, status pages) into a local SQLite store, then answers operational questions no single API call can: coverage finds monitors that won't page anyone, mttr rolls up incident response times, flapping ranks your noisiest monitors, and fleet shows the whole account on one screen. Covers the official Terraform provider's resource surface (full create/update/delete on monitors and heartbeats; create/delete on groups, policies, and status pages), with agent-native output and typed exit codes throughout.
Use this CLI when an agent or operator needs to query, audit, or provision a Better Stack Uptime account from the terminal - especially for cross-resource questions (which monitors are unprotected, how fast incidents resolve, which monitors flap, who is on call) that the one-resource-at-a-time API can't answer directly. Prefer it over raw API calls whenever the answer spans more than one resource type or needs to work offline.
These capabilities aren't available in any other tool for this API.
fleet - One-screen health of the whole Better Stack account: monitors up/down/paused, heartbeats, open incidents, and who's on call now.
Reach for this first when an agent needs the operational state of the entire account in one call instead of five.
betterstack-cli fleet --agent
coverage - Find monitors with no escalation policy or no alert channel - the ones that will go down silently and page no one.
Use before an incident to prove every monitor actually escalates to a human.
betterstack-cli coverage --agent
down - Focused triage list of monitors currently down or degraded, joined to their open incidents and whether anyone is actually paged for each.
Reach for this at the start of a shift or during an outage to see what is down and who is (or is not) being paged, in one call.
betterstack-cli down --agent
triage - Open incidents ranked by age and acknowledgement state - never-acknowledged first - joined to the affected monitor.
Use this to prioritize incident response: it surfaces the open incidents nobody has acknowledged yet, oldest first.
betterstack-cli triage --agent
statuspage-audit - Flags status pages showing operational while a backing monitor has an open incident, and status-page resources pointing at missing or paused monitors.
Use this before or during an incident to catch public status pages that are silently out of sync with reality.
betterstack-cli statuspage-audit --agent
group-health - Per-group health rollup: monitor and heartbeat up/down counts plus open incidents for every monitor group and heartbeat group.
For MSP-style accounts where one group is one client, this answers per-client health in a single call.
betterstack-cli group-health --agent
mttr - Mean time to acknowledge and resolve, computed across incidents over a window and broken down by monitor.
Use for on-call retros and SLA reporting without exporting to a spreadsheet.
betterstack-cli mttr --days 30 --agent
flapping - Rank monitors by how many incidents they generated in a window to surface the noisy, flapping, or misconfigured ones.
Use to find alert fatigue sources before tuning thresholds.
betterstack-cli flapping --days 7 --top 10 --agent
oncall-gaps - Detect on-call calendars with nobody currently on call.
Use to confirm someone is actually reachable on every rotation before relying on paging.
betterstack-cli oncall-gaps --agent
heartbeat-risk - Rank heartbeats by risk: tight period+grace windows, paused-but-expected, and non-up status.
Use to catch fragile cron/scheduled-task check-ins before they false-alarm or silently miss.
betterstack-cli heartbeat-risk --agent
heartbeat-groups - Heartbeat groups
betterstack-cli heartbeat-groups create - Create a heartbeat groupbetterstack-cli heartbeat-groups delete - Delete a heartbeat groupbetterstack-cli heartbeat-groups get - Get a heartbeat group by IDbetterstack-cli heartbeat-groups list - List heartbeat groupsheartbeats - Heartbeats - cron/scheduled-task check-ins
betterstack-cli heartbeats create - Create a heartbeatbetterstack-cli heartbeats delete - Delete a heartbeatbetterstack-cli heartbeats get - Get a heartbeat by IDbetterstack-cli heartbeats list - List heartbeatsbetterstack-cli heartbeats update - Update a heartbeat (sends PATCH)incidents - Incidents - outages and alerts across monitors and heartbeats
betterstack-cli incidents acknowledge - Acknowledge an incidentbetterstack-cli incidents delete - Delete an incidentbetterstack-cli incidents get - Get an incident by IDbetterstack-cli incidents list - List incidentsbetterstack-cli incidents resolve - Resolve an incidentmonitor-groups - Monitor groups
betterstack-cli monitor-groups create - Create a monitor groupbetterstack-cli monitor-groups delete - Delete a monitor groupbetterstack-cli monitor-groups get - Get a monitor group by IDbetterstack-cli monitor-groups list - List monitor groupsmonitors - Uptime monitors (HTTP, keyword, ping, TCP, heartbeat-backed)
betterstack-cli monitors create - Create a monitorbetterstack-cli monitors delete - Delete a monitorbetterstack-cli monitors get - Get a monitor by IDbetterstack-cli monitors list - List all monitorsbetterstack-cli monitors update - Update a monitor (sends PATCH)on-calls - On-call calendars and current on-call shifts
betterstack-cli on-calls get - Get an on-call calendar by ID (includes current on-call users)betterstack-cli on-calls list - List on-call calendarspolicies - Escalation policies
betterstack-cli policies create - Create an escalation policybetterstack-cli policies delete - Delete an escalation policybetterstack-cli policies get - Get an escalation policy by IDbetterstack-cli policies list - List escalation policiesstatus-page-resources - Resources (monitored components) shown on a status page
betterstack-cli status-page-resources delete - Remove a resource from a status pagebetterstack-cli status-page-resources get - Get a status page resourcebetterstack-cli status-page-resources list - List resources on a status pagestatus-page-sections - Sections within a status page
betterstack-cli status-page-sections create - Create a status page sectionbetterstack-cli status-page-sections delete - Delete a status page sectionbetterstack-cli status-page-sections get - Get a status page sectionbetterstack-cli status-page-sections list - List sections of a status pagestatus-pages - Public status pages
betterstack-cli status-pages create - Create a status pagebetterstack-cli status-pages delete - Delete a status pagebetterstack-cli status-pages get - Get a status page by IDbetterstack-cli status-pages list - List status pagesThis printed CLI owns bounded freshness only for registered store-backed read command paths. In --data-source auto mode, those paths check sync_state and may run a bounded refresh before reading local data. --data-source local never refreshes. --data-source live reads the API and does not mutate the local store. Set BETTERSTACK_NO_AUTO_REFRESH=1 to skip the freshness hook without changing source selection.
Covered paths:
betterstack-cli coveragebetterstack-cli downbetterstack-cli flappingbetterstack-cli fleetbetterstack-cli group-healthbetterstack-cli heartbeat-groupsbetterstack-cli heartbeat-groups getbetterstack-cli heartbeat-groups listbetterstack-cli heartbeat-riskbetterstack-cli heartbeatsbetterstack-cli heartbeats getbetterstack-cli heartbeats listbetterstack-cli incidentsbetterstack-cli incidents getbetterstack-cli incidents listbetterstack-cli monitor-groupsbetterstack-cli monitor-groups getbetterstack-cli monitor-groups listbetterstack-cli monitorsbetterstack-cli monitors getbetterstack-cli monitors listbetterstack-cli mttrbetterstack-cli on-callsbetterstack-cli on-calls getbetterstack-cli on-calls listbetterstack-cli oncall-gapsbetterstack-cli policiesbetterstack-cli policies getbetterstack-cli policies listbetterstack-cli status-pagesbetterstack-cli status-pages getbetterstack-cli status-pages listbetterstack-cli statuspage-auditbetterstack-cli triageWhen JSON output uses the generated provenance envelope, freshness metadata appears at meta.freshness. Treat it as current-cache freshness for the covered command path, not a guarantee of complete historical backfill or API-specific enrichment.
When you know what you want to do but not which command does it, ask the CLI directly:
betterstack-cli which "<capability in your own words>"
which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match - fall back to --help or use a narrower query.
betterstack-cli coverage --agent
Lists monitors with no escalation policy or alert channel so you can fix paging gaps before an outage.
betterstack-cli mttr --days 30 --agent
Computes MTTA and MTTR across the window from the local mirror - no spreadsheet export needed.
betterstack-cli monitors list --per-page 250 --agent --select data.id,data.attributes.pronounceable_name,data.attributes.status
Uses --select dotted paths to pull only id, name, and status from the JSON:API envelope so agents don't burn context on full monitor objects.
betterstack-cli incidents acknowledge 12345 --by [email protected] --dry-run
Shows the exact request without sending; drop --dry-run to actually acknowledge.
betterstack-cli flapping --days 7 --top 10 --agent
Surfaces the monitors generating the most incidents so you can tune alert thresholds.
Auth is a Better Stack Uptime API token (Authorization: Bearer). Create one under Better Stack → Settings → API tokens, then set BETTERSTACK_API_TOKEN. Run betterstack-cli doctor to confirm the token and reachability.
Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.
Pipeable - JSON on stdout, errors on stderr
Filterable - --select keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
betterstack-cli heartbeat-groups list --agent --select id,name,status
Previewable - --dry-run shows the request without sending
Offline-friendly - sync/search commands can use the local SQLite store when available
Non-interactive - never prompts, every input is a flag
Explicit retries - use --idempotent only when an already-existing create should count as success, and --ignore-missing only when a missing delete target should count as success
Commands that read from the local store or the API wrap output in a provenance envelope:
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}
Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal AND no machine-format flag (--json, --csv, --compact, --quiet, --plain, --select) is set - piped/agent consumers and explicit-format runs get pure JSON on stdout.
When you (or the agent) notice something off about this CLI, record it:
betterstack-cli feedback "the --since flag is inclusive but docs say exclusive"
betterstack-cli feedback --stdin < notes.txt
betterstack-cli feedback list --json --limit 10
Entries are stored locally at ~/.local/share/betterstack-cli/feedback.jsonl. They are never POSTed unless BETTERSTACK_FEEDBACK_ENDPOINT is set AND either --send is passed or BETTERSTACK_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.
Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
| Sink | Effect |
|---|---|
stdout | Default; write to stdout only |
file:<path> | Atomically write output to <path> (tmp + rename) |
webhook:<url> | POST the output body to the URL (application/json or application/x-ndjson when --compact) |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
betterstack-cli profile save briefing --json
betterstack-cli --profile briefing heartbeat-groups list
betterstack-cli profile list --json
betterstack-cli profile show briefing
betterstack-cli profile delete briefing --yes
Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 4 | Authentication required |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
Parse $ARGUMENTS:
help, or --help → show betterstack-cli --help outputinstall → ends with mcp → MCP installation; otherwise → see Prerequisites above--agent)go install github.com/mvanhorn/printing-press-library/library/monitoring/betterstack/cmd/betterstack-mcp@latest
claude mcp add betterstack-mcp -- betterstack-mcp
claude mcp listwhich betterstack-cli
If not found, offer to install (see Prerequisites at the top of this skill).--agent flag:
betterstack-cli <command> [subcommand] [args] --agent
betterstack-cli <command> --help.Alternatives
K-Dense-AI/scientific-agent-skills
Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed use polars.
K-Dense-AI/scientific-agent-skills
Standard single-cell RNA-seq analysis pipeline. Use for QC, normalization, dimensionality reduction (PCA/UMAP/t-SNE), clustering, differential expression, visualization, and converting R-friendly single-cell formats such as Seurat or SingleCellExperiment RDS files into h5ad for Scanpy. Best for exploratory scRNA-seq analysis with established workflows. For deep learning models use scvi-tools; for data format questions use anndata.
K-Dense-AI/scientific-agent-skills
Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.
github/awesome-copilot
AI-powered codebase security scanner that reasons about code like a security researcher — tracing data flows, understanding component interactions, and catching vulnerabilities that pattern-matching tools miss. Use this skill when asked to scan code for security vulnerabilities, find bugs, check for SQL injection, XSS, command injection, exposed API keys, hardcoded secrets, insecure dependencies, access control issues, or any request like "is my code secure?", "review for security issues", "audi