Skip to content

Instantly share code, notes, and snippets.

View alexsorokoletov's full-sized avatar

Alex Sorokoletov alexsorokoletov

View GitHub Profile
@alexsorokoletov
alexsorokoletov / nextjs-15-api-routes-gotchas.md
Created January 13, 2026 16:34
Next.js 15 API Routes: Production Build Gotchas & Fixes

Next.js 15 API Routes: Production Build Gotchas

The Problem

When running next build (production) vs next dev, API route handlers can silently fail with:

Error: No response is returned from route handler '/path/to/route.ts'. 
Ensure you return a `Response` or a `NextResponse` in all branches of your handler.
@alexsorokoletov
alexsorokoletov / README.md
Created January 26, 2026 16:03
Claude Code /do - Autonomous task workflow with devil's advocate subagent (Opus 4.5 optimized)

/do - Autonomous Task Workflow

Claude Code skill that executes tasks fully autonomously using a devil's advocate subagent.

What it does

  1. Creates feature branch
  2. Spawns subagent to clarify scope, create plan, and self-critique
  3. Implements the plan
  4. Runs /simplify-auto to clean up code