better-auth-add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Interactive debugging workflow for Cloudflare Workers. Diagnoses deployment errors, runtime issues, and performance problems with step-by-step fixes.
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/workers-debugContext preview
What this command does when you run it.
Interactive debugging workflow for Cloudflare Workers. Diagnoses deployment errors, runtime issues, and performance problems with step-by-step fixes.
name: cloudflare-workers:debug description: Interactive debugging workflow for Cloudflare Workers. Diagnoses deployment errors, runtime issues, and performance problems with step-by-step fixes. allowed-tools: - Read - Grep - Bash - AskUserQuestion - Glob
Interactive debugging assistant for diagnosing and fixing Cloudflare Workers issues.
Use AskUserQuestion to understand the problem type:
**Question**: "What type of issue are you experiencing?"
Based on category, ask follow-up questions:
**If Deployment Error**:
**If Runtime Error**:
**If Performance Issue**:
**If Build Error**:
**If Binding Error**:
**If Authentication Error**:
Based on error category, read files to diagnose:
**For ALL categories**: 1. Read `wrangler.jsonc` or `wrangler.toml` 2. Check `package.json` for dependencies 3. Look for recent git changes: `git log -5 --oneline`
**For Deployment Errors**: 4. Check `wrangler whoami` output 5. Check routes configuration 6. Look for compatibility flags
**For Runtime Errors**: 4. Read main worker file (`src/index.ts` common location) 5. Check for uncaught exceptions 6. Review error handling patterns
**For Build Errors**: 4. Read `vite.config.ts` or `webpack.config.js` 5. Check `tsconfig.json` for misconfigurations 6. Review recent package.json changes
**For Binding Errors**: 4. Verify binding configuration in wrangler config 5. Check binding usage in worker code 6. Verify binding names match
Analyze findings to determine the issue:
**Common Deployment Errors**:
**Error**: "Authentication required"
**Error**: "Route already exists"
**Error**: "Bundle too large"
**Common Runtime Errors**:
**Error**: "Uncaught TypeError: Cannot read property"
**Error**: "D1_ERROR: no such table"
**Error**: "KV.get is not a function"
**Common Performance Issues**:
**Symptom**: Slow response times (>1s)
**Symptom**: CPU time exceeded
**Common Build Errors**:
**Error**: "Module not found"
**Error**: "TypeScript errors"
Provide specific, actionable fix for the identified issue:
**Format**:
## Root Cause [Explanation of what's causing the issue] ## Fix [Step-by-step instructions] ## Prevention [How to avoid this in the future] ## Related [Links to relevant docs or skills]
**Example**:
## Root Cause
Your Worker is failing because the KV binding name in code (`CACHE`) doesn't match
the binding name in wrangler.jsonc (`MY_KV`).
## Fix
1. Open wrangler.jsonc
2. Change the KV binding name to match your code:
```jsonc
{
"kv_namespaces": [
{ "binding": "CACHE", "id": "xxx" }
]
}3. Redeploy: `bunx wrangler deploy`
Alternatively, update your code to use `MY_KV` instead of `CACHE`.
### Phase 6: Apply Fix (Optional) Ask user if they want help applying the fix: **Question**: "Would you like me to apply this fix?" - Options: - Yes, apply the fix automatically (Recommended) - No, I'll apply it manually - Show me the exact changes first **If "Yes"**: - Use Edit or Write tools to apply fix - Run validation command if applicable - Confirm fix was applied successfully **If "Show changes first"**: - Display exact diff of proposed changes - Ask for confirmati
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