better-auth-add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Interactive wizard to set up Cloudflare Queues with queue creation, producer/consumer binding configuration, and Dead Letter Queue setup. Use when user wants to create first queue or add queues to existing Worker.
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/queue-setupContext preview
What this command does when you run it.
Interactive wizard to set up Cloudflare Queues with queue creation, producer/consumer binding configuration, and Dead Letter Queue setup. Use when user wants to create first queue or add queues to existing Worker.
name: cloudflare-queues:setup description: Interactive wizard to set up Cloudflare Queues with queue creation, producer/consumer binding configuration, and Dead Letter Queue setup. Use when user wants to create first queue or add queues to existing Worker.
Interactive wizard for complete Cloudflare Queues setup: create queue, configure producer/consumer bindings, set up DLQ, and provide example code.
Check before starting:
Use AskUserQuestion to collect setup preferences.
**Question 1: Queue Name**
Description: "Describes what the queue processes"
Description: "Includes environment in the name"
**Question 2: Queue Purpose**
Description: "Worker will send messages to queue, consumed elsewhere"
Description: "Worker will process messages from queue"
Description: "Worker will both send and process messages"
**Question 3: Consumer Settings** (if purpose includes consumer)
Description: "Balanced settings for most use cases"
Description: "Fast processing for high-volume queues"
Description: "Minimal delay for time-sensitive messages"
Description: "Provide your own batch size, retries, concurrency"
**Question 4: Dead Letter Queue**
Description: "Captures failed messages after max retries"
Description: "Can add later if needed"
---
Execute wrangler command based on user inputs:
# Create main queue wrangler queues create <queueName>
**Capture output**: Extract queue creation confirmation
**Error Handling**:
**Verify creation**:
wrangler queues list
---
If `enableDLQ` is true:
# Create DLQ wrangler queues create <queueName>-dlq
**Verify**:
wrangler queues list
---
If `queuePurpose` includes "Producer":
Check if wrangler.jsonc or wrangler.toml exists:
if [ -f "wrangler.jsonc" ]; then CONFIG_FILE="wrangler.jsonc" elif [ -f "wrangler.toml" ]; then CONFIG_FILE="wrangler.toml" else # Ask user which format to create CONFIG_FILE="wrangler.jsonc" # Default to JSON fi
**Add Producer Configuration**:
**If wrangler.jsonc**: Use Edit tool to add to `queues.producers` array (or create array if doesn't exist):
{
"queues": {
"producers": [
{
"binding": "<QUEUE_BINDING>", // e.g., "ORDER_QUEUE"
"queue": "<queueName>" // e.g., "order-processing"
}
]
}
}**Binding name suggestion**: Convert queue name to SCREAMING_SNAKE_CASE
**If wrangler.toml**:
[[queues.producers]] binding = "<QUEUE_BINDING>" queue = "<queueName>"
**Verify**:
# Show configuration to user cat wrangler.jsonc | grep -A 10 "queues"
---
If `queuePurpose` includes "Consumer":
**Add Consumer Configuration** based on `consumerSettings`:
**Standard settings** (batch: 10, retries: 3, concurrency: 1):
{
"queues": {
"consumers": [
{
"queue": "<queueName>",
"max_batch_size": 10,
"max_retries": 3,
"max_concurrency": 1,
"dead_letter_queue": "<queueName>-dlq" // If DLQ enabled
}
]
}
}**High throughput settings** (batch: 50, retries: 1, concurrency: 5):
{
"queues": {
"consumers": [
{
"queue": "<queueName>",
"max_batch_size": 50,
"max_retries": 1,
"max_concurrency": 5,
"dead_letter_queue": "<queueName>-dlq" // If DLQ enabled
}
]
}
}**Low latency settings** (batch: 1, retries: 3, concurrency: 1):
{
"queues": {
"consumers": [
{
"queue": "<queueName>",
"max_batch_size": 1,
"max_retries": 3,
"max_concurrency": 1,
"dead_letter_queue": "<queueName>-dlq" // If DLQ enabled
}
]
}
}**Custom settings**: Use user-provided values
**Om
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