turnstile-spin: Building an End-to-End, Acceptance-Ready Agent Flow for Turnstile Integration
turnstile-spin is an Agent Skill maintained by Cloudflare in the cloudflare/skills repository for creating, repairing, or migrating Turnstile bot verification in existing front-end and back-end applications. Using authentication detection, widget creation scripts, and a multi-step wizard under the `scripts` directory, it scans the codebase, embeds the Turnstile widget according to Next.js, Astro, or SvelteKit references, integrates site verification into existing backends, and performs live validation before reporting success. It is suitable for scenarios such as registration and login forms or API abuse prevention; ensure the required API Token permission is `Account.Turnstile:Edit`, and be aware of Wrangler usage constraints and hostname validation for local and production environments.
Read More