[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M783NBM1HFD7V8ARDF61Y146":3,"skill-same:01M783NBM1HFD7V8ARDF61Y146":146},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":13,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M783NBM1HFD7V8ARDF61Y146","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.","aibizmod\u002Faibizmod-service-web","aibizmod","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F295315630?v=4","01M7836CB8EQY701YQ7N88M591","01M7836CBVPZGNSJ8BRP2BT398",0,"MIT","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\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":14,"metadata":23,"description":7},{"version":24,"keywords":25,"last_verified":42,"errors_prevented":43,"templates_included":44,"references_included":45,"react_turnstile_version":46,"turnstile_types_version":47},"1.1.0",[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"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","9f54582c8b485462d402d7e70feaef34801746b9",".opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web","https:\u002F\u002Fgithub.com\u002Faibizmod","2026-09-24 00:48:11",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add aibizmod\u002Faibizmod-service-web --skill cloudflare-turnstile",{"tool":60,"command":61},"bunx","bunx skills add aibizmod\u002Faibizmod-service-web --skill cloudflare-turnstile",{"tool":63,"command":64},"pnpm","pnpm dlx skills add aibizmod\u002Faibizmod-service-web --skill cloudflare-turnstile","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002FSKILL.md",true,[68,74,78,82,86,90,94,98,102,106,110,116,120,126,130,134,138,142],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fadvanced-topics.md","REFERENCE","参考文档",9269,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fadvanced-topics.md",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fbrowser-support.md",17641,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fbrowser-support.md",{"path":79,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fcommon-patterns.md",8363,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fcommon-patterns.md",{"path":83,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Ferror-codes.md",12249,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Ferror-codes.md",{"path":87,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fmigration-guide.md",18418,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fmigration-guide.md",{"path":91,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fmobile-implementation.md",23234,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fmobile-implementation.md",{"path":95,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Freact-integration.md",11137,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Freact-integration.md",{"path":99,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fsetup-checklist.md",7574,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fsetup-checklist.md",{"path":103,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Ftesting-guide.md",10546,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Ftesting-guide.md",{"path":107,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fwidget-configs.md",12901,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Freferences\u002Fwidget-configs.md",{"path":111,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":114,"sourceHtmlUrl":115},"scripts\u002Fcheck-csp.sh","SCRIPT","脚本",3872,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Fscripts\u002Fcheck-csp.sh",{"path":117,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":118,"sourceHtmlUrl":119},"templates\u002Fturnstile-hono-route.ts",6274,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-hono-route.ts",{"path":121,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":124,"sourceHtmlUrl":125},"templates\u002Fturnstile-react-component.tsx","OTHER","其他",7963,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-react-component.tsx",{"path":127,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":128,"sourceHtmlUrl":129},"templates\u002Fturnstile-server-validation.ts",5988,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-server-validation.ts",{"path":131,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":132,"sourceHtmlUrl":133},"templates\u002Fturnstile-test-config.ts",7352,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-test-config.ts",{"path":135,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":136,"sourceHtmlUrl":137},"templates\u002Fturnstile-widget-explicit.ts",6658,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-widget-explicit.ts",{"path":139,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":140,"sourceHtmlUrl":141},"templates\u002Fturnstile-widget-implicit.html",4473,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fturnstile-widget-implicit.html",{"path":143,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":144,"sourceHtmlUrl":145},"templates\u002Fwrangler-turnstile-config.jsonc",1017,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-turnstile\u002Fskills\u002Fcloudflare-turnstile\u002Ftemplates\u002Fwrangler-turnstile-config.jsonc",[147,154,161,168,175,182],{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":18},"01M7846EAPZWCQ8C6G3AAMMR57","{TODO=lowercase-hyphen-case-name}","[TODO: Write comprehensive description in third-person. Start with \"This skill provides...\" or \"This skill should be used when...\"]\n\n[TODO: Add \"Use when\" scenarios - specific situations where Claude should use this skill]\n\n[TODO: Add keywords - technologies, use cases, error messages that should trigger this skill]","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Ftemplates\u002Fskill-skeleton\u002Fskills\u002Fskill-name\u002FSKILL.md",[],[],{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":18},"01M7846A0WGDKJTDPD5QMHQVFV","zustand-state-management","Zustand state management for React with TypeScript. Use for global state, Redux\u002FContext API migration, localStorage persistence, slices pattern, devtools, Next.js SSR, or encountering hydration errors, TypeScript inference issues, persist middleware problems, infinite render loops.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fzustand-state-management\u002Fskills\u002Fzustand-state-management\u002FSKILL.md",[],[],{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":18},"01M78463GGSP9B3JSF146B2MG0","zod","TypeScript-first schema validation and type inference. Use for validating API requests\u002Fresponses, form data, env vars, configs, defining type-safe schemas with runtime validation, transforming data, generating JSON Schema for OpenAPI\u002FAI, or encountering missing validation errors, type inference issues, validation error handling problems. Zero dependencies (2kb gzipped).","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fzod\u002Fskills\u002Fzod\u002FSKILL.md",[],[],{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":18},"01M7845ZX17SVNNY7EDGPJHSBT","xss-prevention","XSS attack prevention with input sanitization, output encoding, Content Security Policy. Use for user-generated content, rich text editors, web application security, or encountering stored XSS, reflected XSS, DOM manipulation, script injection errors.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fxss-prevention\u002Fskills\u002Fxss-prevention\u002FSKILL.md",[],[],{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":18},"01M7845ST1H37YHSXWWQ9N0V0S","wordpress-plugin-core","WordPress plugin development with hooks, security, REST API, custom post types. Use for plugin creation, $wpdb queries, Settings API, or encountering SQL injection, XSS, CSRF, nonce errors.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002FSKILL.md",[],[],{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":18},"01M7845PTWD5HWSTGP35Q8TFNY","woocommerce-dev-cycle","Run tests, linting, and quality checks for WooCommerce development. Use when running tests, fixing code style, or following the development workflow in WooCommerce projects.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fwoocommerce-dev-cycle\u002Fskills\u002Fwoocommerce-dev-cycle\u002FSKILL.md",[],[]]