clerk-rate-limits
Skill by jeremylongshore
Explains Clerk rate limits and quotas and shows how to handle 429 responses in a Clerk integration. Covers retry logic, batching, caching and monitoring for teams using the Clerk Backend API.
Install clerk-rate-limits
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-rate-limits ~/.claude/skills/clerk-rate-limitsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clerk-rate-limits ~/.gemini/antigravity-cli/skills/clerk-rate-limitsAntigravity 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 agent skill explains how Clerk's Backend API rate limits work. It lists the per-API-key limits for the Free, Pro and Enterprise plans and the headers Clerk returns on each response, including X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. It then provides TypeScript patterns for handling those limits. The patterns include retrying 429 responses with retry-after or exponential backoff, fetching users in batches with pauses, paginating user lists, caching user lookups in memory or Redis, and logging warnings when the remaining request count is low.
The skill is written for developers who use the Clerk Backend API and are hitting rate limits, want to reduce API usage, or are planning for high-traffic scenarios. It assumes a Clerk account with API access, an understanding of the application's traffic, and monitoring or logging infrastructure. It also points to a follow-up skill, clerk-security-basics, for security practices.
Written from the project's SKILL.md and checked against it.
What it can do
- Rate limit referenceLists Clerk Backend API limits per plan and the X-RateLimit response headers.
- Retry with backoffRetries 429 responses using the retry-after header or exponential backoff.
- Batched user lookupsFetches users in fixed-size batches with pauses between batches.
- Paginated user listingLists all users page by page using limit and offset instead of one large request.
- User cachingCaches user lookups in memory with a one minute TTL, with a Redis option for production.
- Cache invalidationRemoves cached users when a user.updated webhook event is received.
- Rate limit monitoringLogs a warning when remaining requests drop below 10 percent of the limit.
- Quick rate limit checkProvides a curl command that prints the X-RateLimit headers for the current key.
What you need
- Clerk account with API access
- CLERK_SECRET_KEY environment variable
- @clerk/backend package
- Redis, such as Upstash, for the production cache option
- Monitoring or logging infrastructure
Try asking
- Add retry with backoff to my Clerk getUser calls for 429 responses
- Batch my Clerk user lookups so I stay under the rate limit
- Cache Clerk user lookups and invalidate them on user.updated webhooks
Good to know
- Backend API rate limits apply per API key.
- Free plan allows 20 requests per 10 seconds with a burst of 40.
- Pro plan allows 100 requests per 10 seconds with a burst of 200.
- Enterprise limits are custom.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/clerk-rate-limits/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditGrep
-
SKILL.md6 KB -
references/implementation-guide.md5 KB
Alternatives to clerk-rate-limits
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
clerk-rate-limits: common questions
What are Clerk's API rate limits?
Clerk Backend API limits are set per API key. The source lists 20 requests per 10 seconds for Free, 100 for Pro, and custom limits for Enterprise.
How should I handle a 429 error from Clerk?
The skill suggests retrying with backoff, using the retry-after header when present, and adding caching to reduce request volume.
What does the quota_exceeded error mean?
According to the source, it means the monthly MRU quota has been reached. The suggested fixes are upgrading the plan or reducing retained users.
How do I install clerk-rate-limits?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clerk-rate-limits free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clerk-rate-limits safe to use?
It scores 79 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-rate-limits?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
