Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clerk-data-handling

Skill by jeremylongshore

Clerk Data Handling is a skill for implementing user data export, account deletion, consent management and audit logging with Clerk. It is for developers building GDPR and CCPA privacy features in apps that use Clerk.

  • Score 77
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clerk-data-handling

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clerk-data-handling ~/.claude/skills/clerk-data-handling

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clerk-data-handling in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives Claude Code guidance for handling user data and privacy in an app that uses Clerk. It covers data export, right to be forgotten, consent management and audit logging. The source includes example code that uses the Clerk Backend API and Next.js route handlers.

The export example combines the Clerk profile with application data from a database linked by Clerk user IDs. The deletion example removes application data first, then the Clerk user, then writes an audit log entry. Consent choices are stored in Clerk publicMetadata, and the source includes a React consent component and a webhook handler that records audit events. It also includes a script that removes database users who no longer exist in Clerk.

The skill is aimed at developers who need to add privacy and compliance features to a Clerk-based application. The source states that the user should understand GDPR and CCPA requirements before using it.

Written from the project's SKILL.md and checked against it.

What it can do

  • User data exportBuilds an export endpoint that returns the Clerk profile and application data for the signed-in user.
  • User deletion cascadeDeletes application data, then the Clerk user, then writes a deletion record to an audit log.
  • Consent managementStores marketing, analytics and third-party consent in Clerk publicMetadata with an update timestamp.
  • Consent UI componentProvides a React component where users can save their marketing and analytics privacy preferences.
  • Audit logging via webhooksRecords Clerk webhook events in an audit log and flags user.deleted and user.updated for compliance.
  • Orphaned user cleanupIncludes a script that removes database users whose Clerk accounts no longer exist.

What you need

  • A working Clerk integration
  • A database with user records linked by Clerk user IDs
  • Understanding of GDPR or CCPA requirements
  • Node.js and npm

Try asking

  • Add a GDPR data export endpoint that returns a user's Clerk profile and app data.
  • Write a user deletion route that removes app data, then the Clerk user, and logs it.
  • Create consent storage in Clerk publicMetadata with a React preferences component.

Good to know

  • Examples assume a database client with a user model and a Next.js App Router project.
  • The error table suggests queuing large exports and batching bulk deletions to avoid Clerk rate limits.
  • A failed deletion can leave partial data removed, so the source recommends logging completed steps and retrying.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/clerk-data-handling/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditBash(npm:*)Grep

Alternatives to clerk-data-handling

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

clerk-data-handling: common questions

Does this skill delete a user from Clerk as well as the app database?

Yes. The deletion example removes application data first, then calls the Clerk API to delete the user, and records each step in an audit log.

Where does this skill store user consent choices?

The source stores consent records in Clerk publicMetadata under a consent field, along with an updatedAt timestamp.

Is this skill legal advice for GDPR or CCPA compliance?

The source does not say this. It lists understanding of GDPR and CCPA requirements as a prerequisite and links to a GDPR checklist.

How do I install clerk-data-handling?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clerk-data-handling free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is clerk-data-handling safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to clerk-data-handling?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

clerk-data-handling Install

Add to stack

Loading.