better-stack-webhooks

better-stack-webhooks is a skill for Claude Code, Codex from hookdeck/webhook-skills. It costs 69 tokens per session (2,995 once invoked), scanned A, original, MIT.

A webhook integration guide for receiving notifications from Better Stack, a service for uptime monitoring, incidents, and on-call changes.

In plain words
What is it for?
Use it to set up and debug webhooks for incident, monitor, and on-call changes, including Basic authentication or a custom header and common 401 errors.
Why use it?
It clarifies how requests are authenticated and helps avoid failed integrations caused by expecting a signing secret or using the wrong credential handling.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to set up and debug webhooks for incident, monitor, and on-call changes, including Basic authentication or a custom header and common 401 errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hookdeck/webhook-skills/better-stack-webhooks
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hookdeck/webhook-skills --skill better-stack-webhooks
Clone the repo
git clone --depth 1 https://github.com/hookdeck/webhook-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for better-stack-webhooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/hookdeck/webhook-skills/better-stack-webhooks/github.svg)](https://agentmods.dev/skills/hookdeck/webhook-skills/better-stack-webhooks)
Your own site
<a href="https://agentmods.dev/skills/hookdeck/webhook-skills/better-stack-webhooks"><img src="https://agentmods.dev/badge/skills/hookdeck/webhook-skills/better-stack-webhooks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for better-stack-webhooks

Your own site · 80×15
<a href="https://agentmods.dev/skills/hookdeck/webhook-skills/better-stack-webhooks"><img src="https://agentmods.dev/badge/skills/hookdeck/webhook-skills/better-stack-webhooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,995 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.02995
Opus 5.5 $0.00028 $0.01198
Sonnet 5.5 $0.00014 $0.00599
Haiku 4.5 $0.00007 $0.00299

Measured 11d ago against content hash 4f8da4670d52, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

better-stack-webhooks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (examples/express/src/index.js, examples/express/test/webhook.test.js, examples/fastapi/main.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/better-stack-webhooks/SKILL.md · 206 lines

How it starts

The opening of the file, as written. The whole thing — 206 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Better Stack Webhooks

Better Stack's Uptime and incident management product can send an outgoing webhook to your URL when an incident changes, a monitor changes or the on-call person changes. Webhooks are not signed: there is no signing secret, HMAC or timestamp. A webhook can carry one of two static credentials, and your endpoint authenticates the request by comparing it with the value you set:

  1. Basic auth (auth_username and auth_password): Authorization: Basic base64(username:password).
  2. A custom header you add to the webhook's headers_template, for example X-Better-Stack-Secret: <long random secret>. The header name is yours to choose.

Hookdeck's Better Stack source offers both: Basic auth (the default) and Custom header (an API key check on the header name you enter, compared against the whole value). Hookdeck's source checks the credential; it never answers with a 401 challenge.

Better Stack's docs do not say whether Basic credentials are sent on the first request or only after a 401 WWW-Authenticate challenge. A receiver that never challenges (including Hookdeck's source) only works if they are sent preemptively. The custom header avoids the question, so prefer it; if Basic auth deliveries are rejected, switch to the custom header.

This skill covers the Uptime / incident management webhooks. Better Stack's Errors product has separate outgoing webhooks with a different body and is out of scope.

When to Use This Skill

  • How do I receive Better Stack webhooks?
  • How do I authenticate requests from a Better Stack outgoing webhook?
  • Does Better Stack sign webhook payloads? (No: check Basic auth or a custom header)
  • How do I handle incident, monitor and on-call change webhooks?
  • How do I handle an incident comment webhook?
  • Why does my Better Stack webhook endpoint return 401?

Verification (core)

const crypto = require('crypto');

// Hash both sides: equal-length digests, so timingSafeEqual never throws.
const safeEqual = (a, b) =>
  crypto.timingSafeEqual(
    crypto.createHash('sha256').update(a).digest(),
    crypto.createHash('sha256').update(b).digest()
  );

function verifyBetterStackRequest(headers, env = process.env) {
  // Custom header: the whole value, verbatim (nothing stripped or trimmed).
  const name = (env.BETTER_STACK_WEBHOOK_HEADER || 'X-Better-Stack-Secret').toLowerCase();
  const value = headers[name];
  const headerOk =
    Boolean(env.BETTER_STACK_WEBHOOK_SECRET) && typeof value === 'string' &&
    safeEqual(Buffer.from(value, 'latin1'), Buffer.from(env.BETTER_STACK_WEBHOOK_SECRET));

  // Basic auth: strict base64, split on the FIRST colon, evaluate both parts.
  let basicOk = false;
  const m = /^basic +([A-Za-z0-9+/]+={0,2})$/i.exec(headers['authorization'] || '');
  const user = env.BETTER_STACK_WEBHOOK_USERNAME, pass = env.BETTER_STACK_WEBHOOK_PASSWORD;
  if (m && user && pass && m[1].length % 4 === 0) {
    const buf = Buffer.from(m[1], 'base64');
    const decoded = buf.toString('utf8');
    const i = decoded.indexOf(':');
    if (buf.toString('base64') === m[1] && i !== -1) {
      const userOk = safeEqual(Buffer.from(decoded.slice(0, i)), Buffer.from(user));
      const passOk = safeEqual(Buffer.from(decoded.slice(i + 1)), Buffer.from(pass));
      basicOk = userOk && passOk;
    }
  }
  return headerOk || basicOk; // either configured method; with neither configured: false
}

Read the full file on GitHub · 206 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 206 lines · 69 tokens per session scan A 4f8da4670d52

Subscribe to this mod's changes

better-stack-webhooks is a skill published in the GitHub repository hookdeck/webhook-skills (100 stars, last pushed today), licensed MIT. It adds 69 tokens to every session and 2,995 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-30.

Related

better-stack-webhooks compared with skills from other repositories

better-stack-webhooks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
better-stack-webhookshookdeck/webhook-skillsSkill100todayMITA69Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill100ktodayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k3d agoMITA200Claude Code, Codex
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill315k6d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code