better-auth-add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Interactive debugging for failing workflow instances. Use when user reports workflow errors, instances stuck, or deployment failures.
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/workflow-debugContext preview
What this command does when you run it.
Interactive debugging for failing workflow instances. Use when user reports workflow errors, instances stuck, or deployment failures.
name: cloudflare-workflows:debug description: Interactive debugging for failing workflow instances. Use when user reports workflow errors, instances stuck, or deployment failures.
Interactive debugging assistant for Cloudflare Workflow instances with step-by-step diagnosis.
Use AskUserQuestion:
**Question**: "Which workflow instance needs debugging?"
**If "I have instance ID"**:
**If "Show recent instances"**:
wrangler workflows instances list ${workflowName} --limit 10Display instances, ask user to select one
**If "Show failed instances"**:
wrangler workflows instances list ${workflowName} --status errored --limit 10---
wrangler workflows instances describe ${workflowName} ${instanceId}**Parse Output**:
**Display**:
Instance Details:
- ID: ${instanceId}
- Status: ${status}
- Steps Completed: ${stepsCompleted} / ${totalSteps}
- Last Step: ${lastStep}
- Error: ${errorMessage}---
**Based on status**, provide diagnosis:
Check error message patterns:
**Pattern 1**: "Cannot perform I/O on behalf of different request"
**Pattern 2**: "NonRetryableError"
**Pattern 3**: "Serialization error"
**Pattern 4**: "Timeout"
**Pattern 5**: "WorkflowEvent not found"
---
Check step history:
**If stuck on step.sleep()**: Show wake time **If stuck on step.waitForEvent()**: Check event trigger
Ask user:
---
**Based on diagnosis**, provide specific fixes:
**For I/O Context Error**:
// ❌ Wrong
const data = await fetch('...');
await step.do('use data', async () => {
return data;
});
// ✅ Correct
const data = await step.do('fetch data', async () => {
const response = await fetch('...');
return await response.json();
});**For Serialization Error**:
// ❌ Wrong
await step.do('bad', async () => {
return { fn: () => {} }; // Functions not serializable
});
// ✅ Correct
await step.do('good', async () => {
return { result: 'data' }; // JSON-serializable
});**For Timeout**:
// ❌ Wrong
await step.do('process all', async () => {
for (let i = 0; i < 10000; i++) {
// Long computation
}
});
// ✅ Correct
for (let i = 0; i < 100; i++) {
await step.do(\`batch \${i}\`, async () => {
// Process batch of 100
});
}---
Ask user:
**If yes**: 1. Read workflow file 2. Apply fixes using Edit tool 3. Re-validate 4. Suggest re-deployment
---
**Provide testing commands**:
# Test locally first
wrangler dev
# Then deploy
wrangler deploy
# Monitor new instances
wrangler workflows instances list ${workflowName} --status running
# Watch for errors
wrangler tail ${workerName} --status error**Suggest**:
---
Debug Summary:
- Instance: ${instanceId}
- Issue: ${issueSummary}
- Fixes Applied: ${fixesApplied}
Next Steps:
1. ${nextStep1}
2. ${nextStep2}
3. ${nextStep3}
Resources:
- Common issues: references/common-issues.md
- Troubleshooting: references/troubleshooting.md
- Production checklist: references/production-checklist.md---
**Instance Not Found**: Check workflow name and instance ID **Not Authenticated**: Run `wrangler login` **No Access**: Check account permissions
---
Interactive debugging in 7 steps: 1. Identify instance (ID, recent, or failed) 2. Fetch instance details (status, steps, errors) 3. Diagnose issue (pattern matching error messages) 4. Suggest fixes (code examples for common issues) 5. Apply fixes (optional auto-fix) 6. Testing & monitoring (deployment commands) 7. Summary & next steps
**When to Use**: Workflow errors, stuck instances, deployment failures.
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