Dev & Engineering

Turnstile End-to-End Setup

Adds Cloudflare Turnstile to existing forms with frontend embedding, backend verification, and validation.

54/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 3.1k
Last updated
12d ago
License
Apache-2.0
cloudflare-turnstilecaptchabot-protectionsiteverify
+2form-securitycloudflare-api

What does this skill do, and when should you use it?

This is a focused Agent Skill from the cloudflare/skills repository for integrating Cloudflare Turnstile. It scans a codebase, identifies the frontend framework, backend handler, and any existing CAPTCHA, then creates or reuses a Turnstile widget and connects verification to the existing form flow. It requires an existing backend where siteverify can run and does not add backends, email delivery, databases, or deployment infrastructure.

Runs an authentication probe and handles Cloudflare account selection; scans package.json, wrangler.toml, README.md, AGENTS.md, and the git remote for domains; detects the frontend framework, backend handler location, and reCAPTCHA or hCaptcha; creates a widget through Wrangler or the Cloudflare API and captures its sitekey and secret; embeds Turnstile on selected forms and adds canonical server-side siteverify, allowing the existing handler to continue only when success === true; runs validation and can persist the skill to an agent-specific path.

Good fit
  • Developers using Next.js, Astro, SvelteKit, Hugo, or vanilla HTML who need to protect signup, login, or contact forms.
  • Maintainers who already have a Cloudflare Turnstile sitekey but whose server-side siteverify integration is missing or broken.
  • Teams migrating from reCAPTCHA or hCaptcha and needing coordinated frontend token and backend verification changes.
  • Developers adding Turnstile verification inside an existing Cloudflare Pages Function or Workers request handler.

How do you install this skill?

Before you use it
  • This is a static review only; no scripts, API calls, or validation were executed, so claims of a real validation pass are unproven.
  • Before use, review and supply the missing scripts, key-path tests, rollback procedure, and stronger secret-storage boundaries.
  • The core workflow depends on the Cloudflare API, Wrangler, npx, and external documentation; confirm reachability from mainland-China networks and prepare an offline or proxy-supported path if needed.
  • Widget creation and code edits have external effects; retain explicit user confirmation before each irreversible or externally effective step.
Before you start
Your agent needs
  • Shell / CLI
  • Network access
  • Local filesystem
Install first
  • curl
  • Node.js with npx
  • Wrangler 4.109+ preferred for widget creation

The skill is located at skills/turnstile-spin/ in cloudflare/skills. Install the full collection with npx skills add https://github.com/cloudflare/skills, or clone the repository and copy this skill folder into the relevant agent directory, such as ~/.claude/skills/, ~/.codex/skills/, or ~/.cursor/skills/.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/cloudflare/skills.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/skills/turnstile-spin" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • Set up Cloudflare Turnstile for my contact form
  • Fix this Turnstile integration.

In an Agent Skills-compatible agent, use a request such as “Set up Cloudflare Turnstile for my contact form” or “Fix this Turnstile integration.” The workflow asks for confirmation before scanning, registering domains, creating or modifying widgets, editing the integration, validating, and persisting the skill. A Cloudflare API token with Account.Turnstile:Edit is required; the source does not document a complete standalone manual procedure.

What are this skill's strengths and limitations?

Pros
  • Covers widget creation, frontend embedding, backend siteverify, and validation as one workflow.
  • Explicitly preserves the existing form handler and adds verification as a gate.
  • Supports wiring an existing widget without rotating its sitekey.
  • Includes migration guidance for reCAPTCHA and hCaptcha plus several recovery and edge-case paths.
Limitations
  • Requires an existing backend handler; pure-static and mailto-only forms are out of scope.
  • Requires network access to Cloudflare APIs and Turnstile edit permissions; multi-account tokens require account selection.
  • The source does not document an automated test suite or actual coverage across project templates.
  • Does not handle email, database, payment, OAuth, new backend creation, or infrastructure deployment.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Turnstile End-to-End Setup this page 54 · Use with care ★ 3.1k 12d ago Apache-2.0
Stripe Integration Best Practices 53 · Use with care ★ 1.9k 13d ago MIT
Cloudflare Email Service Skill 52 · Use with care ★ 3.1k 12d ago Apache-2.0
Skill Install — Secure Skill Installer 49 · Use with care ★ 2.8k 5mo ago AGPL-3.0
Expo EAS Hosting Deployments 48 · Use with care ★ 2.9k 21d ago MIT

It supports migration from reCAPTCHA or hCaptcha by replacing frontend scripts, widget markup, token fields, and server-side verification endpoints. reCAPTCHA Enterprise is not auto-migrated, and reCAPTCHA v3 score thresholds have no direct equivalent; migrated validation uses success === true/false.

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
54/ 100 5-point scale 2.7 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust17 / 25 · 3.4/5

The skill requires confirmation, uses Account.Turnstile:Edit, keeps secrets out of ordinary files, forbids browser-side siteverify, and requires diffs and validation, giving the data-flow boundaries reasonable clarity. Deducted 8 points because it creates or modifies Cloudflare resources and user code without an explicit rollback procedure; credential isolation across all handoff paths is not demonstrated, and it relies on external docs and scripts.

2Reliability7 / 20 · 1.8/5

The evidence shows a staged state machine, auth probing, Wrangler/curl fallback, abnormal-status branches, and a validation step. Deducted 13 points because the key scripts are not included in the supplied material, so widget creation, secret retrieval, and validation cannot be reproduced; no key-path test coverage is shown, and execution depends on npx, jq or Python, and network services.

3Adaptability11 / 15 · 3.7/5

Trigger terms, supported scenarios, non-fit boundaries, CAPTCHA migration behavior, and several framework examples are clearly stated. Deducted 4 points because Chinese-language interaction and mainland-China network reachability are not addressed, while the core flow depends on Cloudflare APIs, Wrangler, and overseas documentation; trigger precision is still primarily keyword-based and backend coverage is limited.

4Convention9 / 15 · 3.0/5

The evidence shows progressive step-by-step instructions, README layout and installation notes, references, license metadata, and a documented synchronization source. Deducted 6 points because there is no clear version, changelog, named maintenance responsibility, or stable update path; the README references tests and scripts that are absent from the supplied material, and installation/persistence assumes a particular environment.

5Effectiveness6 / 15 · 2.0/5

The stated goal is an end-to-end Turnstile integration covering widget creation, frontend embedding, backend siteverify, secret configuration, and validation, with examples that are directly adaptable. Deducted 9 points because the static material contains no real execution results or representative verified outputs; users must still manually determine handlers, domains, insertion points, and platform secret management, and the examples do not cover every claimed environment.

6Verifiability4 / 10 · 2.0/5

The evidence includes canonical-looking siteverify examples, explicit auth-probe logic, a documentation synchronization claim, and repository Semgrep CI. Deducted 6 points because the key scripts, executable test suite, execution logs, and independent corroboration are not supplied, preventing end-to-end verification; the external canonical docs are asserted as authoritative but their contents are not available here.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision 70215303d44a Review evidence[1][2][3][4][5][6][7][8][9][10][11][12]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

What Cloudflare permissions are required?
Use an API token that can access the target account and includes `Account.Turnstile:Edit`. When multiple accounts are covered, the user must select or set `CLOUDFLARE_ACCOUNT_ID`.
Can it protect a form with no backend?
No. The workflow requires an existing backend location for siteverify. Pure-static and mailto-only forms are explicitly out of scope.
Will the Turnstile secret be written into source code or an arbitrary file?
No. It is intended for the user's environment or platform secret store under `TURNSTILE_SECRET` and must not be inlined.
Does the source specify pricing?
No. The supplied README and SKILL.md do not state the cost of Cloudflare Turnstile or this skill.

More skills from this repository

All from cloudflare/skills

Automation & Ops

Cloudflare One Migration Planner

Turns Zscaler, Palo Alto, legacy VPN, SWG, or SASE migrations into verifiable Cloudflare One plans.

★ 3.1k FS 58 Recommended 12d ago
Dev & Engineering

Cloudflare Email Service Skill

Guides agents through implementing transactional email sending, receiving, and routing on Cloudflare.

★ 3.1k FS 52 Use with care 12d ago
Dev & Engineering

Workers Production Review

Write and review production-ready Workers code using current Cloudflare guidance.

★ 3.1k FS 57 Use with care 12d ago
Automation & Ops

Cloudflare One Zero Trust Advisor

Guides agents through designing, configuring, and troubleshooting Cloudflare One.

★ 3.1k FS 55 Use with care 12d ago
Dev & Engineering

Cloudflare Agents SDK Builder

Guides developers in building stateful, real-time, and durable AI agents on Cloudflare Workers.

★ 3.1k FS 49 Use with care 12d ago
Dev & Engineering

Cloudflare Wrangler Deployment Guide

Helps agents reliably build, develop, deploy, and manage Cloudflare Workers with Wrangler.

★ 3.1k FS 49 Use with care 12d ago
Dev & Engineering

Cloudflare Durable Objects Builder

Build and review stateful coordination applications on Cloudflare.

★ 3.1k FS 48 Use with care 12d ago
Dev & Engineering

Cloudflare Sandbox Builder

Guides agents in building secure, isolated code execution on Cloudflare Workers.

★ 3.1k FS 46 Use with care 12d ago
Dev & Engineering

Cloudflare Platform Builder

Helps agents research and build applications on Cloudflare.

★ 3.1k FS 45 Not recommended 12d ago
Dev & Engineering

Web Performance Auditor

Use Chrome DevTools MCP to diagnose page-load performance, Core Web Vitals, and accessibility gaps.

★ 3.1k FS 43 Not recommended 12d ago

Related skills