gc-notify-webhooks

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

A guide for receiving callbacks from GC Notify, the Government of Canada's service for sending email and text messages. It explains how to check the bearer token and process delivery results such as delivered or failed.

In plain words
What is it for?
Use it to create and authenticate a GC Notify callback endpoint, handle email and SMS delivery receipts, and debug 401 errors.
Why use it?
It removes guesswork when building the web address that GC Notify calls after a message is delivered or fails. It also helps diagnose unauthorized requests and explains that these callbacks are not digitally signed.

Skill for Claude CodeCodex

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

Good fit Use it to create and authenticate a GC Notify callback endpoint, handle email and SMS delivery receipts, and debug 401 errors.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hookdeck/webhook-skills/gc-notify-webhooks"><img src="https://agentmods.dev/badge/skills/hookdeck/webhook-skills/gc-notify-webhooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,918 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.00068 $0.01918
Opus 5.5 $0.00027 $0.00767
Sonnet 5.5 $0.00014 $0.00384
Haiku 4.5 $0.00007 $0.00192

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

Security

Grade A, and why

gc-notify-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/gc-notify-webhooks/SKILL.md · 151 lines

How it starts

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

GC Notify Webhooks

GC Notify is the Government of Canada's notification service (a fork of GOV.UK Notify, but a separate service). When an email or text message you sent is delivered or fails, GC Notify POSTs a JSON delivery receipt to the callback URL you registered. Callbacks are not signed. You set a bearer token for the callback, and GC Notify sends it on every request as Authorization: Bearer <token>. Your endpoint authenticates the request by comparing it with the token you stored.

When to Use This Skill

  • How do I receive GC Notify callbacks (webhooks)?
  • How do I verify the Authorization: Bearer token on a GC Notify callback?
  • Does GC Notify sign webhook payloads? (No: it sends a static bearer token)
  • How do I handle delivered, permanent-failure or technical-failure delivery receipts?
  • Why does my GC Notify callback endpoint return 401?

Verification (core)

const crypto = require('crypto');

const BEARER = /^bearer /i; // auth schemes are case-insensitive (RFC 9110)

function safeEqual(a, b) { // Buffers; hash both sides so lengths match
  const ha = crypto.createHash('sha256').update(a).digest();
  const hb = crypto.createHash('sha256').update(b).digest();
  return crypto.timingSafeEqual(ha, hb);
}

function verifyGcNotifyRequest(headers, configured = process.env.GC_NOTIFY_WEBHOOK_SECRET) {
  const secret = configured ? configured.replace(BEARER, '') : ''; // bare token; never trim
  if (!secret) return false;                      // never accept when unconfigured
  const header = headers['authorization'];
  if (typeof header !== 'string' || !BEARER.test(header)) return false;
  return safeEqual(Buffer.from(header.slice(7), 'latin1'), Buffer.from(secret, 'utf8'));
}
  • Header: Authorization: Bearer <token>. Store just the token in GC_NOTIFY_WEBHOOK_SECRET.
  • Return 401 for a missing header, a scheme other than Bearer, or a mismatch.
  • Read the body raw (express.raw({ type: '*/*' })) so any content type works, and parse it only after the check.
  • Limits of this check: a static shared credential authenticates the sender, not the body, and gives no replay protection (there is no signature and no timestamp). Use HTTPS and rotate the bearer token in GC Notify if it leaks.

Read the full file on GitHub · 151 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 · 151 lines · 68 tokens per session scan A fe495cd3845e

Subscribe to this mod's changes

gc-notify-webhooks is a skill published in the GitHub repository hookdeck/webhook-skills (104 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 1,918 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-27.

Related

gc-notify-webhooks compared with skills from other repositories

gc-notify-webhooks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gc-notify-webhookshookdeck/webhook-skillsSkill104yesterdayMITA68Claude 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