AgentSkillsCN

event-gateway

全面指南:Hookdeck Event Gateway 用于接收、路由与交付 Webhook 和事件。涵盖设置、连接、身份验证、本地开发、监控以及 API 自动化。适用于任何 Hookdeck Event Gateway 任务,包括接收 Webhook、第三方路由、异步 API,或本地 Webhook 开发。

SKILL.md
--- frontmatter
name: event-gateway
description: "Comprehensive guide to the Hookdeck Event Gateway for receiving, routing, and delivering webhooks and events. Covers setup, connections, authentication, local development, monitoring, and API automation. Use for any Hookdeck Event Gateway task including receiving webhooks, third-party routing, asynchronous APIs, or local webhook development."
allowed-tools: WebFetch

Hookdeck Event Gateway

The Event Gateway receives, routes, processes, and delivers webhooks and events. The core model: a Source (ingestion endpoint with a unique https://hkdk.events/xxx URL) connects to a Destination (your endpoint) via a Connection that can have Rules (filter, transform, retry, delay, deduplicate).

Documentation

Always reference Hookdeck docs as the source of truth. See references/referencing-docs.md for how to fetch docs as markdown.

Use Cases

Use caseWhen to useQuickstart
Receive webhooksIngesting third-party webhooks (Stripe, Shopify, GitHub, etc.)quickstart
Third-party routingRouting events between services (Zapier-like integration flows)quickstart
Asynchronous APIsEvent ingestion at scale from IoT devices, SDKs, web analyticsquickstart
Test & debug localhostLocal webhook development with the CLIquickstart

Sending webhooks to customers? Use Outpost instead.

Workflow Stages

Follow these in order for a new Hookdeck integration:

  1. 01-setup -- Create account, install CLI, create connection
  2. 02-scaffold -- Build handler from provider skill examples + Hookdeck verification
  3. 03-listen -- Start hookdeck listen, trigger test events
  4. 04-iterate -- Debug failures, fix code, replay events

Stage 02 references provider-specific skills from hookdeck/webhook-skills (e.g., stripe-webhooks for Stripe verification and event types).

Quick Start (Receive Webhooks)

No account required -- hookdeck listen works immediately:

sh
brew install hookdeck/hookdeck/hookdeck   # or: npm i -g hookdeck-cli
hookdeck listen 3000

With a Hookdeck account (Event Gateway project with full features):

sh
hookdeck login
hookdeck listen 3000

The CLI creates a Source URL, a Destination pointing at localhost:3000, and a Connection linking them. Configure your webhook provider to send to the Source URL.

Reference Material

Use as needed (not sequential):

Setup & Terminology

AreaResourceWhen to use
Docsreferences/referencing-docs.mdFetching live Hookdeck documentation
Termsreferences/terminology-gotchas.mdHookdeck-specific terms, common mistakes

Configuration

AreaResourceWhen to use
Architecturereferences/connection-architecture.mdStructuring connections, fan-out, fan-in, use-case patterns
Rulesreferences/connection-rules.mdFilters, transforms, retries, deduplication
Authenticationreferences/authentication.mdSource auth, destination auth, signature verification

Development & Operations

AreaResourceWhen to use
CLIreferences/cli-workflows.mdCLI installation, connection management, project switching
APIreferences/api-patterns.mdREST API automation, bulk operations, publish
Monitoringreferences/monitoring-debugging.mdFailed deliveries, event lifecycle, troubleshooting

Verification Code

AreaResourceWhen to use
Codereferences/verification-code.mdHookdeck signature verification (Express, Next.js, FastAPI)
Examplesexamples/Full working verification handlers