cloudflare-turnstile
Skill0 starsChanged 10 days agoMITView on GitHub
Set up Cloudflare Turnstile (CAPTCHA alternative) end to end: create a widget, add the client widget to a form, and verify tokens server-side with siteverify (Next.js, Express, Workers). Use when the user wants to stop spam or bot signups on login, signup, contact or checkout forms.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- davidanthonyn/claude-skillstheir own version, first seen Oct 20, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- davidanthonyn/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/cloudflare-dns-records.mdcCursor rule
- .cursor/rules/cloudflare-rate-limiting.mdcCursor rule
- .cursor/rules/cloudflare-safety.mdcCursor rule
- .cursor/rules/cloudflare-turnstile.mdcCursor rule
- .cursor/rules/cloudflare-waf-rules.mdcCursor rule
- .cursor/rules/cloudflare-zone-audit.mdcCursor rule
- .cursor/rules/cloudflare-zones-overview.mdcCursor rule
- cloudflare-dns-recordsSkill
- cloudflare-rate-limitingSkill
- cloudflare-waf-rulesSkill
- cloudflare-zone-auditSkill
- cloudflare-zones-overviewSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Run commands with npx -y github:blitzhash360-web/blitzhash-cloudflare-production-skills <command> or, inside a clone of the repo, node …
- Very specific: line 12
Create the widget (dry run first): cf-skills turnstile create --name "Signup form" --domains example.com,www.example.com --secret-out …
- Very specific: line 16
Put TURNSTILE_SECRET_KEY in the hosting provider env vars.
- Very specific: line 17
Test with Cloudflare's documented dummy keys first (secret 1x0000000000000000000000000000000AA always passes, …
- Very specific: line 28
Every write command is a dry run by default.
- Very specific: line 29
Only after that "yes", re-run the same command with --apply --yes (your shell is not interactive).
- Distinctive: line 30
Never delete records or rules the user did not name.
- Very specific: line 31
Run cf-skills audit before and after changes and tell the user what moved.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cloudflare Turnstile setup
Run commands with npx -y github:blitzhash360-web/blitzhash-cloudflare-production-skills <command> or, inside a clone of the repo, node bin/cf-skills.mjs <command>. Below, cf-skills means either. Zone is --zone <domain or zone id> or $CLOUDFLARE_ZONE_ID.
Steps
- Create the widget (dry run first):
cf-skills turnstile create --name "Signup form" --domains example.com,www.example.com --secret-out .env.local- The site key (public) is printed. The secret is masked and only written to the git-ignored file given in
--secret-out.
- The site key (public) is printed. The secret is masked and only written to the git-ignored file given in
- Client:
cf-skills turnstile snippet --framework html --sitekey <sitekey>and paste inside the form. - Server (required, the widget alone protects nothing):
cf-skills turnstile snippet --framework next|express|workerand copysnippets/turnstile/siteverify.mjsinto the project. - Put
TURNSTILE_SECRET_KEYin the hosting provider env vars. Never in aNEXT_PUBLIC_/VITE_variable. - Test with Cloudflare's documented dummy keys first (secret
1x0000000000000000000000000000000AAalways passes,2x0000000000000000000000000000000AAalways fails).
Guidance
verifyTurnstilefails closed (network error = not verified), rejects tokens over 2048 chars, and can check the expected hostname and action.- Tokens are single use and expire after 300 seconds; verify once per submission.
- Token: Account > Turnstile Edit (only for
create/list);snippetneeds no token.
Safety rules (always)
- The API token lives only in the environment (
CLOUDFLARE_API_TOKEN) or a git-ignored.env. Never ask the user to paste it into chat, never print it, never pass it as a flag, never commit it. - Every write command is a dry run by default. Run it without
--applyfirst, show the user the printed plan, and wait for an explicit "yes" in chat. - Only after that "yes", re-run the same command with
--apply --yes(your shell is not interactive). Never add--yeson your own initiative. - Never delete records or rules the user did not name. Never widen the token's permissions.
- Run
cf-skills auditbefore and after changes and tell the user what moved.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

