clerk-webhooks
Skill by vvedantb
Clerk webhooks is a skill that guides an AI assistant through setting up Clerk webhook endpoints for real-time user, organization and session events. It is aimed at developers who need to sync Clerk data to a database or trigger notifications and integrations.
Install clerk-webhooks
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vvedantb/eva /tmp/eva && mkdir -p ~/.claude/skills && cp -r /tmp/eva/.claude/skills/clerk-webhooks ~/.claude/skills/clerk-webhooksRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vvedantb/eva /tmp/eva && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/eva/.claude/skills/clerk-webhooks ~/.gemini/antigravity-cli/skills/clerk-webhooksAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill covers Clerk webhooks, which send event data to your app asynchronously when things happen in Clerk. It lists supported events for users, organizations, memberships, roles, permissions, sessions, invitations and waitlist entries. It explains how to create an endpoint at /api/webhooks, verify incoming requests with verifyWebhook from @clerk/nextjs/webhooks, and narrow handling by event type.
The guidance also covers when to sync data to a database, making the route public so middleware does not block it, queuing long-running work, and handling retries. Webhooks are retried by Svix for up to 3 days, and failed events can be replayed from the Dashboard. The skill is written for developers building Next.js apps with Clerk who want event-driven features such as database sync, notifications or integrations.
Written from the project's SKILL.md and checked against it.
What it can do
- Endpoint setupExplains how to create a webhook route at app/api/webhooks/route.ts in a Next.js app.
- Webhook verificationShows how to verify incoming requests with verifyWebhook from @clerk/nextjs/webhooks.
- Event type handlingShows how to narrow handling to a specific event type such as user.created.
- Supported event listLists Clerk events for users, organizations, memberships, roles, sessions, invitations and waitlists.
- Database sync guidanceExplains when to sync Clerk data to a database and when to use the session token instead.
- Async work queuingShows how to return a 200 response quickly and queue long operations.
- Troubleshooting tableLists common symptoms such as 401 errors, 404 errors and duplicate entries, with fixes.
- Local testing guidanceDescribes using ngrok to tunnel localhost and register the URL in the Dashboard.
What you need
- Clerk account with Dashboard access
- Next.js app using @clerk/nextjs
- CLERK_WEBHOOK_SIGNING_SECRET environment variable
- ngrok for local testing
Try asking
- Set up a Clerk webhook route in my Next.js app that verifies requests.
- Write a handler that syncs Clerk user.created and user.updated events to my database.
- Show me how to queue Clerk webhook events for background processing.
Good to know
- Webhooks are asynchronous and eventually consistent, so they are not for immediate access.
- Not suitable for synchronous flows.
- Failed deliveries are retried by Svix for up to 3 days.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/clerk-webhooks/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: WebFetch
Alternatives to clerk-webhooks
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
clerk-webhooks: common questions
Does clerk-webhooks work with Next.js?
The source shows examples using a Next.js route and the @clerk/nextjs/webhooks import. It does not describe other frameworks.
Which Clerk events can I listen to?
The skill lists user, organization, organization domain, invitation, membership, role, permission, session, email, SMS and waitlist events. The full catalog is in the Dashboard Event Catalog tab.
Why does my webhook return a 401 error?
The source says this happens when the route is protected by middleware. Making the route public, so clerkMiddleware does not protect /api/webhooks, fixes it.
How do I install clerk-webhooks?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clerk-webhooks free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clerk-webhooks safe to use?
It scores 64 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to clerk-webhooks?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
