Agent skill

Shortcut Webhooks Skill

Receive and verify Shortcut webhooks (formerly Clubhouse). Use when setting up Shortcut outgoing webhook handlers, debugging Payload-Signature verification failures, or handling story, epic and comment events.

Install this skill

npx skills add hookdeck/webhook-skills --skill shortcut-webhooks


When to Use This Skill

  • How do I receive Shortcut (Clubhouse) webhooks?
  • How do I verify the Shortcut Payload-Signature header?
  • Why is my Shortcut webhook signature verification failing?
  • How do I handle story create, story update or epic update events?
  • Why are my Shortcut webhooks arriving without a signature?

Verification (core)

Shortcut signs a webhook only if you entered a secret when creating it. The Payload-Signature header is the hex-encoded HMAC-SHA256 of the raw request body (UTF-8), keyed with that secret string. There is no timestamp and no prefix. Verify manually and compare timing-safe, or in JavaScript use verifyShortcutWebhookSignature(secret, rawBody, signature) from @shortcut/client/webhooks (3.5.0+), which checks Payload-Signature alone. That package's ShortcutWebhookClient is for Custom Agent deliveries, a separate webhook with a different envelope and a Shortcut-Signature header.

Node:

const crypto = require('crypto');

function verify(rawBody, signatureHeader, secret) {
  if (!signatureHeader || !secret) return false;
  const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
  try {
    return crypto.timingSafeEqual(Buffer.from(signatureHeader.trim().toLowerCase()), Buffer.from(expected));
  } catch {
    return false; // different lengths
  }
}

Python:

import hmac, hashlib

def verify(raw_body: bytes, signature_header: str, secret: str) -> bool:
    if not signature_header or not secret:
        return False
    expected = hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(signature_header.strip().lower().encode(), expected.encode())

In Express, read the body with express.raw({ type: '*/*' }) so any content type is verified against the exact bytes received.

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Payload and Event Dispatch

Each delivery is one JSON event: { id, changed_at, primary_id?, member_id, version, actions: [...], references: [...] }. Shortcut has no event-type header. Dispatch on each item in actions[] by entity_type and action; one delivery can hold several actions.

entity_type + actionDescription
story createA story was created
story updateA story changed (see changes, e.g. workflow_state_id, owner_ids)
epic createAn epic was created
epic updateAn epic changed

Shortcut fires for story and epic create, update and delete, including their comments and tasks, but its docs don't show the strings for deletes, comments or tasks. Log unknown pairs and acknowledge them. See references/overview.md for details.

Environment Variables

SHORTCUT_WEBHOOK_SECRET=your_webhook_secret   # The secret you entered when creating the webhook

Local Development

# Start tunnel (no account needed)
npx hookdeck-cli listen 3000 shortcut --path /webhooks/shortcut

Reference Materials


Repository

hookdeck/webhook-skills

v0.1.0 · MIT · Updated Nov 4, 2026

View on GitHub →