better-auth-add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Target platform (docker, cloudflare, vercel, fly, railway)
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/bun-deployContext preview
What this command does when you run it.
Target platform (docker, cloudflare, vercel, fly, railway)
name: bun:deploy
description: Deploy Bun applications to various platforms
arguments:
- name: platform
description: Target platform (docker, cloudflare, vercel, fly, railway)
required: falseDeploy Bun applications to production environments.
Create optimized Dockerfile:
FROM oven/bun:1 AS builder WORKDIR /app COPY package.json bun.lockb ./ RUN bun install --frozen-lockfile COPY . . RUN bun run build FROM oven/bun:1-slim WORKDIR /app COPY --from=builder /app/dist ./dist COPY --from=builder /app/node_modules ./node_modules COPY package.json ./ USER bun EXPOSE 3000 CMD ["bun", "run", "dist/index.js"]
Commands:
docker build -t myapp . docker run -p 3000:3000 myapp
Update wrangler.toml:
name = "my-worker" main = "src/index.ts" compatibility_date = "2024-01-01"
Deploy:
bun run build bunx wrangler deploy
Add vercel.json:
{
"buildCommand": "bun run build",
"installCommand": "bun install",
"framework": null
}Deploy:
bunx vercel
Create fly.toml:
app = "my-app" primary_region = "ord" [build] dockerfile = "Dockerfile" [http_service] internal_port = 3000 force_https = true [[services.ports]] handlers = ["http"] port = 80 [[services.ports]] handlers = ["tls", "http"] port = 443
Deploy:
fly deploy
Railway auto-detects Bun projects. Add:
{
"scripts": {
"start": "bun run src/index.ts"
}
}Deploy via Railway CLI or GitHub integration.
1. [ ] **Build passes** - `bun run build` 2. [ ] **Tests pass** - `bun test` 3. [ ] **Environment variables** - All secrets configured 4. [ ] **Health check** - `/health` endpoint exists 5. [ ] **Logging** - Structured logging configured 6. [ ] **Error handling** - Global error handlers 7. [ ] **Security headers** - CORS, CSP configured 8. [ ] **Database migrations** - Applied if needed
# Generate .env.example from .env grep -v '^#' .env | sed 's/=.*/=/' > .env.example # Required variables DATABASE_URL= API_SECRET= NODE_ENV=production
app.get("/health", (c) => {
return c.json({
status: "ok",
timestamp: new Date().toISOString(),
version: process.env.VERSION || "unknown",
});
});function log(level: string, message: string, data?: object) {
console.log(JSON.stringify({
level,
message,
timestamp: new Date().toISOString(),
...data,
}));
}Add basic metrics:
let requestCount = 0;
let errorCount = 0;
app.use("*", async (c, next) => {
requestCount++;
try {
await next();
} catch (err) {
errorCount++;
throw err;
}
});
app.get("/metrics", (c) => {
return c.json({
requests: requestCount,
errors: errorCount,
uptime: process.uptime(),
});
});If platform not specified:
Additional questions:
1. Verify platform requirements 2. Create necessary config files 3. Set environment variables 4. Run deployment command 5. Verify health check 6. Test production endpoints
After deployment: 1. Deployment URL 2. Environment details 3. Monitoring commands 4. Rollback instructions
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