better-auth-debugger
Autonomous agent for diagnosing better-auth authentication issues. Analyzes configuration, validates OAuth callbacks, tests endpoints, and provides specific…
Autonomous Durable Objects debugger. Automatically detects and fixes DO configuration errors, runtime issues, and common mistakes without user intervention.
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Autonomous Durable Objects debugger. Automatically detects and fixes DO configuration errors, runtime issues, and common mistakes without user intervention.
name: do-debugger description: Autonomous Durable Objects debugger. Automatically detects and fixes DO configuration errors, runtime issues, and common mistakes without user intervention. tools: - Read - Grep - Glob - Bash - Edit - Write
Autonomous agent that detects, diagnoses, and fixes Durable Objects issues automatically. Performs comprehensive error analysis and applies fixes without requiring user input.
This agent should be used when:
**Keywords**: debug, error, fix, broken, not working, failing, deployment failed, migration error, binding error
Scan project for DO-related configuration and code:
# Find wrangler.jsonc find . -name "wrangler.jsonc" -type f # Find DO class files find src -name "*.ts" -type f | xargs grep -l "extends DurableObject"
If wrangler.jsonc not found:
# Check JSON validity (strip comments) grep -v '^\s*//' wrangler.jsonc | jq '.' 2>&1
If JSON invalid:
# Use skill's validation script ./scripts/validate-do-config.sh 2>&1
Parse output for errors and warnings:
Deep analysis of wrangler.jsonc DO configuration:
Read wrangler.jsonc and parse:
grep -v '^\s*//' wrangler.jsonc | jq '{
bindings: .durable_objects.bindings,
migrations: .migrations
}'Extract:
**Error 1: Missing Bindings**
Check if `durable_objects.bindings` exists:
jq '.durable_objects.bindings // empty' wrangler.jsonc
If empty or missing:
"durable_objects": {
"bindings": []
}**Error 2: Missing Migrations**
Check if `migrations` array exists:
jq '.migrations // empty' wrangler.jsonc
If empty or missing:
**Error 3: Binding Without Migration**
For each binding, check if class exists in migrations:
# Get binding class names jq -r '.durable_objects.bindings[]?.class_name' wrangler.jsonc # Get migration class names jq -r '.migrations[]? | .new_sqlite_classes[]?, .new_classes[]?' wrangler.jsonc
Compare lists - if binding class not in migrations:
**Error 4: Duplicate Binding Names**
Check for duplicate binding names:
jq -r '.durable_objects.bindings[]?.name' wrangler.jsonc | sort | uniq -d
If duplicates found:
**Error 5: Invalid Binding Name**
Check binding name format (should be SCREAMING_SNAKE_CASE):
jq -r '.durable_objects.bindings[]?.name' wrangler.jsonc
If not matching `^[A-Z_]+$`:
Analyze DO class implementations:
Search for DO class definitions:
# Find all files with DurableObject classes grep -r "extends DurableObject" src/ --include="*.ts" -l # Extract class names grep -r "export class.*extends DurableObject" src/ --include="*.ts" -o
Extract:
For each class referenced in bindings, verify it's exported:
**Error 6: Class Not Exported**
# Check if class is exported grep "export class MyDO extends DurableObject" src/index.ts
If not found:
export class MyDO extends DurableObject { ... }
// Or re-export from another file:
export { MyDO } from "./MyDO";**Error 7: Class Export in Wrong File**
Check main entry point (from wrangler.jsonc):
# Get main file MAIN_FILE=$(jq -r '.main // "src/index.ts"' wrangler.jsonc) # Check if class exported in main file grep "export.*MyDO" "$MAIN_FILE"
If not found:
Read DO class constructor for common issues:
# Extract constructor code grep -A 30 "constructor(ctx: DurableObjectState" src/MyDO.ts
**Error 8: Missing super() Call**
Check for `super(ctx, env)` in constructor:
// Search for super call grep "super(ctx, env)" src/MyDO.ts
If not found:
constructor(ctx: DurableObjectState, env: Env) {
super(ctx, env); // ← Add this
}**Error 9: Heavy Constructor Work**
Check for common blocking operations in constructor (not in blockConcurrencyWhile):
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
Autonomous agent for diagnosing better-auth authentication issues. Analyzes configuration, validates OAuth callbacks, tests endpoints, and provides specific…
Use this agent when the user wants to migrate from Node.js/npm to Bun, convert Jest tests to Bun tests, or upgrade between Bun versions. Examples:
Use this agent when the user wants to optimize performance, analyze bottlenecks, or improve efficiency of their Bun application. Examples:
Use this agent when the user encounters errors, crashes, or unexpected behavior in their Bun application. Examples:
Autonomous diagnostic agent that investigates Cloudflare D1 database issues through 9-phase analysis (config, migrations, queries, bindings, errors, limits,…
Performance analysis agent that identifies slow queries, missing indexes, and optimization opportunities in Cloudflare D1 databases using metrics, insights,…