clerk-incident-runbook
Skill by jeremylongshore
Guides incident response for Clerk authentication problems. It covers triage, an emergency auth bypass, key rotation, session recovery and post-incident review. It is aimed at teams running Clerk auth in production.
Install clerk-incident-runbook
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-incident-runbook ~/.claude/skills/clerk-incident-runbookRun 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-incident-runbook ~/.gemini/antigravity-cli/skills/clerk-incident-runbookAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clerk-incident-runbook in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a runbook for handling Clerk authentication incidents in production. It walks through six steps: triage by incident category, an emergency auth bypass for Clerk outages, key rotation for a compromised secret key, session recovery after a mass logout, webhook replay for missed events, and a post-incident review template.
The skill includes a bash triage script that checks the Clerk status page, tests API connectivity and calls a local health endpoint. It also includes a Next.js middleware example that is switched on with the CLERK_EMERGENCY_BYPASS environment variable, and an admin API route that revokes active sessions. The examples use Vercel CLI commands. It is intended for on-call engineers and teams that run Clerk auth in production.
Written from the project's SKILL.md and checked against it.
What it can do
- Incident triageClassifies Clerk incidents into categories with symptoms and severity, and provides a triage script.
- Emergency auth bypassMiddleware example that allows all requests when the bypass environment variable is set to true.
- Key rotationOutlines steps to generate a new Clerk secret key and update environments after a compromise.
- Session recoveryAdmin route example that revokes active sessions for all users to force re-authentication.
- Webhook replayExplains how to retry failed Clerk webhook messages from the Dashboard and check for missing user records.
- Post-incident reviewProvides a markdown template for incident timelines, root cause, impact and action items.
What you need
- Access to the Clerk Dashboard
- Access to application logs and monitoring
- An emergency contact list for the on-call team
- Documented rollback procedures
Try asking
- Triage a Clerk outage and tell me the incident category
- Show me how to activate the Clerk emergency auth bypass
- Draft a post-incident review for our Clerk auth outage
Good to know
- The emergency bypass allows all requests while active, so it is meant for Clerk outages only.
- The key rotation script prints manual steps and its Vercel commands are commented out.
- Webhook replay is done by hand from the Clerk Dashboard.
- Examples assume Vercel for deployment and environment variables.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/clerk-incident-runbook/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(npm:*)Bash(curl:*)Grep
Alternatives to clerk-incident-runbook
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
clerk-incident-runbook: common questions
Does this skill rotate Clerk keys automatically?
No. The rotation script prints manual steps, and the Vercel commands in it are commented out. The new secret key is generated in the Clerk Dashboard.
What does the emergency bypass do?
When CLERK_EMERGENCY_BYPASS is set to true, the middleware allows all requests and adds an X-Auth-Bypass header. The source says it should be used only when Clerk is down.
Which hosting platform do the examples use?
The bypass and key rotation examples use Vercel CLI commands to set environment variables and deploy.
How do I install clerk-incident-runbook?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clerk-incident-runbook free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clerk-incident-runbook 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-incident-runbook?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
