better-auth-add-plugin
CommandAdd a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Explain Better Auth error codes and provide solutions with code examples
$ npx -y skills add secondsky/claude-skills --agent claude-code
description: Explain Better Auth error codes and provide solutions with code examples argument-hint: [error_code or error_message]
Provide a comprehensive explanation of the given Better Auth error code or error message.
1. **Accept the error** from arguments (error code or full error message) 2. **Check error catalog** first:
3. **Explain in plain English** what the error means 4. **List common causes** specific to the error 5. **Provide solutions**:
6. **Generate error handling code** showing:
7. **Mention related errors** the developer should be aware of 8. **Link to documentation**:
If no specific error provided, list top 5 most common errors:
1. **d1Adapter is not exported** - Use drizzleAdapter instead 2. **Schema generation fails** - Use Drizzle Kit, not better-auth migrate 3. **CamelCase vs snake_case mismatch** - Column naming issues 4. **CORS errors** - Missing credentials or origin configuration 5. **OAuth redirect URI mismatch** - Callback URL configuration
**Database Errors:**
**Authentication Errors:**
**OAuth Errors:**
**CORS/Security Errors:**
User: /better-auth:explain-error "SESSION_NOT_FOUND" Response: Error: SESSION_NOT_FOUND What it means: The session token provided is not found in the database or has expired. Common causes: 1. Session expired (default: 7 days) 2. Session manually deleted 3. Database connection issue 4. Cookie not sent with request Solutions: [Detailed solutions with code examples] Error handling code: [Production-ready code example]
When the error is documented in `references/error-catalog.md`, reference it:
145 production-ready skills for Claude Code CLI 🔌 Platform / Harness Support These plugins ship as Claude Code marketplace plugins (.claude-plugin/ manifests) and Codex CLI plugins (.codex-plugin/ manifests).
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Interactive setup wizard for better-auth authentication. Guides through database, framework, OAuth providers, and plugin…
Display Better Auth available authentication providers and their configuration
Type of issue to debug (runtime, test, build, memory, performance)
Target platform (docker, cloudflare, vercel, fly, railway)
Template to use (hono, next, nuxt, sveltekit, tanstack, basic)
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.