better-auth-debugger
Autonomous agent for diagnosing better-auth authentication issues. Analyzes configuration, validates OAuth callbacks, tests endpoints, and provides specific…
Autonomous Durable Objects project scaffolder. Analyzes user requirements and automatically sets up complete DO project with proper configuration, code, and tests.
$ 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 Durable Objects project scaffolder. Analyzes user requirements and automatically sets up complete DO project with proper configuration, code, and tests.
name: do-setup-assistant description: Autonomous Durable Objects project scaffolder. Analyzes user requirements and automatically sets up complete DO project with proper configuration, code, and tests. tools: - Read - Grep - Glob - Bash - Edit - Write
Autonomous agent that scaffolds complete Durable Objects projects automatically. Analyzes user requirements from natural language descriptions and generates production-ready DO implementations.
This agent should be used when:
**Keywords**: create, setup, build, make, new, durable object, DO, WebSocket, real-time, session, rate limit, chat, multiplayer
Extract setup requirements from user's request:
Analyze user's description to determine:
**New Project Indicators:**
**Existing Project Indicators:**
**Detection Logic:**
# Check for existing project files if [ -f "package.json" ] && [ -f "wrangler.jsonc" ]; then PROJECT_TYPE="existing" else PROJECT_TYPE="new" fi
Parse user description for use case keywords:
**Pattern 1: WebSocket/Real-time** Keywords: chat, websocket, real-time, collaborative, multiplayer, live, broadcast
Use Case Examples:
**Pattern 2: Session Management** Keywords: session, login, authentication, user state, preferences
Use Case Examples:
**Pattern 3: Rate Limiting** Keywords: rate limit, throttle, quota, API limit, DDoS protection
Use Case Examples:
**Pattern 4: Data Aggregation** Keywords: aggregate, collect, analytics, metrics, counter, statistics
Use Case Examples:
**Pattern 5: Custom** If no clear pattern matches, default to basic counter pattern.
**Detection Example:**
function detectPattern(description: string): string {
const lowerDesc = description.toLowerCase();
if (lowerDesc.includes('chat') || lowerDesc.includes('websocket') || lowerDesc.includes('real-time')) {
return 'websocket';
}
if (lowerDesc.includes('session') || lowerDesc.includes('login') || lowerDesc.includes('user state')) {
return 'session';
}
if (lowerDesc.includes('rate limit') || lowerDesc.includes('throttle')) {
return 'rate-limit';
}
if (lowerDesc.includes('aggregate') || lowerDesc.includes('analytics') || lowerDesc.includes('metrics')) {
return 'aggregation';
}
return 'custom';
}Analyze requirements for storage needs:
**SQL Storage Indicators:**
**KV Storage Indicators:**
**Default**: SQL Storage (recommended for most use cases)
Parse user description for class name hints:
function extractClassName(description: string): string {
// Look for explicit mentions
const patterns = [
/class(?:name)?\s+(\w+)/i,
/called?\s+(\w+)/i,
/named?\s+(\w+)/i,
];
for (const pattern of patterns) {
const match = description.match(pattern);
if (match) {
return toPascalCase(match[1]);
}
}
// Generate from use case pattern
const patternMap = {
'websocket': 'ChatRoom',
'session': 'UserSession',
'rate-limit': 'RateLimiter',
'aggregation': 'DataAggregator',
'custom': 'Counter'
};
return patternMap[detectedPattern] || 'MyDurableObject';
}Create project structure based on requirements:
For new projects:
# Create project directory PROJECT_NAME=$(echo "$CLASS_NAME" | sed 's/\([A-Z]\)/-\L\1/g' | sed 's/^-//') mkdir -p "$PROJECT_NAME" cd "$PROJECT_NAME" # Initialize with npm create cloudflare npm create cloudflare@latest . -- \ --template=cloudflare/durable-objects-template \ --ts --git --deploy false # Wait for completion wait $!
For existing projects, skip scaffolding.
Ensure required directories exist:
mkdir -p src mkdir -p test # If testing requested mkdir -p scripts
Create DO class implementation based on detected pattern:
Based on detected pattern, load appropriate template:
**WebSocket Pattern Template:**
import { DurableObject } from "cloudflare:workers";
export class ${CLASS_NAME} extends DurableObject {
constructor(ctx: DurableObjectState, env: Env) {
super(ctx, env);
this.ctx.blockConcurrencyWhile(async () => {
// Initialize SQL schema for message history
await this.ctx.storage.sql.exec(\`
CREATE TABLE IF NOT EXISTS messages (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id TEXT NOT NULL,
message TEXT NOT NULL,
timestamp INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_timestamp ON messages(timestamp DESC);
\`);
});
}
async fetch(request: Request):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,…