basin-webhooks

basin-webhooks is a skill for Claude Code, Codex from hookdeck/webhook-skills. It costs 45 tokens per session (1,604 once invoked), scanned A, original, MIT.

A guide to receiving Basin form webhooks, which send submitted form data to your server as JSON or form-encoded data. It explains how to verify Basin's HMAC-SHA256 signature, a code that proves the request came from Basin and was not changed.

In plain words
What is it for?
Use it to build and troubleshoot a Basin form submission endpoint and validate its signature header.
Why use it?
It prevents accepting forged or altered form submissions and avoids signature checks failing because the request body was parsed too early.

Skill for Claude CodeCodex

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

Good fit Use it to build and troubleshoot a Basin form submission endpoint and validate its signature header.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hookdeck/webhook-skills/basin-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 basin-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 basin-webhooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/hookdeck/webhook-skills/basin-webhooks/github.svg)](https://agentmods.dev/skills/hookdeck/webhook-skills/basin-webhooks)
Your own site
<a href="https://agentmods.dev/skills/hookdeck/webhook-skills/basin-webhooks"><img src="https://agentmods.dev/badge/skills/hookdeck/webhook-skills/basin-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 basin-webhooks

Your own site · 80×15
<a href="https://agentmods.dev/skills/hookdeck/webhook-skills/basin-webhooks"><img src="https://agentmods.dev/badge/skills/hookdeck/webhook-skills/basin-webhooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,604 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.00045 $0.01604
Opus 5.5 $0.00018 $0.00642
Sonnet 5.5 $0.00009 $0.00321
Haiku 4.5 $0.00005 $0.00160

Measured 1mo ago against content hash e64353931169, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

basin-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 1mo ago.

The scan reads SKILL.md. This mod also ships 8 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/basin-webhooks/SKILL.md · 135 lines

How it starts

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

Basin Webhooks

When to Use This Skill

  • How do I receive Basin webhooks?
  • How do I verify the X-Basin-Signature header on a Basin webhook?
  • How do I handle a Basin form submission webhook (JSON or form-urlencoded)?
  • Why is my Basin webhook signature verification failing?
  • Why are my Basin webhooks arriving without a signature?

Verification (core)

Basin sends the header X-Basin-Signature: sha256=<hex>, where <hex> is the lowercase hex HMAC-SHA256 of the raw request body, keyed with the webhook signing secret. There is no timestamp and it is not the Standard Webhooks spec. Require and strip the sha256= prefix, then compare in constant time. Verify over the raw bytes before parsing: the body is JSON or form-urlencoded depending on the webhook's payload type.

Node (check the hex shape first: Buffer.from(x, 'hex') silently truncates invalid hex):

const crypto = require('crypto');

function verifyBasinSignature(rawBody, signatureHeader, secret) {
  if (!signatureHeader || !signatureHeader.startsWith('sha256=')) return false;
  const received = signatureHeader.slice('sha256='.length);
  if (!/^[0-9a-f]{64}$/i.test(received)) return false;
  const expected = crypto.createHmac('sha256', secret).update(rawBody).digest();
  return crypto.timingSafeEqual(Buffer.from(received, 'hex'), expected);
}

Python (compare bytes so a non-ASCII header yields 401/400, not a 500):

import hashlib, hmac

def verify_basin_signature(raw_body: bytes, signature_header: str | None, secret: str) -> bool:
    if not signature_header or not signature_header.startswith("sha256="):
        return False
    received = signature_header[len("sha256="):].lower().encode("utf-8")
    expected = hmac.new(secret.encode("utf-8"), raw_body, hashlib.sha256).hexdigest().encode("utf-8")
    return hmac.compare_digest(received, expected)

Plan requirement: signed webhooks are only available on Basin's Growth plan and above. On lower plans deliveries carry no X-Basin-Signature header, so verification fails. Express handlers must read the body with express.raw({ type: '*/*' }) so any content type verifies.

Read the full file on GitHub · 135 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. 1mo ago First seen · 135 lines · 45 tokens per session scan A e64353931169

Subscribe to this mod's changes

basin-webhooks is a skill published in the GitHub repository hookdeck/webhook-skills (104 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 1,604 once invoked, about $0.0002 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-27.

Related

basin-webhooks compared with skills from other repositories

basin-webhooks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
basin-webhookshookdeck/webhook-skillsSkill104yesterdayMITA45Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code