Skip to content

Skill for receiving GitHub webhooks, verifying HMAC-SHA256 signatures, and handling repository events.

CCM score
57 of 100
skills.sh installs
539
GitHub stars
104
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers GitHub webhook receipt and verification, with Node and Python handler examples for X-Hub-Signature-256 checks
  • Includes timing-safe signature comparison on the raw request body, rejecting the legacy SHA-1 X-Hub-Signature header
  • Lists common events including push, pull_request, issues, release, workflow_run, and ping, plus key headers
  • Designed for developers setting up GitHub handlers, debugging signature failures, or testing locally with npx hookdeck-cli listen

Install

$ npx -y skills add hookdeck/webhook-skills --skill github-webhooks -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

GitHub Webhooks

When to Use This Skill

  • Setting up GitHub webhook handlers
  • Debugging signature verification failures
  • Understanding GitHub event types and payloads
  • Handling push, pull request, or issue events

Verification (core)

GitHub signs the raw body with HMAC-SHA256 keyed on your webhook secret and sends the digest in X-Hub-Signature-256 formatted as sha256=<hex>. Use X-Hub-Signature-256 (not the legacy SHA-1 X-Hub-Signature), pass the raw body, and compare timing-safe.

Node:

const crypto = require('crypto');

function verify(rawBody, signatureHeader, secret) {
  const [algo, sig] = (signatureHeader || '').split('=');
  if (algo !== 'sha256' || !sig) return false;
  const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
  try {
    return crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
  } catch {
    return false;
  }
}

Python:

import hmac, hashlib

Details

Repository
github.com/hookdeck/webhook-skills
Categories
Backend & APIs, Git & Releases
First seen
Jun 3, 2026

Questions

What does the github-webhooks skill do?

The github-webhooks skill helps an agent receive and verify GitHub webhooks, including setting up handlers and debugging signature verification. It covers repository events such as push, pull_request, issues, release and workflow_run. The skill includes HMAC-SHA256 verification code using the X-Hub-Signature-256 header for Node and Python.

How do I install the github-webhooks skill?

Run npx -y skills add hookdeck/webhook-skills --skill github-webhooks -y in your project to install it. Once installed, the agent can write GitHub webhook handlers that verify the X-Hub-Signature-256 signature against your webhook secret. It also provides guidance on local testing with the hookdeck-cli listen tunnel.

What does the github-webhooks skill need to run?

The skill expects a GITHUB_WEBHOOK_SECRET environment variable, set when you create the webhook in GitHub. Local development uses npx hookdeck-cli listen on port 3000 with the github path, which needs no account. Example handlers are provided for Express, Next.js and FastAPI.

Where does github-webhooks sit among Backend & APIs skills?

Within the Backend & APIs category on Claude Marketplaces, github-webhooks sits alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. It focuses specifically on GitHub's signed webhook deliveries and repository event types. It also links to webhook-handler-patterns for idempotency and retry logic.

More from hookdeck/webhook-skills

All 7

Similar to Github Webhooks

More Backend & APIs