Remotion Lambda Migration: Cost, Quota Math, skip-worktree
Migrating Remotion from local rendering to AWS Lambda — the quota trap (10, not 1000), real cost at $15/video, and the git skip-worktree fix.
Migrating Remotion from local rendering to AWS Lambda — the quota trap (10, not 1000), real cost at $15/video, and the git skip-worktree fix.
Implementing nonce-based Content Security Policy in Next.js 16 using proxy.ts instead of middleware.ts. Full code, CSP directives, common mistakes.
Complete Claude Code OS: 20 custom agents, 8 slash-command skills, 11 automated hooks, 5 aliases, 50-file memory system. Includes 30-minute starter kit.
Three non-obvious Supabase RLS gotchas — SECURITY DEFINER triggers, FK SET NULL needing UPDATE policies, and partial migrations — with SQL fixes for each.
How 4 stacked bugs in a tax-tech system masked each other across 2 days and 3 commits. Real timeline, root causes, debugging playbook for compounding failures.
An IDOR slipped past code review during a billing rewrite. Here is the 6-point checklist and defense-in-depth approach I now use on every pull request.
How to encrypt SSNs and PII at rest with AES-256-GCM in TypeScript. Covers key rotation traps, IV reuse, auth tags, and a full production implementation.
A 15-group nightly QA system running 35 test files at 2 AM catches integration bugs CI never will. Real examples, architecture, and $0.50/night ROI breakdown.
An extraction QA loop turns failed runs into labeled training data, lifting accuracy from 87% to 95% in 6 weeks with zero manual labeling.
After testing Azure CU and DI on 50 financial documents, CU hit 95% accuracy vs DI's 87%. DI misreads form titles as values. Full comparison with code.
How a tax-tech app replaced a brittle in-house calculation engine with an MCP server. Benchmarks (2.2s), a silent percentage bug, PII anonymization.
Redis SETNX with a TTL and a digest endpoint batches transactional emails so users get one notification, not thirteen. Code, architecture, real incident.
Claude Code
Claude Code parallel agents run 1.7x faster than sequential — but spawn 3+ and OOM kills everything. Decision framework, benchmarks, production examples.
Claude Code
Three Claude Code skills — /postmortem, /wrong, /learn — create permanent memory files from every bug and mistake. 50+ files, zero repeated errors.
Claude Code
A pre-push validation gate with a 30-minute TTL runs parallel reviewers on changed files before git push. Zero broken pushes in 2+ weeks of daily use.
Claude Code
Why git commands hang 30-60s on iCloud Drive and fail with index.lock errors. The cause is macOS bird reindex. Real fixes, not just rm index.lock.
Next.js
Framer Motion silently strips the CSS background shorthand on motion.div components. Use backgroundImage instead. A debugging story with the one-line fix.
Next.js + Supabase + AI
Module-level SDK init with env vars breaks builds, leaks production keys to staging, and crashes tests. The lazy-init fix in 10 lines of TypeScript.
Next.js + Supabase + AI
The lock-column pattern prevents DB race conditions in serverless apps by recording writer priority on each row. No deadlocks, no SELECT FOR UPDATE.
Next.js
Use Promise.race to add timeout guards to every external API call in serverless functions. Prevent silent 504s on Vercel, Lambda, and Cloudflare Workers.
AI Agents
A practitioner's 4-layer mental model for choosing between Inngest, Temporal, AWS Step Functions, Airflow, and queues. Based on real production cost analysis.
AI Agents
A practitioner heuristic for when to adopt workflow engines like Inngest or Temporal. Start with await inline. Graduate after 5+ runs and a real retry.
Next.js
3 production bugs with the same root cause: un-awaited async at Vercel request boundaries. How fire-and-forget silently breaks on serverless and the fix.
Claude Code
A complete daily workflow system built from Claude Code primitives: morning briefings, 4-reviewer code review, 7-stage deployment pipeline, domain-specific debugger agents, and audit logging.