cloudflare-turnstile:setup

cloudflare-turnstile:setup is a command for coding agents from secondsky/claude-skills. It costs 36 tokens per session (3,181 once invoked), scanned B, original, MIT.

An interactive setup wizard for Cloudflare Turnstile, a service that checks whether form and API requests come from people or bots. It creates configuration templates and guides you through widget and server validation choices.

In plain words
What is it for?
Use it to configure Turnstile for forms, login pages, APIs, or checkout flows in Cloudflare Workers and other supported environments.
Why use it?
It removes guesswork from connecting bot protection to your framework and deployment environment. It also helps keep the browser and server settings aligned.

Command

Part of the cloudflare-turnstile plugin — 1 skill, 1 command, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/secondsky/claude-skills/setup-wizard
Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Or install cloudflare-turnstile, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloudflare-turnstile:setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/setup-wizard.svg)](https://agentmods.dev/commands/secondsky/claude-skills/setup-wizard)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/setup-wizard"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/setup-wizard.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,181 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00036 $0.03181
Opus 5 $0.00018 $0.01590
Sonnet 5 $0.00007 $0.00636
Haiku 4.5 $0.00004 $0.00318

Measured yesterday against content hash ff6a0eafc97a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

cloudflare-turnstile:setup scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

const result = await fetch('https://challenges.cloudflare.com/turnstile/v0/siteverify', { method: 'POST',
plugins/cloudflare-turnstile/commands/setup-wizard.md · 486 lines

How it starts

The opening of the file, as written. The whole thing — 486 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Turnstile Setup Wizard

This interactive command guides you through complete Cloudflare Turnstile setup, from widget configuration to server-side validation.

Usage

/turnstile-setup

Step 1: Widget Mode Selection

Question: "What widget mode do you need?"

Options:

  1. Managed (Recommended) - Shows checkbox only when bot suspected

    • Best balance of security and UX
    • Use for: Login pages, contact forms, user-facing challenges
    • Solve rate: ~95% pass without interaction
  2. Invisible - No visible widget, challenge runs in background

    • Best for: API protection, seamless UX, checkout flows
    • No user interaction required
    • Execute programmatically via turnstile.execute()
  3. Non-Interactive - Widget visible but no interaction needed

    • Similar to invisible but shows "Verifying..." state
    • Use for: Status transparency, compliance requirements

Output: Store selection as WIDGET_MODE


Step 2: Framework Selection

Question: "What framework are you using?"

Options:

  1. Cloudflare Workers (Hono)

    • Template: templates/turnstile-hono-route.ts
    • Config: templates/wrangler-turnstile-config.jsonc
    • Server validation with Hono middleware
  2. React / Next.js

    • Template: templates/turnstile-react-component.tsx
    • Package: @marsidev/[email protected]
    • Client + server validation
  3. Vanilla HTML/JavaScript

    • Template: templates/turnstile-widget-implicit.html (implicit rendering)
    • Template: templates/turnstile-widget-explicit.ts (explicit rendering)
    • Framework-agnostic setup
  4. Mobile (iOS/Android/React Native/Flutter)

    • Reference: references/mobile-implementation.md
    • WebView integration required
    • Platform-specific configuration

Output: Store selection as FRAMEWORK


Step 3: Environment Selection

Question: "What environment is this for?"

Options:

  1. Development (localhost)
    • Use dummy test sitekey: 1x00000000000000000000AA
    • Use dummy test secret: 1x0000000000000000000000000000000AA
    • Always passes validation (for testing)
    • No domain configuration needed

Read the full file on GitHub · 486 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 486 lines · 36 tokens per session scan B ff6a0eafc97a

Subscribe to this mod's changes

cloudflare-turnstile:setup is a command published in the GitHub repository secondsky/claude-skills (214 stars, last pushed 2d ago), licensed MIT. It adds 36 tokens to every session and 3,181 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (sends data to an external url). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.