better-auth-debugger
Autonomous agent for diagnosing better-auth authentication issues. Analyzes configuration, validates OAuth callbacks, tests endpoints, and provides specific…
Autonomous setup assistant for Cloudflare Workflows. Automatically detects project state, scaffolds workflows, configures bindings, and prepares for deployment without manual 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 setup assistant for Cloudflare Workflows. Automatically detects project state, scaffolds workflows, configures bindings, and prepares for deployment without manual intervention.
name: workflow-setup-assistant description: Autonomous setup assistant for Cloudflare Workflows. Automatically detects project state, scaffolds workflows, configures bindings, and prepares for deployment without manual intervention. tools: - Read - Glob - Edit - Write - Bash
Autonomous agent that guides workflow setup by detecting project state, creating appropriate scaffolding, and configuring all necessary components automatically.
This agent should be used when:
**Keywords**: setup, create, new workflow, add workflow, first workflow, configure, initialize, scaffold, getting started
# Check for existing project files ls -la 2>/dev/null | grep -E "wrangler|package|tsconfig"
**Detect**:
If wrangler config exists:
# Check for existing workflows grep -v '^\s*//' wrangler.jsonc | jq '.workflows // []' # Check main entry point grep -v '^\s*//' wrangler.jsonc | jq '.main' # Check existing bindings grep -v '^\s*//' wrangler.jsonc | jq 'keys'
**Determine**:
**Path A: New Project**
**Path B: Add Workflows to Existing Project**
**Path C: Add Another Workflow**
---
If new project needed:
mkdir -p src/workflows mkdir -p test
{
"name": "my-worker",
"main": "src/index.ts",
"compatibility_date": "2025-01-01",
"workflows": [
{
"binding": "MY_WORKFLOW",
"name": "my-workflow",
"class_name": "MyWorkflow"
}
]
}{
"name": "my-worker",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "wrangler dev",
"deploy": "wrangler deploy",
"test": "vitest"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20260408.0",
"typescript": "^5.9.0",
"wrangler": "^4.81.0",
"vitest": "^2.0.0"
}
}{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Bundler",
"lib": ["ES2022"],
"types": ["@cloudflare/workers-types"],
"strict": true,
"skipLibCheck": true,
"noEmit": true
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}---
Based on use case (inferred or from project context):
**File**: `src/workflows/my-workflow.ts`
import { WorkflowEntrypoint, WorkflowStep, WorkflowEvent } from 'cloudflare:workers';
import { NonRetryableError } from 'cloudflare:workflows';
type Env = {
MY_WORKFLOW: Workflow;
};
type Params = {
id: string;
};
export class MyWorkflow extends WorkflowEntrypoint<Env, Params> {
async run(event: WorkflowEvent<Params>, step: WorkflowStep) {
const { id } = event.payload;
console.log('Workflow started:', {
instanceId: event.instanceId,
params: event.payload
});
// Step 1: Validate input
await step.do('validate input', async () => {
if (!id) {
throw new NonRetryableError('Missing required parameter: id');
}
return { valid: true };
});
// Step 2: Process data
const result = await step.do('process data', async () => {
// Your processing logic here
return { processed: true, id };
});
// Step 3: Complete workflow
await step.do('finalize', async () => {
console.log('Workflow completing:', result);
return { finalized: true };
});
return {
status: 'complete',
id,
completedAt: new Date().toISOString()
};
}
}---
**File**: `src/index.ts`
import { MyWorkflow } from './workflows/my-workflow';
// Re-export workflow class (required for Cloudflare)
export { MyWorkflow };
// Environment bindings
interface Env {
MY_WORKFLOW: Workflow;
}
// Worker to trigger and manage workflows
export default {
async fetch(req: Request, env: Env): Promise<Response> {
const url = new URL(req.url);
// Favicon handler
if (url.pathname.startsWith('/favicon')) {
return new Response(null, { status: 404 });
}
// Check instance status
const instanceId = url.searchParams.get('instanceId');
if (instanceId) {
try {
const instance = await env.MY_WORKFLOW.get(instanceId);
const status = await instance.status();
return Response.json({ id: instanceId, status });
} catch {
return Response.json({ error: 'Instance not found' }, { status: 404 });
}
}
// Create new workflow instance
try {
const instance = await env.MY_WORKFLOW.create({
params: { id: crypto.randomUUID() }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,…