/be:webhook-deliveryfrom Backend Skills
Sending webhooks to customers from a Next.js API — events written in the same transaction as the change, a queue so a request never waits on delivery, Standard Webhooks signing with an id and timestamp, versioned event types, thin or full payloads, retries with backoff and jitter over days, at-least-once and unordered delivery, SSRF checks on customer URLs, endpoint registration and test events, a delivery log with replay, disabling failing endpoints, rotation and per-endpoint limits. Use when an API must notify customers' systems of events.
Ships in Backend Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A webhook is your API calling a customer's server when something happens. It's a delivery system, not a route: an event is recorded with the change that caused it, a worker sends it from a queue, a failure is retried for days, and the customer can see every attempt and send it again. The receiving side — verifying a provider's webhooks — is api-architecture's.
Before applying this skill, read the project's root AGENTS.md, the AGENTS.md closest to the files in question, and any doc they link for this skill's topic. Names, values and choices — budgets, tiers, tokens, voice, paths — come from those files, never from this skill.
events record beside the order or the payout it describes (the outbox pattern). A crash between "change saved" and "event queued" then can't lose an event, and a rolled-back change can't send one.create(), so a worker that runs twice doesn't send twice.evt_…), the same on every attempt and every endpoint — it's the receiver's dedup key.resource.action in the past tense, lowercase, grouped by resource (order.paid, ticket.refunded), from one catalogue in the shared contracts. One type always carries one payload schema.{ "type", "timestamp", "data" } — timestamp the ISO time the event happened, not when it was sent.api-architecture).schemas-and-contracts), never the stored document.Follow the Standard Webhooks spec, so customers can verify with its libraries:
webhook-id (the event id), webhook-timestamp (Unix seconds) and webhook-signature (v1,<base64>).id.timestamp.body — the exact bytes sent, so serialise once and sign and send the same string. HMAC-SHA256 with the endpoint's own secret.whsec_… once on creation, stored encrypted (field-encryption) because it must be read to sign. A leaked secret affects one endpoint, not every customer.v2a, over endpoint_id.msg_id.timestamp.payload) lets receivers verify without holding a shared secret, and one key pair serves every endpoint; the older v1a is deprecated.webhook-id — the same rules the house applies when it receives webhooks.POST over HTTPS only, a timeout of 15–30 seconds, no redirects followed. A 2xx is success; anything else, a timeout or a reset connection is a failure.410 Gone disables the endpoint; 429, 502, 503 and 504 slow it down, honouring Retry-After; a 3xx is a failure — the customer updates the URL.rate-limiting).A webhook makes your server call any URL a customer types, which is the shape of server-side request forgery (OWASP API7):
169.254.169.254), unique-local IPv6 and IPv4-mapped forms — and pin the connection to that resolved address, or a second DNS answer can point it inside (DNS rebinding). Check at registration and on every attempt.account.webhook-endpoint.create), each change audited (access-control, api-architecture). An endpoint holds its URL, the event types it subscribes to, its payload version, its secret and its state.webhook.test), and one sent on creation, so they see a signed delivery before real events depend on it.firestore).A route test for endpoint management with SSRF cases (a private IP, a hostname resolving to one, a redirect); a unit test that the signature matches Standard Webhooks' published test vectors; a worker test with a fake HTTP target for success, retry scheduling, 410 and Retry-After (testing).
Code for signing, the address check and the retry schedule is in references/patterns.md.
Receiving webhooks and versioning api-architecture · API keys and endpoint permissions access-control · outbound limits rate-limiting · storing secrets field-encryption · claims and locks redis · the event record and TTL firestore · payload projections schemas-and-contracts · SSRF and server threats backend-security · failure emails transactional-email.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timonwa/engineering-skills --plugin beOther plugins' skills for the same job
22 skills in this plugin
/access-controlAccess control for a Next.js API on Firebase — roles, relationships and attributes (RBAC, ReBAC, ABAC) behind permission verbs and one pure can(); guards as the only gate, 404 before 403; tenant scoping; invitations; escalation limits; two-person approval and access reviews; stale claims; API-key scopes; share links and passcodes; where plan and flag checks sit; UI gates that only hide; and tests. Use when adding a permission, role, guarded route, API key, share link, or a control only some people see./access-control-auditManually invoked. Access-control audit — guards on every route and Server Action (BFLA), 404 before 403 and tenant scoping (BOLA), allowlisted writes and projected reads (BOPLA), verbs never role names, roles that add up, escalation and invitations, claims and revocation, sessions and sign-in, API keys and share links, the plan and flag order, UI gates, data rules and the tests. Verifies each finding and writes a prioritised report./api-architectureHow an API route is built in a Next.js API — the fixed order of rate limit, authorise, validate, delegate, audit, respond; thin routes over services; the response envelope and typed errors; caching headers; concurrent edits; long-running work; cursor pagination and allowlisted sorts; resource paths, versions, deprecation and state-transition sub-routes; and what every new route ships with. Cron, webhooks and audit logs are references. Use when adding, changing or reviewing a route handler or the API layer's structure.