cloudflare/skills✦ 精选0°

turnstile-spin

仓库创建 2025年12月11日最近提交 7 小时前SkillHot 收录 1 小时前
▸ 精选理由

能扫描代码并生成前后端整合片段,显著节省集成时间。

▸ 风险提示

会创建或使用 Cloudflare API 资源,需提供 API 密钥

这个 Skill 做什么

自动化在项目中端到端集成 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.

开发编程Turnstile验证码集成前后端通用
2.6k
Stars
242
Forks
13
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/cloudflare/skills/main/skills/turnstile-spin/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/cloudflare/skills/main/skills/turnstile-spin/SKILL.md"
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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有