Webhook Orchestrator
БесплатноБез исполняемых скриптовНе проверенDesign webhook event routing, payload validation, and retry logic for real-time event-driven integrations where source systems push policy changes, loan…
от TheLobbi★ 22 звезды на GitHubОб этом скилле
Webhook Orchestrator
Produce a complete webhook receiver and event routing specification. The output is the technical design a developer uses to build the webhook endpoint, event router, and retry infrastructure.
Webhook Receiver Design
Endpoint specification:
| Field | Value |
|---|---|
| URL structure | https://integrations.[firm].com/webhooks/{source-system} |
| HTTP method | POST only (reject GET, PUT, DELETE with 405) |
| Content-Type required | application/json |
| TLS | Required — TLS 1.2 minimum. Reject HTTP (respond with 301 or close connection). |
| IP allowlist | If source system provides a list of static egress IPs, add them to the allowlist. Document the IP list and who to contact at the vendor when IPs change. |
| Response SLA | Respond with HTTP 200 within 5 seconds. Any processing beyond 5 seconds must be async (acknowledge immediately, process in background queue). |
| Endpoint authentication | Shared secret signature (HMAC) OR basic auth token in header — see Payload Validation section |
Why respond immediately: Webhook senders typically time out after 5-30 seconds and may retry if no response is received. All processing logic (database writes, downstream API calls, notifications) must happen asynchronously in a queue after the 200 response is sent.
Response structure:
HTTP 200 OK
{
"received": true,
"event_id": "{deduplication-key-extracted-from-payload}",
"queued_at": "2026-04-15T14:30:00Z"
}
HTTP 400 Bad Request (invalid payload structure):
{
"error": "INVALID_PAYLOAD",
"message": "Required field 'event_type' is missing"
}
HTTP 401 Unauthorized (signature validation failed):
{
"error": "INVALID_SIGNATURE",
"message": "Webhook signature does not match"
}
Payload Validation
Validate every incoming webhook before processing. Reject invalid payloads at the receiver — do not pass them to the event queue.
HMAC Signature Verification
Most modern webhook senders include a signature in the request headers. Verify it before processing:
function validateHmacSignature(
payload: string, // raw request body as string — do NOT parse JSON first
receivedSignature: string, // from header: X-Hub-Signature-256 or similar
secret: string // shared secret from Key Vault
): boolean {
// Vendor format may be: sha256={hex-signature}
const expectedSignature = 'sha256=' +
crypto.createHmac('sha256', secret)
.update(payload, 'utf8')
.digest('hex');
// Use timing-safe comparison to prevent timing attacks
return crypto.timingSafeEqual(
Buffer.from(receivedSignature),
Buffer.from(expectedSignature)
);
}
// In the request handler:
const rawBody = req.body.toString('utf8'); // read as raw string before JSON parse
const signature = req.headers['x-webhook-signature'] as string;
if (!validateHmacSignature(rawBody, signature, webhookSecret)) {
return res.status(401).json({ error: 'INVALID_SIGNATURE' });
}
const payload = JSON.parse(rawBody);
Critical: Read the raw body before parsing. JSON parsers may reorder fields, changing the string and breaking the HMAC comparison.
Header name by vendor: Each vendor uses a different header name. Document the exact header name:
| System | Signature Header | Format |
|---|---|---|
| Generic / custom | X-Webhook-Signature | sha256={hex} |
| GitHub-style | X-Hub-Signature-256 | sha256={hex} |
| Stripe-style | Stripe-Signature | t={timestamp},v1={signature} |
| Custom vendor | X-[System]-Signature | {hex} |
For Stripe-style signatures (timestamp + signature), also validate that the timestamp is within 5 minutes of current time to prevent replay attacks.
Source IP Validation
If the webhook source provides a static egress IP list:
const ALLOWED_IPS = ['203.0.113.10', '203.0.113.11']; // document source
function validateSourceIP(requestIP: string): boolean {
return ALLOWED_IPS.includes(requestIP);
}
Document where the IP list comes from and how to update it when the vendor changes their egress IPs.
Payload Schema Validation
After signature verification, validate the payload structure:
// Required fields for all events from this source
const requiredFields = ['event_type', 'event_id', 'timestamp', 'data'];
for (const field of requiredFields) {
if (!(field in payload)) {
return res.status(400).json({
error: 'INVALID_PAYLOAD',
message: `Required field '${field}' is missing`
});
}
}
// Validate event_type is a known type
const knownEventTypes = new Set([
'policy.created', 'policy.updated', 'policy.cancelled',
'claim.submitted', 'claim.status_changed',
'payment.received', 'payment.failed'
]);
if (!knownEventTypes.has(payload.event_type)) {
// Log unknown event type — do not reject (forward-compatibility)
logger.warn('Unknown event type received', { eventType: payload.event_type });
// Still return 200 — do not ca
Установить Webhook Orchestrator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepBashWriteFAQ
Что делает скилл Webhook Orchestrator?
Design webhook event routing, payload validation, and retry logic for real-time event-driven integrations where source systems push policy changes, loan status updates, or payment events.
Как установить скилл Webhook Orchestrator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Webhook Orchestrator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic