better-auth-add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Interactive first-time setup wizard for Nuxt Studio integration with Nuxt Content sites
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/setup-studioContext preview
What this command does when you run it.
Interactive first-time setup wizard for Nuxt Studio integration with Nuxt Content sites
name: nuxt-studio:setup description: Interactive first-time setup wizard for Nuxt Studio integration with Nuxt Content sites argument-hint: No arguments required - interactive wizard allowed-tools: [Read, Write, Edit, Bash, AskUserQuestion]
Guide the user through first-time Nuxt Studio setup with an interactive approach.
Run the prerequisites checker script:
bash $CLAUDE_PLUGIN_ROOT/skills/nuxt-studio/scripts/check-prerequisites.sh
If prerequisites fail:
If prerequisites pass, proceed to step 2.
Use the AskUserQuestion tool to ask the user:
**Question 1**: "Which OAuth provider do you want to use for Studio authentication?"
**Question 2**: "Where will you deploy Studio?"
**Question 3**: "What subdomain do you want for Studio?"
Check if nuxt-studio is already installed:
grep "nuxt-studio" package.json
If not installed, install it:
npx nuxi module add nuxt-studio@beta
Confirm installation succeeded.
Read the current nuxt.config.ts:
# Read tool
Check if Studio module is in modules array. If not, add it.
Ensure modules array has correct order:
modules: [ '@nuxt/content', // Must be first 'nuxt-studio' ]
Add recommended configuration based on user's deployment choice:
For **Cloudflare Pages/Workers**:
nitro: {
preset: 'cloudflare-pages' // or 'cloudflare' for Workers
}For **Vercel**:
nitro: {
preset: 'vercel'
}For **Netlify**:
nitro: {
preset: 'netlify'
}Add content configuration:
content: {
experimental: {
clientDB: true // For MDC components
}
}Add runtime config for OAuth (placeholders):
runtimeConfig: {
oauth: {
github: { // Or gitlab/google based on choice
clientId: process.env.NUXT_OAUTH_GITHUB_CLIENT_ID,
clientSecret: process.env.NUXT_OAUTH_GITHUB_CLIENT_SECRET
}
},
public: {
studioUrl: process.env.NUXT_PUBLIC_STUDIO_URL || 'http://localhost:3000'
}
}Use Edit tool to update nuxt.config.ts.
Create .env.local file with placeholders:
# Nuxt Studio OAuth Configuration # Replace with your actual credentials # OAuth Provider: [CHOSEN_PROVIDER] NUXT_OAUTH_[PROVIDER]_CLIENT_ID=your_client_id_here NUXT_OAUTH_[PROVIDER]_CLIENT_SECRET=your_client_secret_here # For self-hosted GitLab only (if GitLab chosen) # NUXT_OAUTH_GITLAB_SERVER_URL=https://gitlab.yourcompany.com # Studio URL NUXT_PUBLIC_STUDIO_URL=http://localhost:3000 # For production, set to: # NUXT_PUBLIC_STUDIO_URL=https://[subdomain].yourdomain.com
Replace [CHOSEN_PROVIDER] and [subdomain] with user's choices.
Check if .gitignore exists and contains .env:
grep "^\.env" .gitignore
If not, add it:
echo "" >> .gitignore echo "# Environment variables" >> .gitignore echo ".env" >> .gitignore echo ".env.local" >> .gitignore echo ".env.*.local" >> .gitignore
Check if content/ directory exists:
ls -d content
If not, create it with a sample file:
mkdir -p content
cat > content/index.md << 'EOF'
---
title: Welcome to Studio
description: Your first content file
---
# Welcome to Nuxt Studio!
Edit this file in Studio to get started.
::alert{type="info"}
You can use MDC components in your content.
::
EOFPresent a summary to the user:
✓ Setup Complete! Configuration Summary: - OAuth Provider: [chosen provider] - Deployment: [chosen platform] - Subdomain: [chosen subdomain].yourdomain.com Next Steps: 1. Configure OAuth Provider: Run: /nuxt-studio:configure-studio-auth This will guide you through creating OAuth app and setting credentials. 2. Start Development Server: Run: npm run dev Visit: http://localhost:3000/_studio 3. Deploy to [Platform]: Run: /nuxt-studio:deploy-studio-cloudflare (or follow your platform's deployment guide) Files Modified: - nuxt.config.ts (Studio configuration added) - .env.local (OAuth template created) - .gitignore (environment files added) - package.json (nuxt-studio@beta installed) For help: Load references/troubleshooting.md
Ask the user:
"Would you like me to help you configure OAuth authentication now?"
If yes, automatically run `/nuxt-studio:configure-studio-auth`
If no, remind them they can run it later.
If any step fails: 1. Show clear error message 2. Suggest solution 3. Ask if user wa
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