clerk-webhooks

Verify Clerk webhook signatures and process events across multiple frameworks.

Updated Jun 20, 2026
One-click install
npx skills add https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026 --skill clerk-webhooks-sudarshan-krishnan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clerk-webhooks
Source: https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026/tree/main/app/.agents/skills/clerk-webhooks
Command: npx skills add https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026 --skill clerk-webhooks-sudarshan-krishnan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the friction and failure-prone guesswork from handling Clerk webhooks, helping you build secure event-driven integrations that keep your app data, notifications, and workflows in sync.

Core Features & Use Cases

  • Signature Verification: Verifies every webhook before processing it, reducing spoofing and unauthorized event handling.
  • Framework-Specific Handlers: Covers Next.js, Express, Astro, Nuxt, React Router, and TanStack Start with the correct request handling patterns for each.
  • Event-Driven Sync: Supports user, session, organization, billing, subscription, and payment events for database sync, welcome emails, Slack alerts, and workspace management.
  • Use Case: When a user signs up or joins an organization, this Skill helps you create database records, send notifications, and keep external systems aligned with Clerk.

Quick Start

Ask for a Clerk webhook handler for your framework and event type, and specify whether you want database sync, notifications, or both.

Frequently Asked Questions about clerk-webhooks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify Clerk webhook signatures in Next.js?

To verify Clerk webhook signatures in Next.js, use the verifyWebhook adapter to validate raw requests before processing events. This prevents spoofing and ensures only authorized webhook events trigger database sync or notification side effects.

What is the best way to sync my database with Clerk user events?

The best way to sync your database with Clerk user events is to configure secure webhook handlers that process incoming user and organization events. Apply idempotent database side effects to safely manage sign-ups and organization joins without creating duplicate records.

Does this approach support handling Clerk billing and payment webhooks?

Yes, this approach supports handling Clerk billing, subscription, and payment webhooks. You can process these incoming events to trigger notification workflows, update external systems, and keep your application data aligned with billing changes.

Can I process Clerk webhooks with Express or Astro?

Yes, you can process Clerk webhooks with Express, Astro, Nuxt, React Router, and TanStack Start. The implementation requires framework-specific verifyWebhook adapters and proper raw request handling to securely verify signatures and manage events.

Why do my Clerk webhook events trigger duplicate database records?

Clerk webhook events trigger duplicate database records when handlers lack idempotent side effects. Applying idempotent database operations ensures that if the same event is delivered multiple times, your system processes it safely without creating duplicate entries.