Logo : Betterstack

Betterstack

Organisation
Servosity
betterstack

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`.

Add to TypingMind

Présentation

ÉditeurServosity
Dépôtmsp-skills
Nom de la compétencebetterstack
Étoiles
68
Forks
14
Fichiers inclus
163
LicenceApache-2.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 163

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par Servosity sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Betterstack dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/Servosity/msp-skills/tree/main/skills/betterstack
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Servosity/msp-skills.git /tmp/msp-skills
mkdir -p .claude/skills
cp -r /tmp/msp-skills/skills/betterstack .claude/skills/betterstack
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Betterstack dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Betterstack dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Betterstack n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Better Stack - Claude Code Skill

Prerequisites: Install the CLI

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:

  1. macOS / Linux:
    bash
    bash <(curl -fsSL https://raw.githubusercontent.com/Servosity/msp-skills/main/skills/betterstack/install.sh)
  2. Windows (PowerShell):
    powershell
    iwr -useb https://raw.githubusercontent.com/Servosity/msp-skills/main/skills/betterstack/install.ps1 | iex
  3. Verify: betterstack-cli --version
  4. Ensure ~/.local/bin (macOS / Linux) or %LOCALAPPDATA%\Programs\msp-skills (Windows) is on $PATH.

The installer downloads the betterstack-cli and betterstack-mcp binaries into ~/.local/bin (macOS / Linux) or %LOCALAPPDATA%\Programs\msp-skills (Windows). It does not register the skill with your agent and writes no MCP client config - see mcp-install.md for that wire-up.

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.

When to Use This CLI

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.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Cross-resource analytics the API can't answer

  • 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.

    bash
    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.

    bash
    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.

    bash
    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.

    bash
    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.

    bash
    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.

    bash
    betterstack-cli group-health --agent

Incident intelligence

  • 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.

    bash
    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.

    bash
    betterstack-cli flapping --days 7 --top 10 --agent

On-call and resilience

  • 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.

    bash
    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.

    bash
    betterstack-cli heartbeat-risk --agent

Command Reference

heartbeat-groups - Heartbeat groups

  • betterstack-cli heartbeat-groups create - Create a heartbeat group
  • betterstack-cli heartbeat-groups delete - Delete a heartbeat group
  • betterstack-cli heartbeat-groups get - Get a heartbeat group by ID
  • betterstack-cli heartbeat-groups list - List heartbeat groups

heartbeats - Heartbeats - cron/scheduled-task check-ins

  • betterstack-cli heartbeats create - Create a heartbeat
  • betterstack-cli heartbeats delete - Delete a heartbeat
  • betterstack-cli heartbeats get - Get a heartbeat by ID
  • betterstack-cli heartbeats list - List heartbeats
  • betterstack-cli heartbeats update - Update a heartbeat (sends PATCH)

incidents - Incidents - outages and alerts across monitors and heartbeats

  • betterstack-cli incidents acknowledge - Acknowledge an incident
  • betterstack-cli incidents delete - Delete an incident
  • betterstack-cli incidents get - Get an incident by ID
  • betterstack-cli incidents list - List incidents
  • betterstack-cli incidents resolve - Resolve an incident

monitor-groups - Monitor groups

  • betterstack-cli monitor-groups create - Create a monitor group
  • betterstack-cli monitor-groups delete - Delete a monitor group
  • betterstack-cli monitor-groups get - Get a monitor group by ID
  • betterstack-cli monitor-groups list - List monitor groups

monitors - Uptime monitors (HTTP, keyword, ping, TCP, heartbeat-backed)

  • betterstack-cli monitors create - Create a monitor
  • betterstack-cli monitors delete - Delete a monitor
  • betterstack-cli monitors get - Get a monitor by ID
  • betterstack-cli monitors list - List all monitors
  • betterstack-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 calendars

policies - Escalation policies

  • betterstack-cli policies create - Create an escalation policy
  • betterstack-cli policies delete - Delete an escalation policy
  • betterstack-cli policies get - Get an escalation policy by ID
  • betterstack-cli policies list - List escalation policies

status-page-resources - Resources (monitored components) shown on a status page

  • betterstack-cli status-page-resources delete - Remove a resource from a status page
  • betterstack-cli status-page-resources get - Get a status page resource
  • betterstack-cli status-page-resources list - List resources on a status page

status-page-sections - Sections within a status page

  • betterstack-cli status-page-sections create - Create a status page section
  • betterstack-cli status-page-sections delete - Delete a status page section
  • betterstack-cli status-page-sections get - Get a status page section
  • betterstack-cli status-page-sections list - List sections of a status page

status-pages - Public status pages

  • betterstack-cli status-pages create - Create a status page
  • betterstack-cli status-pages delete - Delete a status page
  • betterstack-cli status-pages get - Get a status page by ID
  • betterstack-cli status-pages list - List status pages

Freshness Contract

This 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 coverage
  • betterstack-cli down
  • betterstack-cli flapping
  • betterstack-cli fleet
  • betterstack-cli group-health
  • betterstack-cli heartbeat-groups
  • betterstack-cli heartbeat-groups get
  • betterstack-cli heartbeat-groups list
  • betterstack-cli heartbeat-risk
  • betterstack-cli heartbeats
  • betterstack-cli heartbeats get
  • betterstack-cli heartbeats list
  • betterstack-cli incidents
  • betterstack-cli incidents get
  • betterstack-cli incidents list
  • betterstack-cli monitor-groups
  • betterstack-cli monitor-groups get
  • betterstack-cli monitor-groups list
  • betterstack-cli monitors
  • betterstack-cli monitors get
  • betterstack-cli monitors list
  • betterstack-cli mttr
  • betterstack-cli on-calls
  • betterstack-cli on-calls get
  • betterstack-cli on-calls list
  • betterstack-cli oncall-gaps
  • betterstack-cli policies
  • betterstack-cli policies get
  • betterstack-cli policies list
  • betterstack-cli status-pages
  • betterstack-cli status-pages get
  • betterstack-cli status-pages list
  • betterstack-cli statuspage-audit
  • betterstack-cli triage

When 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.

Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

bash
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.

Recipes

Find unprotected monitors

bash
betterstack-cli coverage --agent

Lists monitors with no escalation policy or alert channel so you can fix paging gaps before an outage.

30-day incident response report

bash
betterstack-cli mttr --days 30 --agent

Computes MTTA and MTTR across the window from the local mirror - no spreadsheet export needed.

Narrow a verbose monitor payload

bash
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.

Acknowledge an incident safely

bash
betterstack-cli incidents acknowledge 12345 --by oncall@example.com --dry-run

Shows the exact request without sending; drop --dry-run to actually acknowledge.

Rank the noisiest monitors

bash
betterstack-cli flapping --days 7 --top 10 --agent

Surfaces the monitors generating the most incidents so you can tune alert thresholds.

Auth Setup

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.

Agent Mode

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:

    bash
    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

Response envelope

Commands that read from the local store or the API wrap output in a provenance envelope:

json
{
  "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.

Agent Feedback

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.

Output Delivery

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:

SinkEffect
stdoutDefault; 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.

Named Profiles

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.

Exit Codes

CodeMeaning
0Success
2Usage error (wrong arguments)
3Resource not found
4Authentication required
5API error (upstream issue)
7Rate limited (wait and retry)
10Config error

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help → show betterstack-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

  1. Install the MCP binary (run the install script from the Prerequisites section, or see mcp-install.md for per-agent wire-up).
  2. Register with Claude Code:
    bash
    claude mcp add betterstack-mcp -- betterstack-mcp
  3. Verify: claude mcp list

Direct Use

  1. Check if installed: which betterstack-cli If not found, offer to install (see Prerequisites at the top of this skill).
  2. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  3. Execute with the --agent flag:
    bash
    betterstack-cli <command> [subcommand] [args] --agent
  4. If ambiguous, drill into subcommand help: betterstack-cli <command> --help.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Nombre de fichiers supplémentaires : 103.

Foire aux questions

À quoi sert la compétence IA Betterstack ?

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`.

Pourquoi utiliser Betterstack sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Betterstack se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Betterstack dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/Servosity/msp-skills/tree/main/skills/betterstack. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Betterstack ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Betterstack ?

Autant que vous le souhaitez. Vous pouvez utiliser Betterstack avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Betterstack est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par Servosity sous licence Apache-2.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇