better-auth-add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Guided Cloudflare Workers deployment with environment selection, pre-deploy validation, and safety checks. Supports staging, production, and custom environments.
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/workers-deployContext preview
What this command does when you run it.
Guided Cloudflare Workers deployment with environment selection, pre-deploy validation, and safety checks. Supports staging, production, and custom environments.
name: cloudflare-workers:deploy description: Guided Cloudflare Workers deployment with environment selection, pre-deploy validation, and safety checks. Supports staging, production, and custom environments. allowed-tools: - Read - Bash - AskUserQuestion - Grep argument-hint: "--env <environment> (optional: prod, staging, dev)"
Safe, guided deployment workflow for Cloudflare Workers with environment management and pre-deploy validation.
Read and analyze the project configuration:
1. **Check for wrangler config**:
2. **Parse environments**:
3. **Check current git status**:
git status --porcelain
4. **Check if wrangler is installed**:
bunx wrangler --version
**If --env argument provided**:
**If no --env argument**: Use AskUserQuestion to select environment:
**Question**: "Which environment do you want to deploy to?"
Ask user about pre-deploy checks:
**Question**: "Run pre-deploy validations?"
**Based on selection, run**:
**Tests** (if package.json has test script):
npm run test || bun test
**Type checking** (if TypeScript project):
bunx tsc --noEmit
**Build** (if build script exists):
npm run build || bun run build
**Error Handling**: Abort on first failure. Provide clear error messages.
**For production environment**: Show detailed confirmation with risk warning:
⚠️ PRODUCTION DEPLOYMENT Target: production Worker: [worker-name] Routes: [route1, route2] Bindings: [D1, KV, R2, etc.] Changes will be LIVE immediately after deployment. Pre-deploy checks: ✅ Tests passed ✅ Types valid ✅ Build successful Continue with production deployment?
Ask for explicit confirmation: "Type 'yes' to confirm production deployment"
**For non-production**: Simpler confirmation:
Deploying to: [environment] Worker: [worker-name] Continue?
Execute wrangler deploy command:
bunx wrangler deploy --env [environment]
**Capture output**:
**Monitor deployment**:
After successful deployment:
1. **Extract deployment URL** from wrangler output
2. **Verify worker is responding**:
curl -I [deployment-url]
3. **Check logs** (optional):
bunx wrangler tail --env [environment] --once
Generate deployment summary:
✅ Deployment Successful! **Environment**: [environment] **Worker**: [worker-name] **URL**: [deployment-url] **Version**: [git-commit-hash or timestamp] **Deployment Details**: - Routes: [routes] - Bindings: [bindings] - Environment Vars: [count] configured **Verification**: ✅ Worker responding (HTTP 200) ✅ No immediate errors in logs **Next Steps**: 1. Monitor logs: `wrangler tail --env [environment]` 2. Test functionality: [deployment-url] 3. Check metrics: Cloudflare Dashboard **Rollback**: If issues arise, rollback with: `wrangler rollback --env [environment]` **Resources**: - Cloudflare Dashboard: https://dash.cloudflare.com/ - Deployment Docs: https://developers.cloudflare.com/workers/configuration/versions-and-deployments/
Before allowing production deploy, verify:
If deployment fails:
1. **Capture exact error message** 2. **Check common issues**:
3. **Provide fix guidance** 4. **Suggest rollback if partial deploy**
If deployment uses secrets:
**Warn if secrets not set**:
⚠️ This worker uses environment secrets. Ensure secrets are configured: `wrangler secret put SECRET_NAME --env [environment]` Known secrets from code: - API_KEY - DATABASE_URL - AUTH_SECRET Continue anyway?
**Abort deployment if**:
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