better-auth-add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Type of issue to debug (runtime, test, build, memory, performance)
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/bun-debugContext preview
What this command does when you run it.
Type of issue to debug (runtime, test, build, memory, performance)
name: bun:debug
description: Debug Bun applications and diagnose common issues
arguments:
- name: issue
description: Type of issue to debug (runtime, test, build, memory, performance)
required: falseDiagnose and resolve common issues in Bun applications.
Check for: 1. **Module resolution** - `bun --print-resolved` 2. **Environment variables** - Missing or incorrect env vars 3. **Type errors** - TypeScript configuration issues 4. **Import errors** - Incorrect import paths or missing exports
Commands:
# Check module resolution bun --print-resolved src/index.ts # Verbose output bun --verbose run src/index.ts # Check environment bun --print env
Common problems: 1. **Tests not found** - Check file naming (*.test.ts) 2. **Mock not working** - Verify mock.module syntax 3. **Timeout** - Increase timeout in bunfig.toml 4. **Coverage not generating** - Add --coverage flag
Diagnostic commands:
# Run with verbose output bun test --verbose # Show test discovery bun test --list # Check timeout issues bun test --timeout 30000
Check for: 1. **Entry point** - Verify entrypoints array 2. **External packages** - Check external configuration 3. **Loaders** - Ensure correct loader for file types 4. **Output format** - Verify target and format settings
Debug build:
const result = await Bun.build({
entrypoints: ["./src/index.ts"],
outdir: "./dist",
});
if (!result.success) {
console.error("Build failed:");
for (const log of result.logs) {
console.error(log);
}
}Commands:
# Run with memory stats bun --smol run src/index.ts # Check memory usage bun --print-memory run src/index.ts
Common causes:
Profile with:
# CPU profile bun --cpu-prof run src/index.ts # Heap snapshot bun --heap-prof run src/index.ts
Common causes:
Run these commands to gather information:
# Bun version bun --version # System info bun --print-config # Check dependencies bun pm ls # Verify lockfile bun pm hash # Check for outdated packages bun outdated
| Error | Cause | Solution | |-------|-------|----------| | `Cannot find module` | Wrong import path | Check relative paths | | `SyntaxError` | Invalid syntax | Check TypeScript config | | `ENOENT` | File not found | Verify file exists | | `EADDRINUSE` | Port in use | Kill process or change port | | `Segmentation fault` | Native addon issue | Rebuild native modules |
1. [ ] Check Bun version is latest 2. [ ] Verify bunfig.toml settings 3. [ ] Check package.json scripts 4. [ ] Validate TypeScript configuration 5. [ ] Test with minimal reproduction 6. [ ] Check for known issues on GitHub
If issue persists: 1. Create minimal reproduction 2. Check Bun GitHub issues 3. Check Bun Discord 4. Include Bun version and OS info
After diagnosis: 1. Identified issue category 2. Specific problem found 3. Recommended fix 4. Commands to verify fix worked
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