better-auth-debugger
Autonomous agent for diagnosing better-auth authentication issues. Analyzes configuration, validates OAuth callbacks, tests endpoints, and provides specific…
Autonomous Cloudflare Workflows debugger. Automatically detects and fixes workflow 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 Cloudflare Workflows debugger. Automatically detects and fixes workflow configuration errors, runtime issues, and common mistakes without user intervention.
name: workflow-debugger description: Autonomous Cloudflare Workflows debugger. Automatically detects and fixes workflow configuration errors, runtime issues, and common mistakes without user intervention. tools: - Read - Grep - Glob - Bash - Edit - Write
Autonomous agent that detects, diagnoses, and fixes Cloudflare Workflows 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, I/O context, serialization error, NonRetryableError, workflow stuck, execution failed
Scan project for workflow-related configuration and code:
# Find wrangler.jsonc find . -name "wrangler.jsonc" -o -name "wrangler.toml" -type f 2>/dev/null | head -n 1 # Find workflow class files find src -name "*.ts" -type f 2>/dev/null | xargs grep -l "extends WorkflowEntrypoint" 2>/dev/null
If wrangler config 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-workflow-config.sh 2>&1
Parse output for errors and warnings.
---
Deep analysis of wrangler.jsonc workflow configuration:
grep -v '^\s*//' wrangler.jsonc | jq '{
workflows: .workflows,
main: .main,
compatibility_date: .compatibility_date
}'Extract:
**Error 1: Missing Workflows Array**
jq '.workflows // empty' wrangler.jsonc
If empty or missing:
**Error 2: Missing Required Fields**
For each workflow, check required fields:
jq '.workflows[] | select(.binding == null or .name == null or .class_name == null)' wrangler.jsonc
If missing fields found:
**Error 3: Duplicate Workflow Names**
jq -r '.workflows[].name' wrangler.jsonc | sort | uniq -d
If duplicates found:
**Error 4: Invalid Binding Name**
Check binding name format (should be SCREAMING_SNAKE_CASE):
jq -r '.workflows[].binding' wrangler.jsonc
If not matching `^[A-Z_]+$`:
---
Analyze WorkflowEntrypoint class implementations:
# Find all files with WorkflowEntrypoint classes grep -r "extends WorkflowEntrypoint" src/ --include="*.ts" -l # Extract class names grep -r "export class.*extends WorkflowEntrypoint" src/ --include="*.ts" -o
Extract class names and file paths.
For each class referenced in bindings, verify it's exported:
**Error 5: Class Not Exported**
# Check if class is exported
grep "export class ${CLASS_NAME} extends WorkflowEntrypoint" src/index.tsIf not found:
export { ${CLASS_NAME} } from './workflows/${fileName}';**Error 6: Class Export in Wrong File**
Check main entry point (from wrangler.jsonc):
MAIN_FILE=$(jq -r '.main // "src/index.ts"' wrangler.jsonc)
grep "export.*${CLASS_NAME}" "$MAIN_FILE"If not found:
**Error 7: I/O Context Violation**
Search for I/O operations outside step.do():
# Look for fetch outside step.do callback grep -n "await.*fetch\|await.*env\." src/workflows/*.ts | grep -v "step\.do"
If found:
// Before (wrong)
const data = await fetch('...');
// After (correct)
const data = await step.do('fetch data', async () => {
const response = await fetch('...');
return await response.json();
});**Error 8: Missing NonRetryableError Import**
grep "NonRetryableError" src/workflows/*.ts | grep -v "import"
If NonRetryableError used but not imported:
import { NonRetryableError } from 'cloudflare:workflows';**Error 9: Empty NonRetryableError Message**
grep -n "new NonRetryableError()" src/workflows/*.ts
If found without message:
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,…