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.
npx skills add hookdeck/webhook-skills --skill better-stack-webhooksgit clone --depth 1 https://github.com/hookdeck/webhook-skillsWrote 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.
[](https://agentmods.dev/skills/hookdeck/webhook-skills/better-stack-webhooks)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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:
- Basic auth (
auth_usernameandauth_password):Authorization: Basic base64(username:password). - A custom header you add to the webhook's
headers_template, for exampleX-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
commentwebhook? - 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
}
What ships with it
21 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- examples/express/.env.example 708 B
- examples/express/package.json 398 B
- examples/express/README.md 3.9 KB
- examples/express/src/index.js 7.9 KB runs code
- examples/express/test/webhook.test.js 15 KB runs code
- examples/fastapi/.env.example 708 B
- examples/fastapi/main.py 8.1 KB runs code
- examples/fastapi/README.md 4.0 KB
- examples/fastapi/requirements.txt 82 B
- examples/fastapi/test_webhook.py 13 KB runs code
- examples/nextjs/.env.example 708 B
- examples/nextjs/app/webhooks/better-stack/route.ts 2.6 KB runs code
- examples/nextjs/lib/better-stack-events.ts 2.9 KB runs code
- examples/nextjs/lib/verify-better-stack.ts 3.3 KB runs code
- examples/nextjs/package.json 556 B
- examples/nextjs/README.md 4.0 KB
- examples/nextjs/test/webhook.test.ts 13 KB runs code
- examples/nextjs/vitest.config.ts 140 B runs code
- references/overview.md 5.1 KB
- references/setup.md 4.4 KB
- references/verification.md 8.0 KB
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.
- 11d ago First seen · 206 lines · 69 tokens per session scan A 4f8da4670d52
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.
better-stack-webhooks compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| better-stack-webhookshookdeck/webhook-skills | Skill | 100 | today | MIT | A | 69 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 134k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 100k | today | Apache-2.0 | A | 19 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | 3d ago | MIT | A | 200 | Claude Code, Codex |
| browser-automationopenclaw/openclaw | Skill | 394k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 315k | 6d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |