better-auth-add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Helper for setting up OAuth environment variables on Cloudflare dashboard and other platforms
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/studio-env-setupContext preview
What this command does when you run it.
Helper for setting up OAuth environment variables on Cloudflare dashboard and other platforms
name: nuxt-studio:env-setup description: Helper for setting up OAuth environment variables on Cloudflare dashboard and other platforms argument-hint: No arguments required - interactive environment variable setup guide allowed-tools: [Read, AskUserQuestion]
Guide users through setting environment variables for OAuth secrets on deployment platforms, with focus on security best practices.
Check if .env.local exists and read current OAuth configuration:
# Read .env.local to see what's configured locally
Identify configured providers:
If no providers configured:
⚠️ No OAuth providers configured locally. Run /nuxt-studio:configure-studio-auth first to set up OAuth. This command helps you transfer those credentials to your deployment platform securely.
Stop and wait for OAuth configuration.
Ask user:
**Question**: "Where are you deploying Studio?"
Based on chosen platform, provide detailed instructions:
Setting Environment Variables on Cloudflare Pages: 1. Open Cloudflare Dashboard: https://dash.cloudflare.com 2. Navigate to: Workers & Pages → [Your Project Name] → Settings → Environment variables 3. Click "Add variable" for each of these: FOR PRODUCTION ENVIRONMENT:
For each configured provider, list the variables:
**If GitHub configured:**
Variable Name: NUXT_OAUTH_GITHUB_CLIENT_ID Value: [your GitHub Client ID] Environment: ✓ Production Variable Name: NUXT_OAUTH_GITHUB_CLIENT_SECRET Value: [your GitHub Client Secret] Environment: ✓ Production
**If GitLab configured:**
Variable Name: NUXT_OAUTH_GITLAB_CLIENT_ID Value: [your GitLab Application ID] Environment: ✓ Production Variable Name: NUXT_OAUTH_GITLAB_CLIENT_SECRET Value: [your GitLab Secret] Environment: ✓ Production (If self-hosted GitLab) Variable Name: NUXT_OAUTH_GITLAB_SERVER_URL Value: https://gitlab.yourcompany.com Environment: ✓ Production
**If Google configured:**
Variable Name: NUXT_OAUTH_GOOGLE_CLIENT_ID Value: [your Google Client ID] Environment: ✓ Production Variable Name: NUXT_OAUTH_GOOGLE_CLIENT_SECRET Value: [your Google Client Secret] Environment: ✓ Production
**Always add:**
Variable Name: NUXT_PUBLIC_STUDIO_URL Value: https://studio.yourdomain.com Environment: ✓ Production
Continue instructions:
4. Click "Save" after adding all variables 5. FOR PREVIEW ENVIRONMENT (optional but recommended): - Repeat steps above - Select ✓ Preview environment instead - Use different OAuth app credentials for preview - Use preview URL for NUXT_PUBLIC_STUDIO_URL 6. Redeploy to apply variables: - Go to "Deployments" tab - Click "Retry deployment" on latest deployment - Wait for deployment to complete 7. Verify variables are loaded: - Check deployment logs for any OAuth errors - Test authentication after deployment
Setting Secrets on Cloudflare Workers: Use wrangler CLI to set secrets securely: 1. Ensure you're logged in: wrangler whoami 2. Set OAuth secrets (one at a time):
For each configured provider, provide wrangler commands:
**If GitHub configured:**
wrangler secret put NUXT_OAUTH_GITHUB_CLIENT_ID (Paste your GitHub Client ID when prompted) wrangler secret put NUXT_OAUTH_GITHUB_CLIENT_SECRET (Paste your GitHub Client Secret when prompted)
**If GitLab configured:**
wrangler secret put NUXT_OAUTH_GITLAB_CLIENT_ID (Paste your GitLab Application ID when prompted) wrangler secret put NUXT_OAUTH_GITLAB_CLIENT_SECRET (Paste your GitLab Secret when prompted) (If self-hosted GitLab) wrangler secret put NUXT_OAUTH_GITLAB_SERVER_URL (Paste your GitLab server URL when prompted)
**If Google configured:**
wrangler secret put NUXT_OAUTH_GOOGLE_CLIENT_ID (Paste your Google Client ID when prompted) wrangler secret put NUXT_OAUTH_GOOGLE_CLIENT_SECRET (Paste your Google Client Secret when prompted)
Continue instructions:
3. Set public variables in wrangler.toml: Edit wrangler.toml and add: [vars] NUXT_PUBLIC_STUDIO_URL = "https://studio.yourdomain.com" 4. Deploy with updated secrets: wrangler deploy 5. Verify secrets are set: wrangler secret list IMPORTANT: - Secrets are encrypted and never shown again - wrangler.toml can be committed to Git (no secrets there) - Use wrangler secret for sensitive values only
Setting Environment Variables on Vercel: 1. Open Vercel Dashboard: https://vercel.com/dashboard 2. Navigate to: Your Project → Settings → Environment Variables 3. Add these variables: FOR PRODUCTION:
List variables for each configured provider (similar to Cloudflare Pages format).
4. Select environment for each: - ✓ Production - ✓ Preview (optional) - Development (optional, for vercel dev) 5. Click "Save" after adding all variables 6. Redeploy: - Go to "Deployments" tab - Click "..." on latest deployment - Click "Redeploy" 7. Verify: - Check deployment logs - Test OAuth authentication
Setting Environment Variables on Netlify: 1. Open Netlify Dashboard: https://app.netlify.com 2. Navigate to: Your Site → Site settings → Environment variables 3. Click "Add a variable" for each:
List var
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).
Repo: secondsky/claude-skills
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 configuration.
Explain Better Auth error codes and provide solutions with code examples
Display Better Auth available authentication providers and their configuration