Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Expert patterns for Clerk auth implementation, middleware, organizations, webhooks, and user sync Use when: adding authentication, clerk auth, user authentication, sign in, sign up.
.claude/skills/davila7-clerk-auth/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -45% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -80% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -33% | 0% |
Complete Clerk setup for Next.js 14/15 App Router.
Includes ClerkProvider, environment variables, and basic sign-in/sign-up components.
Key components:
Protect routes using clerkMiddleware and createRouteMatcher.
Best practices:
Access auth state in Server Components using auth() and currentUser().
Key functions:
| Issue | Severity | Solution | |-------|----------|----------| | Issue | critical | See docs | | Issue | high | See docs | | Issue | high | See docs | | Issue | high | See docs | | Issue | medium | See docs | | Issue | medium | See docs | | Issue | medium | See docs | | Issue | medium | See docs |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-16 | pass→pass | 8,941 | 4,594 | -49% | 1 | 1 | 0% | 1,695 | 1,064 | -37% | 0 | 0 | — |
case-21 | pass→pass | 15,976 | 11,479 | -28% | 1 | 1 | 0% | 3,120 | 2,552 | -18% | 0 | 0 | — |
case-01 | fail→pass | 12,144 | 7,834 | -35% | 1 | 1 | 0% | 2,283 | 1,698 | -26% | 0 | 0 | — |
case-02 | fail→pass | 15,887 | 12,497 | -21% | 1 | 1 | 0% | 2,963 | 2,650 | -11% | 0 | 0 | — |
case-03 | fail→pass | 12,133 | 5,009 | -59% | 1 | 1 | 0% | 2,308 | 1,280 | -45% | 0 | 0 | — |
case-04 | pass→pass | 10,696 | 7,702 | -28% | 1 | 1 | 0% | 2,227 | 1,773 | -20% | 0 | 0 | — |
case-05 | fail→pass | 25,096 | 5,069 | -80% | 1 | 1 | 0% | 5,625 | 1,127 | -80% | 0 | 0 | — |
case-06 | pass→pass | 18,032 | 3,561 | -80% | 1 | 1 | 0% | 2,633 | 901 | -66% | 0 | 0 | — |
case-07 | pass→pass | 7,448 | 3,530 | -53% | 1 | 1 | 0% | 1,316 | 902 | -31% | 0 | 0 | — |
case-08 | pass→pass | 5,227 | 4,099 | -22% | 1 | 1 | 0% | 814 | 915 | +12% | 0 | 0 | — |
case-09 | pass→pass | 9,215 | 3,868 | -58% | 1 | 1 | 0% | 1,648 | 929 | -44% | 0 | 0 | — |
case-10 | pass→pass | 10,932 | 6,286 | -42% | 1 | 1 | 0% | 1,798 | 1,410 | -22% | 0 | 0 | — |
case-11 | pass→pass | 12,326 | 3,575 | -71% | 1 | 1 | 0% | 2,068 | 939 | -55% | 0 | 0 | — |
case-12 | pass→pass | 8,392 | 4,221 | -50% | 1 | 1 | 0% | 1,441 | 996 | -31% | 0 | 0 | — |
case-13 | fail→pass | 15,318 | 9,598 | -37% | 1 | 1 | 0% | 2,559 | 1,714 | -33% | 0 | 0 | — |
case-14 | pass→pass | 6,989 | 3,354 | -52% | 1 | 1 | 0% | 1,316 | 853 | -35% | 0 | 0 | — |
case-15 | pass→pass | 15,926 | 10,349 | -35% | 1 | 1 | 0% | 2,696 | 2,119 | -21% | 0 | 0 | — |
case-17 | pass→pass | 7,788 | 5,630 | -28% | 1 | 1 | 0% | 1,441 | 1,367 | -5% | 0 | 0 | — |
case-18 | pass→pass | 17,459 | 9,606 | -45% | 1 | 1 | 0% | 2,607 | 1,957 | -25% | 0 | 0 | — |
case-19 | fail→pass | 14,609 | 8,605 | -41% | 1 | 1 | 0% | 2,693 | 1,874 | -30% | 0 | 0 | — |
case-20 | pass→pass | 12,332 | 10,967 | -11% | 1 | 1 | 0% | 2,215 | 2,347 | +6% | 0 | 0 | — |
case-22 | pass→pass | 4,996 | 4,234 | -15% | 1 | 1 | 0% | 878 | 1,031 | +17% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +27 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.