better-auth-add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Consult Google Gemini 3 Pro for second opinion with web research, extended thinking, and grounding. Use when need latest docs, architectural decisions, or security verification.
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/consult-geminiContext preview
What this command does when you run it.
Consult Google Gemini 3 Pro for second opinion with web research, extended thinking, and grounding. Use when need latest docs, architectural decisions, or security verification.
name: multi-ai-consultant:consult-gemini description: Consult Google Gemini 3 Pro for second opinion with web research, extended thinking, and grounding. Use when need latest docs, architectural decisions, or security verification. allowed-tools: - Bash - Read
You are being asked to consult Google Gemini 3 Pro for a second opinion on a coding problem or architectural decision.
1. **Pre-flight Check**: Verify Gemini CLI is working 2. **Gather Context**: Determine what context to send (bug vs architecture) 3. **Build Prompt**: Create a clear, specific question with context 4. **Execute Consultation**: Call Gemini with locked configuration 5. **Parse Response**: Extract the analysis from JSON output 6. **Synthesize**: Compare Gemini's analysis with your own reasoning 7. **Present**: Show 5-part synthesis to user 8. **Log Cost**: Track tokens and cost
---
# Test if Gemini CLI is working if ! gemini -p "test" &>/dev/null 2>&1; then echo "❌ Gemini CLI not working" echo "" echo "Possible issues:" echo "1. Gemini CLI not installed: npm install -g @google/generative-ai-cli" echo "2. API key not set: export GEMINI_API_KEY='your-key-here'" echo "3. API key invalid: Check https://aistudio.google.com/apikey" echo "" echo "After fixing, try the consultation again." exit 1 fi
If pre-flight check fails, stop here and show the error message to the user.
---
**For bug/error problems**:
**For architecture decisions**:
**For general questions**:
**Context size guidance**:
---
The prompt must include: 1. **Problem statement**: What's wrong or what decision is needed 2. **Question**: Specific question for Gemini 3. **Your analysis**: What you've tried or considered 4. **Context**: File paths using `@<path>` syntax
**Format**:
Problem: [Brief description] Question: [Specific question] I've tried: [Your attempts] Current status: [What's happening now] Context: @path/to/file1.ts @path/to/file2.ts
---
**Locked Configuration** (always use these flags):
gemini -m gemini-3-pro \ --thinking \ --google-search \ --grounding \ --output-format json
**Full command pattern**:
PROMPT=$(cat <<'EOF' [Your formatted prompt here] EOF ) RESPONSE=$(echo "$PROMPT" | gemini \ -m gemini-3-pro \ --thinking \ --google-search \ --grounding \ --output-format json 2>/dev/null) EXIT_CODE=$? if [ $EXIT_CODE -ne 0 ]; then echo "❌ Gemini API call failed (exit code: $EXIT_CODE)" echo "Check your API key and internet connection" exit 1 fi
---
# Extract the analysis text ANALYSIS=$(echo "$RESPONSE" | jq -r '.response.text') # Extract token counts for cost tracking INPUT_TOKENS=$(echo "$RESPONSE" | jq -r '.stats.inputTokens') OUTPUT_TOKENS=$(echo "$RESPONSE" | jq -r '.stats.outputTokens') # Check if parsing succeeded if [ -z "$ANALYSIS" ] || [ "$ANALYSIS" == "null" ]; then echo "❌ Failed to parse Gemini response" echo "Raw response:" echo "$RESPONSE" exit 1 fi
---
You MUST compare Gemini's analysis with your own reasoning. DO NOT just parrot Gemini's response.
**Required sections**:
**End with**: "Should I proceed with this approach?"
---
# Calculate cost (Gemini 3 Pro pricing) # Input: $0.000015/token, Output: $0.00006/token (example rates, verify current) COST=$(echo "scale=4; ($INPUT_TOKENS * 0.000015) + ($OUTPUT_TOKENS * 0.00006)" | bc) # Create log directory if needed mkdir -p ~/.claude/ai-consultations # Log consultation echo "$(date -Iseconds),gemini,gemini-3-pro,$INPUT_TOKENS,$OUTPUT_TOKENS,$COST,$(pwd)" \ >> ~/.claude/ai-consultations/consultations.log # Show cost to user echo "" echo "---" echo "Cost: \$$COST ($INPUT_TOKENS input + $OUTPUT_TOKENS output tokens)" echo "Consultation logged: ~/.claude/ai-consultations/consultations.log"
---
**Always respect**:
**Never send**:
**If user has sensitive files in context**: Warn before sending and ask permission.
---
**Common errors**: 1. **API key invalid**: Show how to set `GEMINI_API_KEY` 2. **Context too large**: Suggest narrowing context 3. **JSON parsing fails**: Fall back to plain text output 4. **Rate limit**: Suggest waiting 60 seconds 5. **Network error**: Check in
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