turnstile-spin
能扫描代码并生成前后端整合片段,显著节省集成时间。
会创建或使用 Cloudflare API 资源,需提供 API 密钥
自动化在项目中端到端集成 Cloudflare Turnstile(前端小部件+后端校验)。
在项目中端到端落地 Cloudflare Turnstile:扫描代码库、通过 Cloudflare API 创建 widget,把前端片段插到需要防机器人的表单、SPA 操作或下载等位置,并在后端接入 siteverify 做标准校验。要给表单或接口加验证码、防止机器人或修复 Turnstile 集成时会用到。会产出可运行的前端/后端代码片段并完成一次真实的验证通过才算完成交付。
▸ 展开 SKILL.md 英文原文
Set up Cloudflare Turnstile end-to-end in a project. Scan the codebase, create the widget via the Cloudflare API, embed it where user requests need bot verification (form submissions, SPA actions, API endpoints, download links, comment or vote submissions, etc.), wire canonical server-side siteverify in the customer's existing backend, validate, and persist the skill. Load this when a user asks to add Turnstile, set up CAPTCHA, protect a form or endpoint from bots, or fix a Turnstile integration. Mirrors developers.cloudflare.com/turnstile/spin.
帮我安装这个 skill:https://raw.githubusercontent.com/cloudflare/skills/main/skills/turnstile-spin/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/cloudflare/skills/main/skills/turnstile-spin/SKILL.md"# Turnstile Spin skill Turns the prompt "set up Turnstile" into a working end-to-end integration: a widget, frontend snippets at every chosen insertion point, canonical server-side siteverify in the customer's existing backend, and a real validation pass before reporting success. You are the agent. Run the wizard below by invoking the scripts under `scripts/` and branching on their JSON output. The scripts hold the deterministic logic (API calls, retry/error handling); your job is orchestration, codebase reading, confirmation, and the frontend + backend edits. This file is the canonical machine-readable behavior. Product requirements come from the [Turnstile documentation](https://develop