better-auth-add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Interactive wizard for complete Cloudflare Workflows setup from scratch. Use when user wants to create first workflow, setup workflow infrastructure, or add workflows to existing Worker project.
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/workflow-setupContext preview
What this command does when you run it.
Interactive wizard for complete Cloudflare Workflows setup from scratch. Use when user wants to create first workflow, setup workflow infrastructure, or add workflows to existing Worker project.
name: cloudflare-workflows:setup description: Interactive wizard for complete Cloudflare Workflows setup from scratch. Use when user wants to create first workflow, setup workflow infrastructure, or add workflows to existing Worker project.
Complete interactive setup wizard for Cloudflare Workflows: project initialization, configuration, class scaffolding, and deployment preparation.
Check before starting:
Check if this is a new or existing project:
# Check for wrangler.jsonc if [ -f "wrangler.jsonc" ]; then EXISTING_PROJECT=true else EXISTING_PROJECT=false fi # Check for package.json if [ -f "package.json" ]; then HAS_PACKAGE_JSON=true else HAS_PACKAGE_JSON=false fi
**If new project** (`$EXISTING_PROJECT == false`):
Use AskUserQuestion:
**If existing project**: Continue to Step 2
---
Use AskUserQuestion to collect setup preferences.
**Question 1: Workflow Name**
**Capture input**: Ask user to provide workflow name
---
**Question 2: Workflow Purpose**
**Store as**: `workflowType`
---
**Question 3: Expected Duration**
**Store as**: `expectedDuration`
---
**Question 4: External Integrations**
**Store as**: `integrations` (array)
---
**Question 5: Error Handling Strategy**
**Store as**: `errorStrategy`
---
Generate WorkflowEntrypoint class based on user inputs.
**File Location**: `src/workflows/${workflowName}.ts`
**Template Selection**:
**Generate Class**:
/**
* ${className} Workflow
* Type: ${workflowType}
* Expected Duration: ${expectedDuration}
* Generated: ${currentDate}
*/
import { WorkflowEntrypoint, WorkflowStep, WorkflowEvent } from 'cloudflare:workers';
import { NonRetryableError } from 'cloudflare:workflows';
// Define environment bindings
type Env = {
${workflowName.toUpperCase()}_WORKFLOW: Workflow;
${generateEnvBindings(integrations)}
};
// Define workflow parameters
type Params = {
id: string;
// Add your parameters here
};
/**
* ${className} Workflow
*
* ${generateWorkflowDescription(workflowType)}
*/
export class ${className} 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
});
${generateStepScaffolding(workflowType, errorStrategy)}
return {
status: 'complete',
id,
completedAt: new Date().toISOString()
};
}
}**Helper Function Logic**:
`g
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