webhooks
БесплатноБез исполняемых скриптовНе проверенAdd, debug, and manage webhook providers in the joelclaw webhook gateway. Use when: adding a new webhook integration (GitHub, Stripe, Vercel, etc.), debugging…
от joelhooks★ 69 звёзд на GitHubОб этом скилле
Webhook Gateway Operations
For private addresses, accounts, ports, and host roles, see .brain/resources/operator-network-context.svx in the private dark-wizard repo and the tailnet-topology skill. Replace angle-bracket placeholders with the configured values before running commands.
Manage the joelclaw webhook gateway — add providers, debug delivery, register with external services.
Architecture
External Service → hooks.joelclaw.com → narrow Vercel raw-body proxy
→ <central-host> Tailscale Funnel :10000 → Worker :3111 → /webhooks/:provider
→ verifySignature() → normalizePayload() → (queue pilot or direct Inngest event) → notify function → gateway
Stable provider URL target:
https://hooks.joelclaw.com/webhooks/<provider>
The ingress is intentionally narrow: it preserves raw bodies/signature headers and only proxies /webhooks/:provider. Provider registrations still using retired host are migration work; do not declare a provider migrated until a real signed delivery succeeds through the stable URL.
- ADR-0048: Webhook Gateway for External Service Integration
- Gateway skill: Use
gateway push/gateway testpatterns for delivery checks
Current Providers
| Provider | Events | Signature | Legacy/current registration until verified migrated |
|---|---|---|---|
| todoist | comment.added, task.completed, task.created | HMAC-SHA256 (x-todoist-hmac-sha256) |
https://<tailnet-host>/webhooks/todoist |
| front | message.received, message.sent, assignee.changed | HMAC-SHA1 (x-front-signature) |
https://<tailnet-host>/webhooks/front |
| vercel | deploy.succeeded, deploy.error, deploy.created, deploy.canceled | HMAC-SHA1 (x-vercel-signature) |
https://hooks.joelclaw.com/webhooks/vercel |
| github | workflow_run.completed, package.published | HMAC-SHA256 (x-hub-signature-256) |
https://hooks.joelclaw.com/webhooks/github |
Current ADR-0217 pilot note: when QUEUE_PILOTS=github, the webhook gateway enqueues normalized github/workflow_run.completed events into the shared Redis queue instead of posting them directly to Inngest. The Restate drainer then forwards the concrete event name github/workflow_run.completed. github/package.published still goes direct.
Adding a New Provider
See references/new-provider-checklist.md for the full 8-step checklist.
Quick summary:
- Create
providers/{name}.tsimplementingWebhookProviderinterface - Register in
server.tsprovider map - Create Inngest notify function(s) in
functions/{name}-notify.ts - Export from
functions/index.tsand add tofunctions/index.host.ts(orindex.cluster.tswhen cluster-owned) - Store webhook secret in
agent-secrets→ add lease tostart.sh - Deploy:
joelclaw inngest restart-worker --register - Register webhook URL with external service
- Verify E2E with
curl+ real webhook
Key Files
| File | Purpose |
|---|---|
packages/system-bus/src/webhooks/types.ts |
WebhookProvider interface, NormalizedEvent type |
packages/system-bus/src/webhooks/server.ts |
Hono router — dispatches to providers, rate limiting |
packages/system-bus/src/webhooks/providers/ |
Provider implementations (one file per service) |
packages/system-bus/src/inngest/functions/*-notify.ts |
Gateway notification functions per provider |
packages/system-bus/src/inngest/functions/index.ts |
Function exports barrel |
packages/system-bus/src/inngest/functions/index.host.ts |
Host worker function registration (current active role) |
packages/system-bus/src/inngest/functions/index.cluster.ts |
Cluster worker function registration (future/role split) |
packages/system-bus/src/serve.ts |
Worker role selection + health endpoint + webhook provider list |
~/Code/joelhooks/joelclaw/packages/system-bus/start.sh |
Secret leasing on host worker startup |
Debugging Webhooks
Check if webhook is arriving
# Watch worker logs
joelclaw logs worker --follow --grep webhook
# Or directly
curl -s http://localhost:3111/ | jq .webhooks
# → { endpoint: "/webhooks/:provider", providers: ["todoist", "front", "vercel"] }
Signature verification failures
# Test with manual HMAC (SHA1 example for Vercel)
SECRET="your-webhook-secret"
BODY='{"type":"test-webhook","payload":{}}'
HMAC=$(echo -n "$BODY" | openssl dgst -sha1 -hmac "$SECRET" -binary | xxd -p)
curl -X POST http://localhost:3111/webhooks/vercel \
-H "Content-Type: application/json" \
-H "x-vercel-signature: $HMAC" \
-d "$BODY"
Common failures:
- Wrong secret — Todoist uses
client_secret(not "Verification token"), Vercel uses the secret from webhook creation, Front uses the rules-based secret - Encoding mismatch — Todoist = base64, Vercel = hex, Front = base64 over compact JSON
- Body mutation — Caddy/proxy rewrites body. Use Tailscale Funnel → worker directly
- *Rate limited
Установить webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл webhooks?
Add, debug, and manage webhook providers in the joelclaw webhook gateway. Use when: adding a new webhook integration (GitHub, Stripe, Vercel, etc.), debugging webhook signature failures, checking webhook delivery, testing webhook endpoints, registering webhooks with external services, or reviewing webhook provider implementations. Triggers on: 'add a webhook', 'new webhook provider', 'webhook not working', 'webhook signature failed', 'register webhook', 'webhook debug', 'verify webhook', 'add Vercel/GitHub/Stripe webhook', 'webhook 401', 'test webhook endpoint', or any external service webhook integration task.
Как установить скилл webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл webhooks запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic