Agent skill · writing content · jeremylongshore

clerk-data-handling

Handle user data, privacy, and GDPR compliance with Clerk.

Why this skill is useful

Provides specific implementation patterns for GDPR compliance using Clerk's API that the AI wouldn't reliably generate on its own.

What it needs

Requires clerk account access. About 4k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Clerk Data Handling Overview Manage user data, implement privacy features, and ensure GDPR/CCPA compliance using the Clerk Backend API. Covers data export, right to be forgotten, consent management, and audit logging. Prerequisites Clerk integration working Understanding of GDPR/CCPA requirements Database with user-related data linked by Clerk user IDs Instructions Step 1: User Data Export Step 2: User Deletion (Right to be Forgotten) Step 3: Consent Management with Metadata Step 4: Consent UI Component Step 5: Audit Logging via Webhooks Output Data export API returning Clerk profile + application data User deletion cascade (app data, then Clerk, then audit log) Consent management stored in Clerk publicMetadata Privacy preferences UI component Audit logging for compliance events Error Handling Scenario Action ---------- -------- Partial deletion failure Log completed steps, retry failed services, alert ops team Export timeout on large data Queue export job, email user download link when ready Consent sync failure Retry with exponential backoff, fall back to local storage Clerk API rate limit on bulk delete Batch deletions with delays between requests Examples Bulk User Data Cleanup Script Resources Clerk User API Clerk Metadata GDPR Compliance Guide Next Steps Proceed to clerk-enterprise-rbac for enterprise SSO and RBAC.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/clerk-data-handling

View the source on GitHub

Browse the @skills marketplace