[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79A4P0CNS0926RXQABTSMPY":3,"skill-same:01M79A4P0CNS0926RXQABTSMPY":147},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":14,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M79A4P0CNS0926RXQABTSMPY","cloudflare-turnstile",null,"This skill should be used when the user asks to \"add turnstile\", \"implement bot protection\", \"validate turnstile token\", \"fix turnstile error\", \"setup captcha alternative\", or encounters error codes 100*\u002F300*\u002F600*, CSP errors, or token validation failures. Provides CAPTCHA-alternative protection for Cloudflare Workers, React, Next.js, and Hono.","Elogic360\u002Fsoftware-factory","Elogic360","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F156535519?v=4","01M74NH3F0RB13PWB7JZDE2V80","elogic360","01M74NH3FPC65082MDZVMFHDM3",0,"MIT","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudflare-turnstile\ndescription: \"This skill should be used when the user asks to \\\"add turnstile\\\", \\\"implement bot protection\\\", \\\"validate turnstile token\\\", \\\"fix turnstile error\\\", \\\"setup captcha alternative\\\", or encounters error codes 100*\u002F300*\u002F600*, CSP errors, or token validation failures. Provides CAPTCHA-alternative protection for Cloudflare Workers, React, Next.js, and Hono.\"\nlicense: MIT\nmetadata:\n  version: \"1.1.0\"\n  last_verified: \"2025-11-26\"\n  react_turnstile_version: \"1.3.1\"\n  turnstile_types_version: \"1.2.3\"\n  errors_prevented: 12\n  templates_included: 7\n  references_included: 8\n  keywords:\n    - turnstile\n    - captcha\n    - bot protection\n    - cloudflare challenge\n    - siteverify\n    - recaptcha alternative\n    - spam prevention\n    - form protection\n    - cf-turnstile\n    - turnstile widget\n    - token validation\n    - managed challenge\n    - invisible challenge\n    - \"@marsidev\u002Freact-turnstile\"\n    - hono turnstile\n    - workers turnstile\n---\n# Cloudflare Turnstile\n\n**Status**: Production Ready ✅ | **Last Verified**: 2025-11-26\n\n**Dependencies**: None (optional: @marsidev\u002Freact-turnstile for React)\n\n**Contents**: [Quick Start](#quick-start-10-minutes) • [Critical Rules](#critical-rules) • [Top 12 Errors](#known-issues-prevention) • [Common Patterns](#common-patterns) • [When to Load References](#when-to-load-references) • [Troubleshooting](#troubleshooting)\n\n---\n\n## Quick Start (10 Minutes)\n\n### 1. Create Turnstile Widget\n\nGet your sitekey and secret key from Cloudflare Dashboard.\n\n```bash\n# Navigate to: https:\u002F\u002Fdash.cloudflare.com\u002F?to=\u002F:account\u002Fturnstile\n# Create new widget → Copy sitekey (public) and secret key (private)\n```\n\n**Why this matters:**\n- Each widget has unique sitekey\u002Fsecret pair\n- Sitekey goes in frontend (public)\n- Secret key ONLY in backend (private)\n- Use different widgets for dev\u002Fstaging\u002Fproduction\n\n### 2. Add Widget to Frontend\n\nEmbed the Turnstile widget in your HTML form.\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n  \u003Cscript src=\"https:\u002F\u002Fchallenges.cloudflare.com\u002Fturnstile\u002Fv0\u002Fapi.js\" async defer>\u003C\u002Fscript>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cform id=\"myForm\" action=\"\u002Fsubmit\" method=\"POST\">\n    \u003Cinput type=\"email\" name=\"email\" required>\n    \u003C!-- Turnstile widget renders here -->\n    \u003Cdiv class=\"cf-turnstile\" data-sitekey=\"YOUR_SITE_KEY\">\u003C\u002Fdiv>\n    \u003Cbutton type=\"submit\">Submit\u003C\u002Fbutton>\n  \u003C\u002Fform>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n**CRITICAL:**\n- Never proxy or cache `api.js` - must load from Cloudflare CDN\n- Widget auto-creates hidden input `cf-turnstile-response` with token\n- Token expires in 5 minutes\n- Each token is single-use only\n\n### 3. Validate Token on Server\n\nALWAYS validate the token server-side. Client-side verification alone is not secure.\n\n```typescript\n\u002F\u002F Cloudflare Workers example\nexport default {\n  async fetch(request: Request, env: Env): Promise\u003CResponse> {\n    const formData = await request.formData()\n    const token = formData.get('cf-turnstile-response')\n    const ip = request.headers.get('CF-Connecting-IP')\n\n    \u002F\u002F Validate token with Siteverify API\n    const verifyFormData = new FormData()\n    verifyFormData.append('secret', env.TURNSTILE_SECRET_KEY)\n    verifyFormData.append('response', token)\n    verifyFormData.append('remoteip', ip)\n\n    const result = await fetch(\n      'https:\u002F\u002Fchallenges.cloudflare.com\u002Fturnstile\u002Fv0\u002Fsiteverify',\n      {\n        method: 'POST',\n        body: verifyFormData,\n      }\n    )\n\n    const outcome = await result.json()\n\n    if (!outcome.success) {\n      return new Response('Invalid Turnstile token', { status: 401 })\n    }\n\n    \u002F\u002F Token valid - proceed with form processing\n    return new Response('Success!')\n  }\n}\n```\n\n---\n\n## The 3-Step Setup Process\n\n### Step 1: Create Widget Configuration\n\n1. Log into Cloudflare Dashboard\n2. Navigate to Turnstile section\n3. Click \"Add Site\"\n4. Configure:\n   - **Widget Mode**: Managed (recommended), Non-Interactive, or Invisible\n   - **Domains**: Add allowed hostnames (e.g., example.com, localhost for dev)\n   - **Name**: Descriptive name (e.g., \"Production Login Form\")\n\n**Key Points:**\n- Use separate widgets for dev\u002Fstaging\u002Fproduction\n- Restrict domains to only those you control\n- Managed mode provides best balance of security and UX\n- localhost must be explicitly added for local testing\n\n### Step 2: Client-Side Integration\n\nChoose between implicit or explicit rendering:\n\n**Implicit Rendering** (Recommended for static forms):\n```html\n\u003C!-- 1. Load script -->\n\u003Cscript src=\"https:\u002F\u002Fchallenges.cloudflare.com\u002Fturnstile\u002Fv0\u002Fapi.js\" async defer>\u003C\u002Fscript>\n\n\u003C!-- 2. Add widget -->\n\u003Cdiv class=\"cf-turnstile\"\n     data-sitekey=\"YOUR_SITE_KEY\"\n     data-callback=\"onSuccess\"\n     data-error-callback=\"onError\">\u003C\u002Fdiv>\n\n\u003Cscript>\nfunction onSuccess(token) {\n  console.log('Turnstile success:', token)\n}\n\nfunction onError(error) {\n  console.error('Turnstile error:', error)\n}\n\u003C\u002Fscript>\n```\n\n**Explicit Rendering** (For SPAs\u002Fdynamic UIs):\n```typescript\n\u002F\u002F 1. Load script with explicit mode\n\u003Cscript src=\"https:\u002F\u002Fchallenges.cloudflare.com\u002Fturnstile\u002Fv0\u002Fapi.js?render=explicit\" defer>\u003C\u002Fscript>\n\n\u002F\u002F 2. Render programmatically\nconst widgetId = turnstile.render('#container', {\n  sitekey: 'YOUR_SITE_KEY',\n  callback: (token) => {\n    console.log('Token:', token)\n  },\n  'error-callback': (error) => {\n    console.error('Error:', error)\n  },\n  theme: 'auto',\n  execution: 'render', \u002F\u002F or 'execute' for manual trigger\n})\n\n\u002F\u002F Control lifecycle\nturnstile.reset(widgetId)        \u002F\u002F Reset widget\nturnstile.remove(widgetId)       \u002F\u002F Remove widget\nturnstile.execute(widgetId)      \u002F\u002F Manually trigger challenge\nconst token = turnstile.getResponse(widgetId) \u002F\u002F Get current token\n```\n\n**React Integration** (using @marsidev\u002Freact-turnstile):\n```tsx\nimport { Turnstile } from '@marsidev\u002Freact-turnstile'\n\nexport function MyForm() {\n  const [token, setToken] = useState\u003Cstring>()\n\n  return (\n    \u003Cform>\n      \u003CTurnstile\n        siteKey={TURNSTILE_SITE_KEY}\n        onSuccess={setToken}\n        onError={(error) => console.error(error)}\n      \u002F>\n      \u003Cbutton disabled={!token}>Submit\u003C\u002Fbutton>\n    \u003C\u002Fform>\n  )\n}\n```\n\n### Step 3: Server-Side Validation\n\n**MANDATORY**: Always call Siteverify API to validate tokens.\n\n```typescript\ninterface TurnstileResponse {\n  success: boolean\n  challenge_ts?: string\n  hostname?: string\n  error-codes?: string[]\n  action?: string\n  cdata?: string\n}\n\nasync function validateTurnstile(\n  token: string,\n  secretKey: string,\n  options?: {\n    remoteip?: string\n    idempotency_key?: string\n    expectedAction?: string\n    expectedHostname?: string\n  }\n): Promise\u003CTurnstileResponse> {\n  const formData = new FormData()\n  formData.append('secret', secretKey)\n  formData.append('response', token)\n\n  if (options?.remoteip) {\n    formData.append('remoteip', options.remoteip)\n  }\n\n  if (options?.idempotency_key) {\n    formData.append('idempotency_key', options.idempotency_key)\n  }\n\n  const response = await fetch(\n    'https:\u002F\u002Fchallenges.cloudflare.com\u002Fturnstile\u002Fv0\u002Fsiteverify',\n    {\n      method: 'POST',\n      body: formData,\n    }\n  )\n\n  const result = await response.json\u003CTurnstileResponse>()\n\n  \u002F\u002F Additional validation\n  if (result.success) {\n    if (options?.expectedAction && result.action !== options.expectedAction) {\n      return { success: false, 'error-codes': ['action-mismatch'] }\n    }\n\n    if (options?.expectedHostname && result.hostname !== options.expectedHostname) {\n      return { success: false, 'error-codes': ['hostname-mismatch'] }\n    }\n  }\n\n  return result\n}\n\n\u002F\u002F Usage in Cloudflare Worker\nconst result = await validateTurnstile(\n  token,\n  env.TURNSTILE_SECRET_KEY,\n  {\n    remoteip: request.headers.get('CF-Connecting-IP'),\n    expectedHostname: 'example.com',\n  }\n)\n\nif (!result.success) {\n  return new Response('Turnstile validation failed', { status: 401 })\n}\n```\n\n---\n\n## Critical Rules\n\n### Always Do\n\n✅ **Call Siteverify API** - Server-side validation is mandatory\n✅ **Use HTTPS** - Never validate over HTTP\n✅ **Protect secret keys** - Never expose in frontend code\n✅ **Handle token expiration** - Tokens expire after 5 minutes\n✅ **Implement error callbacks** - Handle failures gracefully\n✅ **Use dummy keys for testing** - Test sitekey: `1x00000000000000000000AA`\n✅ **Set reasonable timeouts** - Don't wait indefinitely for validation\n✅ **Validate action\u002Fhostname** - Check additional fields when specified\n✅ **Rotate keys periodically** - Use dashboard or API to rotate secrets\n✅ **Monitor analytics** - Track solve rates and failures\n✅ **Validate token AFTER form submission** - Verify tokens after user completes form, not before. Premature validation creates security vulnerabilities where attackers obtain valid tokens then bypass protection\n\n### Never Do\n\n❌ **Skip server validation** - Client-side only = security vulnerability\n❌ **Proxy api.js script** - Must load from Cloudflare CDN\n❌ **Reuse tokens** - Each token is single-use only\n❌ **Use GET requests** - Siteverify only accepts POST\n❌ **Expose secret key** - Keep secrets in backend environment only\n❌ **Trust client-side validation** - Tokens can be forged\n❌ **Cache api.js** - Future updates will break your integration\n❌ **Use production keys in tests** - Use dummy keys instead\n❌ **Ignore error callbacks** - Always handle failures\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **12** documented issues:\n\n### Issue #1: Missing Server-Side Validation\n**Error**: Zero token validation in Turnstile Analytics dashboard\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fget-started\u002F\n**Why It Happens**: Developers only implement client-side widget, skip Siteverify call\n**Prevention**: All templates include mandatory server-side validation with Siteverify API\n\n### Issue #2: Token Expiration (5 Minutes)\n**Error**: `success: false` for valid tokens submitted after delay\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fget-started\u002Fserver-side-validation\n**Why It Happens**: Tokens expire 300 seconds after generation\n**Prevention**: Templates document TTL and implement token refresh on expiration\n\n### Issue #3: Secret Key Exposed in Frontend\n**Error**: Security bypass - attackers can validate their own tokens\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fget-started\u002Fserver-side-validation\n**Why It Happens**: Secret key hardcoded in JavaScript or visible in source\n**Prevention**: All templates show backend-only validation with environment variables\n\n### Issue #4: GET Request to Siteverify\n**Error**: API returns 405 Method Not Allowed\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fmigration\u002Frecaptcha\n**Why It Happens**: reCAPTCHA supports GET, Turnstile requires POST\n**Prevention**: Templates use POST with FormData or JSON body\n\n### Issue #5: Content Security Policy Blocking\n**Error**: Error 200500 - \"Loading error: The iframe could not be loaded\"\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Ftroubleshooting\u002Fclient-side-errors\u002Ferror-codes\n**Why It Happens**: CSP blocks challenges.cloudflare.com iframe\n**Prevention**: Skill includes CSP configuration reference and check-csp.sh script\n\n### Issue #6: Widget Crash (Error 300030)\n**Error**: Generic client execution error for legitimate users\n**Source**: https:\u002F\u002Fcommunity.cloudflare.com\u002Ft\u002Fturnstile-is-frequently-generating-300x-errors\u002F700903\n**Why It Happens**: Unknown - appears to be Cloudflare-side issue (2025)\n**Prevention**: Templates implement error callbacks, retry logic, and fallback handling\n\n### Issue #7: Configuration Error (Error 600010)\n**Error**: Widget fails with \"configuration error\"\n**Source**: https:\u002F\u002Fcommunity.cloudflare.com\u002Ft\u002Frepeated-cloudflare-turnstile-error-600010\u002F644578\n**Why It Happens**: Missing or deleted hostname in widget configuration\n**Prevention**: Templates document hostname allowlist requirement and verification steps\n\n### Issue #8: Safari 18 \u002F macOS 15 \"Hide IP\" Issue\n**Error**: Error 300010 when Safari's \"Hide IP address\" is enabled\n**Source**: https:\u002F\u002Fcommunity.cloudflare.com\u002Ft\u002Fturnstile-is-frequently-generating-300x-errors\u002F700903\n**Why It Happens**: Privacy settings interfere with challenge signals\n**Prevention**: Error handling reference documents Safari workaround (disable Hide IP)\n\n### Issue #9: Brave Browser Confetti Animation Failure\n**Error**: Verification fails during success animation\n**Source**: https:\u002F\u002Fgithub.com\u002Fbrave\u002Fbrave-browser\u002Fissues\u002F45608 (April 2025)\n**Why It Happens**: Brave shields block animation scripts\n**Prevention**: Templates handle success before animation completes\n\n### Issue #10: Next.js + Jest Incompatibility\n**Error**: @marsidev\u002Freact-turnstile breaks Jest tests\n**Source**: https:\u002F\u002Fgithub.com\u002Fmarsidev\u002Freact-turnstile\u002Fissues\u002F112 (Oct 2025)\n**Why It Happens**: Module resolution issues with Jest\n**Prevention**: Testing guide includes Jest mocking patterns and dummy sitekey usage\n\n### Issue #11: localhost Not in Allowlist\n**Error**: Error 110200 - \"Unknown domain: Domain not allowed\"\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Ftroubleshooting\u002Fclient-side-errors\u002Ferror-codes\n**Why It Happens**: Production widget used in development without localhost in allowlist\n**Prevention**: Templates use dummy test keys for dev, document localhost allowlist requirement\n\n### Issue #12: Token Reuse Attempt\n**Error**: `success: false` with \"token already spent\" error\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Ftroubleshooting\u002Ftesting\n**Why It Happens**: Each token can only be validated once\n**Prevention**: Templates document single-use constraint and token refresh patterns\n\n---\n\n## Configuration\n\n**Wrangler (Workers)**: Load `templates\u002Fwrangler-turnstile-config.jsonc` for complete configuration. Key settings: `vars` for public sitekey (safe to commit), `secrets` for private secret key (use `wrangler secret put TURNSTILE_SECRET_KEY`).\n\n**CSP Directives** (if using Content Security Policy):\n```html\n\u003Cmeta http-equiv=\"Content-Security-Policy\" content=\"\n  script-src 'self' https:\u002F\u002Fchallenges.cloudflare.com;\n  frame-src 'self' https:\u002F\u002Fchallenges.cloudflare.com;\n  connect-src 'self' https:\u002F\u002Fchallenges.cloudflare.com;\">\n```\n\n---\n\n## Common Patterns\n\n**Hono + Cloudflare Workers**: Server-side validation in Workers API routes with Hono framework. Load `references\u002Fcommon-patterns.md` #pattern-1 when building Workers endpoints requiring bot protection.\n\n**React + Next.js**: Client-side forms with @marsidev\u002Freact-turnstile integration. Load `references\u002Fcommon-patterns.md` #pattern-2 when integrating Turnstile with React\u002FNext.js applications.\n\n**E2E Testing**: Automated testing with dummy keys (Playwright, Cypress, Jest). Load `references\u002Fcommon-patterns.md` #pattern-3 when writing E2E tests or setting up CI\u002FCD pipelines.\n\n**Widget Lifecycle**: Programmatic widget control for SPAs (render, reset, remove, getToken). Load `references\u002Fcommon-patterns.md` #pattern-4 when building SPAs requiring explicit widget management.\n\n---\n\n## When to Load References\n\n**`references\u002Fwidget-configs.md`**: Configuring widget appearance, themes, execution modes, size, language, or retry behavior.\n\n**`references\u002Ferror-codes.md`**: Debugging error codes 100*, 200*, 300*, 400*, 600* or troubleshooting client-side failures (CSP, domain errors, widget crashes).\n\n**`references\u002Ftesting-guide.md`**: Setting up E2E tests (Playwright, Cypress), local development with dummy keys, or CI\u002FCD pipeline integration.\n\n**`references\u002Freact-integration.md`**: Integrating with React, Next.js, or troubleshooting @marsidev\u002Freact-turnstile issues (Jest mocking, SSR, hooks).\n\n**`references\u002Fcommon-patterns.md`**: Building Hono Workers routes, React forms, E2E tests, or widget lifecycle management (explicit rendering).\n\n**`references\u002Fadvanced-topics.md`**: Implementing pre-clearance for SPAs, custom actions\u002Fcdata, retry strategies, or multi-widget pages.\n\n**`references\u002Fsetup-checklist.md`**: Preparing for deployment, verifying complete setup, or ensuring production readiness (14-point checklist).\n\n**`references\u002Fmigration-guide.md`**: Migrating from reCAPTCHA (v2) or hCaptcha to Turnstile, including compat mode, API differences, and POST-only Siteverify requirement.\n\n**`references\u002Fbrowser-support.md`**: Browser compatibility matrix, Safari 18 \"Hide IP\" workaround, Brave shields issues, and browser-specific fallbacks.\n\n**`references\u002Fmobile-implementation.md`**: WebView integration for iOS, Android, React Native, and Flutter, including User Agent consistency and storage persistence requirements.\n\n**`templates\u002F`**: **wrangler-turnstile-config.jsonc** (Workers env), **turnstile-widget-implicit.html** (static forms), **turnstile-widget-explicit.ts** (SPA rendering), **turnstile-server-validation.ts** (Siteverify API), **turnstile-react-component.tsx** (React integration), **turnstile-hono-route.ts** (Hono validation), **turnstile-test-config.ts** (testing setup)\n\n**`scripts\u002Fcheck-csp.sh`**: Verify Content Security Policy allows Turnstile (usage: `.\u002Fscripts\u002Fcheck-csp.sh https:\u002F\u002Fexample.com`)\n\n---\n\n\n## Dependencies\n\n**Required**: None (Turnstile loads from Cloudflare CDN)\n\n**Optional**: @marsidev\u002Freact-turnstile@1.3.1 (React), turnstile-types@1.2.3 (TypeScript), vue-turnstile (Vue 3), ngx-turnstile (Angular), svelte-turnstile (Svelte), @nuxtjs\u002Fturnstile (Nuxt)\n\n---\n\n## Official Documentation\n\n**Turnstile**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002F • **Get Started**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fget-started\u002F • **Error Codes**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Ftroubleshooting\u002Fclient-side-errors\u002Ferror-codes\u002F • **Testing**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Ftroubleshooting\u002Ftesting\u002F • **Migration (reCAPTCHA)**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fmigration\u002Frecaptcha\u002F • **MCP**: Use `mcp__cloudflare-docs__search_cloudflare_documentation` tool\n\n---\n\n## Troubleshooting\n\n### Problem: Error 110200 - \"Unknown domain\"\n**Solution**: Add your domain (including localhost for dev) to widget's allowed domains in Cloudflare Dashboard. For local dev, use dummy test sitekey `1x00000000000000000000AA` instead.\n\n### Problem: Error 300030 - Widget crashes for legitimate users\n**Solution**: Implement error callback with retry logic. This is a known Cloudflare-side issue (2025). Fallback to alternative verification if retries fail.\n\n### Problem: Tokens always return `success: false`\n**Solution**:\n1. Check token hasn't expired (5 min TTL)\n2. Verify secret key is correct\n3. Ensure token hasn't been validated before (single-use)\n4. Check hostname matches widget configuration\n\n### Problem: CSP blocking iframe (Error 200500)\n**Solution**: Add CSP directives:\n```html\n\u003Cmeta http-equiv=\"Content-Security-Policy\" content=\"\n  frame-src https:\u002F\u002Fchallenges.cloudflare.com;\n  script-src https:\u002F\u002Fchallenges.cloudflare.com;\n\">\n```\n\n### Problem: Safari 18 \"Hide IP\" causing Error 300010\n**Solution**: Document in error message that users should disable Safari's \"Hide IP address\" setting (Safari → Settings → Privacy → Hide IP address → Off)\n\n### Problem: Next.js + Jest tests failing with @marsidev\u002Freact-turnstile\n**Solution**: Mock the Turnstile component in Jest setup:\n```typescript\n\u002F\u002F jest.setup.ts\njest.mock('@marsidev\u002Freact-turnstile', () => ({\n  Turnstile: () => \u003Cdiv data-testid=\"turnstile-mock\" \u002F>,\n}))\n```\n\n---\n\n**Token Efficiency**: ~65-70% savings vs manual integration\n\n**Errors Prevented**: 12 documented security\u002Fvalidation issues with complete solutions\n\n**Deployment Checklist**: Load `references\u002Fsetup-checklist.md` for complete 14-point pre-deployment verification\n","# Cloudflare Turnstile\n\n**Status**: Production Ready ✅ | **Last Verified**: 2025-11-26\n\n**Dependencies**: None (optional: @marsidev\u002Freact-turnstile for React)\n\n**Contents**: [Quick Start](#quick-start-10-minutes) • [Critical Rules](#critical-rules) • [Top 12 Errors](#known-issues-prevention) • [Common Patterns](#common-patterns) • [When to Load References](#when-to-load-references) • [Troubleshooting](#troubleshooting)\n\n---\n\n## Quick Start (10 Minutes)\n\n### 1. Create Turnstile Widget\n\nGet your sitekey and secret key from Cloudflare Dashboard.\n\n```bash\n# Navigate to: https:\u002F\u002Fdash.cloudflare.com\u002F?to=\u002F:account\u002Fturnstile\n# Create new widget → Copy sitekey (public) and secret key (private)\n```\n\n**Why this matters:**\n- Each widget has unique sitekey\u002Fsecret pair\n- Sitekey goes in frontend (public)\n- Secret key ONLY in backend (private)\n- Use different widgets for dev\u002Fstaging\u002Fproduction\n\n### 2. Add Widget to Frontend\n\nEmbed the Turnstile widget in your HTML form.\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n  \u003Cscript src=\"https:\u002F\u002Fchallenges.cloudflare.com\u002Fturnstile\u002Fv0\u002Fapi.js\" async defer>\u003C\u002Fscript>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cform id=\"myForm\" action=\"\u002Fsubmit\" method=\"POST\">\n    \u003Cinput type=\"email\" name=\"email\" required>\n    \u003C!-- Turnstile widget renders here -->\n    \u003Cdiv class=\"cf-turnstile\" data-sitekey=\"YOUR_SITE_KEY\">\u003C\u002Fdiv>\n    \u003Cbutton type=\"submit\">Submit\u003C\u002Fbutton>\n  \u003C\u002Fform>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n**CRITICAL:**\n- Never proxy or cache `api.js` - must load from Cloudflare CDN\n- Widget auto-creates hidden input `cf-turnstile-response` with token\n- Token expires in 5 minutes\n- Each token is single-use only\n\n### 3. Validate Token on Server\n\nALWAYS validate the token server-side. Client-side verification alone is not secure.\n\n```typescript\n\u002F\u002F Cloudflare Workers example\nexport default {\n  async fetch(request: Request, env: Env): Promise\u003CResponse> {\n    const formData = await request.formData()\n    const token = formData.get('cf-turnstile-response')\n    const ip = request.headers.get('CF-Connecting-IP')\n\n    \u002F\u002F Validate token with Siteverify API\n    const verifyFormData = new FormData()\n    verifyFormData.append('secret', env.TURNSTILE_SECRET_KEY)\n    verifyFormData.append('response', token)\n    verifyFormData.append('remoteip', ip)\n\n    const result = await fetch(\n      'https:\u002F\u002Fchallenges.cloudflare.com\u002Fturnstile\u002Fv0\u002Fsiteverify',\n      {\n        method: 'POST',\n        body: verifyFormData,\n      }\n    )\n\n    const outcome = await result.json()\n\n    if (!outcome.success) {\n      return new Response('Invalid Turnstile token', { status: 401 })\n    }\n\n    \u002F\u002F Token valid - proceed with form processing\n    return new Response('Success!')\n  }\n}\n```\n\n---\n\n## The 3-Step Setup Process\n\n### Step 1: Create Widget Configuration\n\n1. Log into Cloudflare Dashboard\n2. Navigate to Turnstile section\n3. Click \"Add Site\"\n4. Configure:\n   - **Widget Mode**: Managed (recommended), Non-Interactive, or Invisible\n   - **Domains**: Add allowed hostnames (e.g., example.com, localhost for dev)\n   - **Name**: Descriptive name (e.g., \"Production Login Form\")\n\n**Key Points:**\n- Use separate widgets for dev\u002Fstaging\u002Fproduction\n- Restrict domains to only those you control\n- Managed mode provides best balance of security and UX\n- localhost must be explicitly added for local testing\n\n### Step 2: Client-Side Integration\n\nChoose between implicit or explicit rendering:\n\n**Implicit Rendering** (Recommended for static forms):\n```html\n\u003C!-- 1. Load script -->\n\u003Cscript src=\"https:\u002F\u002Fchallenges.cloudflare.com\u002Fturnstile\u002Fv0\u002Fapi.js\" async defer>\u003C\u002Fscript>\n\n\u003C!-- 2. Add widget -->\n\u003Cdiv class=\"cf-turnstile\"\n     data-sitekey=\"YOUR_SITE_KEY\"\n     data-callback=\"onSuccess\"\n     data-error-callback=\"onError\">\u003C\u002Fdiv>\n\n\u003Cscript>\nfunction onSuccess(token) {\n  console.log('Turnstile success:', token)\n}\n\nfunction onError(error) {\n  console.error('Turnstile error:', error)\n}\n\u003C\u002Fscript>\n```\n\n**Explicit Rendering** (For SPAs\u002Fdynamic UIs):\n```typescript\n\u002F\u002F 1. Load script with explicit mode\n\u003Cscript src=\"https:\u002F\u002Fchallenges.cloudflare.com\u002Fturnstile\u002Fv0\u002Fapi.js?render=explicit\" defer>\u003C\u002Fscript>\n\n\u002F\u002F 2. Render programmatically\nconst widgetId = turnstile.render('#container', {\n  sitekey: 'YOUR_SITE_KEY',\n  callback: (token) => {\n    console.log('Token:', token)\n  },\n  'error-callback': (error) => {\n    console.error('Error:', error)\n  },\n  theme: 'auto',\n  execution: 'render', \u002F\u002F or 'execute' for manual trigger\n})\n\n\u002F\u002F Control lifecycle\nturnstile.reset(widgetId)        \u002F\u002F Reset widget\nturnstile.remove(widgetId)       \u002F\u002F Remove widget\nturnstile.execute(widgetId)      \u002F\u002F Manually trigger challenge\nconst token = turnstile.getResponse(widgetId) \u002F\u002F Get current token\n```\n\n**React Integration** (using @marsidev\u002Freact-turnstile):\n```tsx\nimport { Turnstile } from '@marsidev\u002Freact-turnstile'\n\nexport function MyForm() {\n  const [token, setToken] = useState\u003Cstring>()\n\n  return (\n    \u003Cform>\n      \u003CTurnstile\n        siteKey={TURNSTILE_SITE_KEY}\n        onSuccess={setToken}\n        onError={(error) => console.error(error)}\n      \u002F>\n      \u003Cbutton disabled={!token}>Submit\u003C\u002Fbutton>\n    \u003C\u002Fform>\n  )\n}\n```\n\n### Step 3: Server-Side Validation\n\n**MANDATORY**: Always call Siteverify API to validate tokens.\n\n```typescript\ninterface TurnstileResponse {\n  success: boolean\n  challenge_ts?: string\n  hostname?: string\n  error-codes?: string[]\n  action?: string\n  cdata?: string\n}\n\nasync function validateTurnstile(\n  token: string,\n  secretKey: string,\n  options?: {\n    remoteip?: string\n    idempotency_key?: string\n    expectedAction?: string\n    expectedHostname?: string\n  }\n): Promise\u003CTurnstileResponse> {\n  const formData = new FormData()\n  formData.append('secret', secretKey)\n  formData.append('response', token)\n\n  if (options?.remoteip) {\n    formData.append('remoteip', options.remoteip)\n  }\n\n  if (options?.idempotency_key) {\n    formData.append('idempotency_key', options.idempotency_key)\n  }\n\n  const response = await fetch(\n    'https:\u002F\u002Fchallenges.cloudflare.com\u002Fturnstile\u002Fv0\u002Fsiteverify',\n    {\n      method: 'POST',\n      body: formData,\n    }\n  )\n\n  const result = await response.json\u003CTurnstileResponse>()\n\n  \u002F\u002F Additional validation\n  if (result.success) {\n    if (options?.expectedAction && result.action !== options.expectedAction) {\n      return { success: false, 'error-codes': ['action-mismatch'] }\n    }\n\n    if (options?.expectedHostname && result.hostname !== options.expectedHostname) {\n      return { success: false, 'error-codes': ['hostname-mismatch'] }\n    }\n  }\n\n  return result\n}\n\n\u002F\u002F Usage in Cloudflare Worker\nconst result = await validateTurnstile(\n  token,\n  env.TURNSTILE_SECRET_KEY,\n  {\n    remoteip: request.headers.get('CF-Connecting-IP'),\n    expectedHostname: 'example.com',\n  }\n)\n\nif (!result.success) {\n  return new Response('Turnstile validation failed', { status: 401 })\n}\n```\n\n---\n\n## Critical Rules\n\n### Always Do\n\n✅ **Call Siteverify API** - Server-side validation is mandatory\n✅ **Use HTTPS** - Never validate over HTTP\n✅ **Protect secret keys** - Never expose in frontend code\n✅ **Handle token expiration** - Tokens expire after 5 minutes\n✅ **Implement error callbacks** - Handle failures gracefully\n✅ **Use dummy keys for testing** - Test sitekey: `1x00000000000000000000AA`\n✅ **Set reasonable timeouts** - Don't wait indefinitely for validation\n✅ **Validate action\u002Fhostname** - Check additional fields when specified\n✅ **Rotate keys periodically** - Use dashboard or API to rotate secrets\n✅ **Monitor analytics** - Track solve rates and failures\n✅ **Validate token AFTER form submission** - Verify tokens after user completes form, not before. Premature validation creates security vulnerabilities where attackers obtain valid tokens then bypass protection\n\n### Never Do\n\n❌ **Skip server validation** - Client-side only = security vulnerability\n❌ **Proxy api.js script** - Must load from Cloudflare CDN\n❌ **Reuse tokens** - Each token is single-use only\n❌ **Use GET requests** - Siteverify only accepts POST\n❌ **Expose secret key** - Keep secrets in backend environment only\n❌ **Trust client-side validation** - Tokens can be forged\n❌ **Cache api.js** - Future updates will break your integration\n❌ **Use production keys in tests** - Use dummy keys instead\n❌ **Ignore error callbacks** - Always handle failures\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **12** documented issues:\n\n### Issue #1: Missing Server-Side Validation\n**Error**: Zero token validation in Turnstile Analytics dashboard\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fget-started\u002F\n**Why It Happens**: Developers only implement client-side widget, skip Siteverify call\n**Prevention**: All templates include mandatory server-side validation with Siteverify API\n\n### Issue #2: Token Expiration (5 Minutes)\n**Error**: `success: false` for valid tokens submitted after delay\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fget-started\u002Fserver-side-validation\n**Why It Happens**: Tokens expire 300 seconds after generation\n**Prevention**: Templates document TTL and implement token refresh on expiration\n\n### Issue #3: Secret Key Exposed in Frontend\n**Error**: Security bypass - attackers can validate their own tokens\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fget-started\u002Fserver-side-validation\n**Why It Happens**: Secret key hardcoded in JavaScript or visible in source\n**Prevention**: All templates show backend-only validation with environment variables\n\n### Issue #4: GET Request to Siteverify\n**Error**: API returns 405 Method Not Allowed\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fmigration\u002Frecaptcha\n**Why It Happens**: reCAPTCHA supports GET, Turnstile requires POST\n**Prevention**: Templates use POST with FormData or JSON body\n\n### Issue #5: Content Security Policy Blocking\n**Error**: Error 200500 - \"Loading error: The iframe could not be loaded\"\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Ftroubleshooting\u002Fclient-side-errors\u002Ferror-codes\n**Why It Happens**: CSP blocks challenges.cloudflare.com iframe\n**Prevention**: Skill includes CSP configuration reference and check-csp.sh script\n\n### Issue #6: Widget Crash (Error 300030)\n**Error**: Generic client execution error for legitimate users\n**Source**: https:\u002F\u002Fcommunity.cloudflare.com\u002Ft\u002Fturnstile-is-frequently-generating-300x-errors\u002F700903\n**Why It Happens**: Unknown - appears to be Cloudflare-side issue (2025)\n**Prevention**: Templates implement error callbacks, retry logic, and fallback handling\n\n### Issue #7: Configuration Error (Error 600010)\n**Error**: Widget fails with \"configuration error\"\n**Source**: https:\u002F\u002Fcommunity.cloudflare.com\u002Ft\u002Frepeated-cloudflare-turnstile-error-600010\u002F644578\n**Why It Happens**: Missing or deleted hostname in widget configuration\n**Prevention**: Templates document hostname allowlist requirement and verification steps\n\n### Issue #8: Safari 18 \u002F macOS 15 \"Hide IP\" Issue\n**Error**: Error 300010 when Safari's \"Hide IP address\" is enabled\n**Source**: https:\u002F\u002Fcommunity.cloudflare.com\u002Ft\u002Fturnstile-is-frequently-generating-300x-errors\u002F700903\n**Why It Happens**: Privacy settings interfere with challenge signals\n**Prevention**: Error handling reference documents Safari workaround (disable Hide IP)\n\n### Issue #9: Brave Browser Confetti Animation Failure\n**Error**: Verification fails during success animation\n**Source**: https:\u002F\u002Fgithub.com\u002Fbrave\u002Fbrave-browser\u002Fissues\u002F45608 (April 2025)\n**Why It Happens**: Brave shields block animation scripts\n**Prevention**: Templates handle success before animation completes\n\n### Issue #10: Next.js + Jest Incompatibility\n**Error**: @marsidev\u002Freact-turnstile breaks Jest tests\n**Source**: https:\u002F\u002Fgithub.com\u002Fmarsidev\u002Freact-turnstile\u002Fissues\u002F112 (Oct 2025)\n**Why It Happens**: Module resolution issues with Jest\n**Prevention**: Testing guide includes Jest mocking patterns and dummy sitekey usage\n\n### Issue #11: localhost Not in Allowlist\n**Error**: Error 110200 - \"Unknown domain: Domain not allowed\"\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Ftroubleshooting\u002Fclient-side-errors\u002Ferror-codes\n**Why It Happens**: Production widget used in development without localhost in allowlist\n**Prevention**: Templates use dummy test keys for dev, document localhost allowlist requirement\n\n### Issue #12: Token Reuse Attempt\n**Error**: `success: false` with \"token already spent\" error\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Ftroubleshooting\u002Ftesting\n**Why It Happens**: Each token can only be validated once\n**Prevention**: Templates document single-use constraint and token refresh patterns\n\n---\n\n## Configuration\n\n**Wrangler (Workers)**: Load `templates\u002Fwrangler-turnstile-config.jsonc` for complete configuration. Key settings: `vars` for public sitekey (safe to commit), `secrets` for private secret key (use `wrangler secret put TURNSTILE_SECRET_KEY`).\n\n**CSP Directives** (if using Content Security Policy):\n```html\n\u003Cmeta http-equiv=\"Content-Security-Policy\" content=\"\n  script-src 'self' https:\u002F\u002Fchallenges.cloudflare.com;\n  frame-src 'self' https:\u002F\u002Fchallenges.cloudflare.com;\n  connect-src 'self' https:\u002F\u002Fchallenges.cloudflare.com;\">\n```\n\n---\n\n## Common Patterns\n\n**Hono + Cloudflare Workers**: Server-side validation in Workers API routes with Hono framework. Load `references\u002Fcommon-patterns.md` #pattern-1 when building Workers endpoints requiring bot protection.\n\n**React + Next.js**: Client-side forms with @marsidev\u002Freact-turnstile integration. Load `references\u002Fcommon-patterns.md` #pattern-2 when integrating Turnstile with React\u002FNext.js applications.\n\n**E2E Testing**: Automated testing with dummy keys (Playwright, Cypress, Jest). Load `references\u002Fcommon-patterns.md` #pattern-3 when writing E2E tests or setting up CI\u002FCD pipelines.\n\n**Widget Lifecycle**: Programmatic widget control for SPAs (render, reset, remove, getToken). Load `references\u002Fcommon-patterns.md` #pattern-4 when building SPAs requiring explicit widget management.\n\n---\n\n## When to Load References\n\n**`references\u002Fwidget-configs.md`**: Configuring widget appearance, themes, execution modes, size, language, or retry behavior.\n\n**`references\u002Ferror-codes.md`**: Debugging error codes 100*, 200*, 300*, 400*, 600* or troubleshooting client-side failures (CSP, domain errors, widget crashes).\n\n**`references\u002Ftesting-guide.md`**: Setting up E2E tests (Playwright, Cypress), local development with dummy keys, or CI\u002FCD pipeline integration.\n\n**`references\u002Freact-integration.md`**: Integrating with React, Next.js, or troubleshooting @marsidev\u002Freact-turnstile issues (Jest mocking, SSR, hooks).\n\n**`references\u002Fcommon-patterns.md`**: Building Hono Workers routes, React forms, E2E tests, or widget lifecycle management (explicit rendering).\n\n**`references\u002Fadvanced-topics.md`**: Implementing pre-clearance for SPAs, custom actions\u002Fcdata, retry strategies, or multi-widget pages.\n\n**`references\u002Fsetup-checklist.md`**: Preparing for deployment, verifying complete setup, or ensuring production readiness (14-point checklist).\n\n**`references\u002Fmigration-guide.md`**: Migrating from reCAPTCHA (v2) or hCaptcha to Turnstile, including compat mode, API differences, and POST-only Siteverify requirement.\n\n**`references\u002Fbrowser-support.md`**: Browser compatibility matrix, Safari 18 \"Hide IP\" workaround, Brave shields issues, and browser-specific fallbacks.\n\n**`references\u002Fmobile-implementation.md`**: WebView integration for iOS, Android, React Native, and Flutter, including User Agent consistency and storage persistence requirements.\n\n**`templates\u002F`**: **wrangler-turnstile-config.jsonc** (Workers env), **turnstile-widget-implicit.html** (static forms), **turnstile-widget-explicit.ts** (SPA rendering), **turnstile-server-validation.ts** (Siteverify API), **turnstile-react-component.tsx** (React integration), **turnstile-hono-route.ts** (Hono validation), **turnstile-test-config.ts** (testing setup)\n\n**`scripts\u002Fcheck-csp.sh`**: Verify Content Security Policy allows Turnstile (usage: `.\u002Fscripts\u002Fcheck-csp.sh https:\u002F\u002Fexample.com`)\n\n---\n\n\n## Dependencies\n\n**Required**: None (Turnstile loads from Cloudflare CDN)\n\n**Optional**: @marsidev\u002Freact-turnstile@1.3.1 (React), turnstile-types@1.2.3 (TypeScript), vue-turnstile (Vue 3), ngx-turnstile (Angular), svelte-turnstile (Svelte), @nuxtjs\u002Fturnstile (Nuxt)\n\n---\n\n## Official Documentation\n\n**Turnstile**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002F • **Get Started**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fget-started\u002F • **Error Codes**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Ftroubleshooting\u002Fclient-side-errors\u002Ferror-codes\u002F • **Testing**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Ftroubleshooting\u002Ftesting\u002F • **Migration (reCAPTCHA)**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fturnstile\u002Fmigration\u002Frecaptcha\u002F • **MCP**: Use `mcp__cloudflare-docs__search_cloudflare_documentation` tool\n\n---\n\n## Troubleshooting\n\n### Problem: Error 110200 - \"Unknown domain\"\n**Solution**: Add your domain (including localhost for dev) to widget's allowed domains in Cloudflare Dashboard. For local dev, use dummy test sitekey `1x00000000000000000000AA` instead.\n\n### Problem: Error 300030 - Widget crashes for legitimate users\n**Solution**: Implement error callback with retry logic. This is a known Cloudflare-side issue (2025). Fallback to alternative verification if retries fail.\n\n### Problem: Tokens always return `success: false`\n**Solution**:\n1. Check token hasn't expired (5 min TTL)\n2. Verify secret key is correct\n3. Ensure token hasn't been validated before (single-use)\n4. Check hostname matches widget configuration\n\n### Problem: CSP blocking iframe (Error 200500)\n**Solution**: Add CSP directives:\n```html\n\u003Cmeta http-equiv=\"Content-Security-Policy\" content=\"\n  frame-src https:\u002F\u002Fchallenges.cloudflare.com;\n  script-src https:\u002F\u002Fchallenges.cloudflare.com;\n\">\n```\n\n### Problem: Safari 18 \"Hide IP\" causing Error 300010\n**Solution**: Document in error message that users should disable Safari's \"Hide IP address\" setting (Safari → Settings → Privacy → Hide IP address → Off)\n\n### Problem: Next.js + Jest tests failing with @marsidev\u002Freact-turnstile\n**Solution**: Mock the Turnstile component in Jest setup:\n```typescript\n\u002F\u002F jest.setup.ts\njest.mock('@marsidev\u002Freact-turnstile', () => ({\n  Turnstile: () => \u003Cdiv data-testid=\"turnstile-mock\" \u002F>,\n}))\n```\n\n---\n\n**Token Efficiency**: ~65-70% savings vs manual integration\n\n**Errors Prevented**: 12 documented security\u002Fvalidation issues with complete solutions\n\n**Deployment Checklist**: Load `references\u002Fsetup-checklist.md` for complete 14-point pre-deployment verification\n",{"name":5,"license":15,"metadata":24,"description":7},{"version":25,"keywords":26,"last_verified":43,"errors_prevented":44,"templates_included":45,"references_included":46,"react_turnstile_version":47,"turnstile_types_version":48},"1.1.0",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"turnstile","captcha","bot protection","cloudflare challenge","siteverify","recaptcha alternative","spam prevention","form protection","cf-turnstile","turnstile widget","token validation","managed challenge","invisible challenge","@marsidev\u002Freact-turnstile","hono turnstile","workers turnstile","2025-11-26",12,7,8,"1.3.1","1.2.3","main","c475fc64e94e803b50d14a791dfee8853fbb2c5c","integrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory","https:\u002F\u002Fgithub.com\u002FElogic360","2026-11-08 22:21:22",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add Elogic360\u002Fsoftware-factory --skill cloudflare-turnstile",{"tool":61,"command":62},"bunx","bunx skills add Elogic360\u002Fsoftware-factory --skill cloudflare-turnstile",{"tool":64,"command":65},"pnpm","pnpm dlx skills add Elogic360\u002Fsoftware-factory --skill cloudflare-turnstile","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002FSKILL.md",true,[69,75,79,83,87,91,95,99,103,107,111,117,121,127,131,135,139,143],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fadvanced-topics.md","REFERENCE","参考文档",9269,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fadvanced-topics.md",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fbrowser-support.md",17641,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fbrowser-support.md",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fcommon-patterns.md",8363,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fcommon-patterns.md",{"path":84,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Ferror-codes.md",12249,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Ferror-codes.md",{"path":88,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fmigration-guide.md",18418,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fmigration-guide.md",{"path":92,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fmobile-implementation.md",23234,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fmobile-implementation.md",{"path":96,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Freact-integration.md",11137,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Freact-integration.md",{"path":100,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fsetup-checklist.md",7574,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fsetup-checklist.md",{"path":104,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Ftesting-guide.md",10546,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Ftesting-guide.md",{"path":108,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Fwidget-configs.md",12901,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fwidget-configs.md",{"path":112,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":115,"sourceHtmlUrl":116},"scripts\u002Fcheck-csp.sh","SCRIPT","脚本",3872,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Fscripts\u002Fcheck-csp.sh",{"path":118,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":119,"sourceHtmlUrl":120},"templates\u002Fturnstile-hono-route.ts",6274,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-hono-route.ts",{"path":122,"resourceType":123,"resourceTypeDesc":124,"sizeBytes":125,"sourceHtmlUrl":126},"templates\u002Fturnstile-react-component.tsx","OTHER","其他",7963,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-react-component.tsx",{"path":128,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":129,"sourceHtmlUrl":130},"templates\u002Fturnstile-server-validation.ts",5988,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-server-validation.ts",{"path":132,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":133,"sourceHtmlUrl":134},"templates\u002Fturnstile-test-config.ts",7352,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-test-config.ts",{"path":136,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":137,"sourceHtmlUrl":138},"templates\u002Fturnstile-widget-explicit.ts",6636,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-widget-explicit.ts",{"path":140,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":141,"sourceHtmlUrl":142},"templates\u002Fturnstile-widget-implicit.html",4473,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-widget-implicit.html",{"path":144,"resourceType":123,"resourceTypeDesc":124,"sizeBytes":145,"sourceHtmlUrl":146},"templates\u002Fwrangler-turnstile-config.jsonc",1017,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fwrangler-turnstile-config.jsonc",[148,156,163,170,177,184],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":152,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":19},"01M79G206MT3J6S0GY3C45P2KV","vss-summarize-video","Use to summarize a recorded video via the LVS summarization microservice (HITL-gated) with a VLM fallback. Not for report generation or live RTSP captioning.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-summarize-video\u002FSKILL.md",[],[],{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":152,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":19},"01M79G1WN63PGRE8CKD47WEBQ5","vss-setup-video-analytics-api","Use to deploy the vss-video-analytics-api REST service standalone (config-source, data-log bind, Elasticsearch, optional Kafka). Not for full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-video-analytics-api\u002FSKILL.md",[],[],{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":152,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":19},"01M79G1S9F7VY3EF6H53PRP5AN","vss-setup-behavior-analytics","Use to deploy the vss-behavior-analytics service standalone (entrypoint, config-source, optional calibration). Not for the full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-behavior-analytics\u002FSKILL.md",[],[],{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":152,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":19},"01M79G1N1S1Y27PFZPYMNK1MTQ","vss-search-archive","Use this skill to run top-level VSS fusion search on archived video, or to ingest video files \u002F RTSP streams for search. Do NOT use for ad-hoc visual Q&A (use vss-ask-video), live captioning (use vss-deploy-dense-captioning), or video summarization and reports (use vss-summarize-video).","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-search-archive\u002FSKILL.md",[],[],{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":152,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":19},"01M79G1H6WN0Q6C0VCAXCZX6B7","vss-query-analytics","Use this skill when reading video-analytics metrics, incidents, alerts, and sensor data via the VA-MCP server (port 9901). Not for live VLM or incident-range narrative reports.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-query-analytics\u002FSKILL.md",[],[],{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":152,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":19},"01M79G1DYPNXQS7QHZ0AAF5FX5","vss-manage-video-io-storage","Use to call the VIOS REST API (sensor list, timelines, clip extraction, snapshots, add\u002Fdelete sensors and streams). Not for VLM inference or search.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-manage-video-io-storage\u002FSKILL.md",[],[]]