Sponsor Suno AI Music arrow_forward
Slash Command

Create Webhook Handler

Create secure webhook endpoints with validation and resilience

Type
Slash Command
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026

What Create Webhook Handler is

Create Webhook Handler is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.

Create Webhook Handler gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.

How to install Create Webhook Handler

Claude Code

  1. Download create-webhook-handler.md from the repository.
  2. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
  3. Run it by typing / followed by its name.

Claude Cowork

  1. Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
  2. In Customize → Skills, click +, then upload the ZIP.
  3. Run it from any task with / and the skill name.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/api-development/webhook-handler-creator/commands/create-webhook-handler.md, shared under the repository's MIT license. Read the full file on GitHub.

Automatically generate production-ready webhook endpoints with signature verification, idempotency, retry handling, event processing, and comprehensive security measures for reliable third-party integrations.

When to Use This Command

Use /create-webhook-handler when you need to:

  • Receive real-time events from external services (Stripe, GitHub, Slack)
  • Build event-driven architectures with external triggers
  • Implement payment processing notifications
  • Handle CI/CD pipeline events
  • Process incoming data from IoT devices
  • Create serverless event receivers

DON'T use this when:

  • Building internal service communication (use message queues)
  • Need guaranteed ordering (webhooks are best-effort)
  • Handling large payloads (>10MB typically)
  • Bidirectional communication needed (consider WebSockets)

Design Decisions

This command implements signature-based verification as the primary approach because:

  • Industry-standard security practice (HMAC-SHA256)
  • Prevents replay attacks with timestamp validation
  • Ensures message integrity and authenticity
  • Widely supported by webhook providers
  • Simple to implement and verify
  • Minimal overhead for validation

Alternative considered: OAuth token validation

  • More complex setup required
  • Additional network calls for validation
  • Higher latency
  • Recommended for user-authenticated webhooks

Alternative considered: mTLS (mutual TLS)

  • Strongest security option
  • Complex certificate management
  • Not widely supported
  • Recommended for enterprise B2B integrations

Prerequisites

Before running this command:

  1. Webhook URL endpoint defined
  2. Shared secret or signing key from provider
  3. Event types to handle documented
  4. Database for idempotency tracking
  5. Queue system for async processing (optional)

Implementation Process

Step 1: Create Webhook Endpoint

Define secure POST endpoint with proper routing and middleware.

Step 2: Implement Signature Verification

Validate webhook authenticity using HMAC signatures.

Step 3: Add Idempotency Handling

Prevent duplicate processing of retried events.

Step 4: Route Events to Handlers

Dispatch events to appropriate processing functions.

Step 5: Configure Monitoring

Set up logging, metrics, and alerting for webhook health.

Output Format

The command generates:

  • webhooks/handlers/ - Event-specific handler functions
  • webhooks/middleware/ - Signature verification, rate limiting
  • webhooks/routes.js - Webhook endpoint definitions
  • webhooks/processors/ - Async event processors
  • webhooks/schemas/ - Event validation schemas
  • config/webhooks.json - Provider configurations
  • tests/webhooks/ - Integration tests with mock events

Code Examples

Example 1: Multi-Provider Webhook System with Express

// webhooks/middleware/signature.js
const crypto = require('crypto');
const { WebhookError } = require('../errors');

class SignatureVerifier {
    constructor(config) {
        this.providers = config.providers;
        this.timestampTolerance = config.timestampTolerance || 300; // 5 minutes
    }

    // Stripe signature verification
    verifyStripe(payload, signature, secret) {
        const elements = signature.split(',');
        const timestamp = elements.find(e => e.startsWith('t=')).substring(2);
        const signatures = elements
            .filter(e => e.startsWith('v1='))
            .map(e => e.substring(3));
…

Example 2: Serverless Webhook Handler with AWS Lambda

# webhook_handler.py - AWS Lambda function
import json
import hmac
import hashlib
import time
import boto3
from typing import Dict, Any, Optional
from dataclasses import dataclass
from enum import Enum

dynamodb = boto3.resource('dynamodb')
sqs = boto3.client('sqs')
sns = boto3.client('sns')

class WebhookProvider(Enum):
    STRIPE = "stripe"
    GITHUB = "github"
    SLACK = "slack"
…

Example 3: Testing Webhook Handlers

// tests/webhook.test.js
const request = require('supertest');
const crypto = require('crypto');
const app = require('../app');
const Redis = require('ioredis-mock');

describe('Webhook Handler Tests', () => {
    let redis;

    beforeEach(() => {
        redis = new Redis();
    });

    describe('Stripe Webhooks', () => {
        const secret = 'whsec_test_secret';

        function generateStripeSignature(payload, secret) {
            const timestamp = Math.floor(Date.now() / 1000);
…

Error Handling

Configuration Options

Security Options

  • signatureAlgorithm: HMAC-SHA256, HMAC-SHA512
  • timestampTolerance: Maximum age of webhook (seconds)
  • ipAllowlist: Restrict to provider IPs
  • rateLimits: Per-provider rate limiting

Processing Options

  • asyncProcessing: Queue events for background processing

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Create Webhook Handler?

Create Webhook Handler is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Create secure webhook endpoints with validation and resilience

How do I install Create Webhook Handler in Claude Code?

Download create-webhook-handler.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.

Can I use Create Webhook Handler in Claude Cowork?

Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.

Is Create Webhook Handler safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.