What problem does it solve? Adding edge logic to a fully prerendered Astro site on Cloudflare Workers is full of traps: Astro middleware silently cannot intercept prerendered pages, run_worker_first couples every pageview to the shared 100k/day invocation cap, Workers Caching bills normally-free asset requests, and Flagship is an unpriced beta. This Skill provides the routing and billing model, decision tables, and code snippets that keep each job on its cheapest correct surface. ## Core Features & Use Cases - Decision forks for five edge jobs: A/B testing, where edge logic lives, geo personalization, feature flags, and redirect surface selection — each with cost, failure mode, and when-to-flip guidance. - Four documented traps: middleware non-interception, run_worker_first billing coupling, Workers Caching charges, and Flagship beta risk, with platform pins and quarterly review-gates. - Ready snippets: client-side A/B assignment script, a geo endpoint reading request.cf, and a custom Worker entry wrapping the adapter handler. - Use Case: You want to run an A/B test on a prerendered marketing site. The Skill steers you to zero-invocation client-side assignment with an inline pre-paint script, and tells you exactly when worker-first assignment is worth the billing risk. ## Quick Start Ask the AI to add an A/B test, redirect rules, geo targeting, or feature flags to your Astro site on Cloudflare Workers Static Assets.