[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M783QCANBY1S6J2DRZ7E9YX8":3,"skill-same:01M783QCANBY1S6J2DRZ7E9YX8":163},{"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":70,"commitSha":71,"skillDirectory":72,"forksCount":13,"repositoryHtmlUrl":73,"repositoryHomepageUrl":6,"ownerHtmlUrl":74,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":75,"install":76,"resources":88},"01M783QCANBY1S6J2DRZ7E9YX8","cloudflare-zero-trust-access",null,"Cloudflare Zero Trust Access authentication for Workers. Use for JWT validation, service tokens, CORS, or encountering preflight blocking, cache race conditions, missing JWT headers.","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-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudflare-zero-trust-access\ndescription: \"Cloudflare Zero Trust Access authentication for Workers. Use for JWT validation, service tokens, CORS, or encountering preflight blocking, cache race conditions, missing JWT headers.\"\nlicense: MIT\nallowed-tools:\n  - Read\n  - Write\n  - Edit\n  - Bash\nmetadata:\n  version: \"1.0.0\"\n  category: authentication\n  framework: hono\n  platform: cloudflare-workers\n  package_versions:\n    \"@hono\u002Fcloudflare-access\": \"0.3.1\"\n    \"hono\": \"4.10.3\"\n    \"@cloudflare\u002Fworkers-types\": \"4.20251014.0\"\n  errors_prevented: 8\n  token_savings: \"58%\"\n  time_savings: \"2.5 hours\"\n  production_tested: true\n  last_verified: \"2025-10-28\"\n  keywords:\n    - Cloudflare Access\n    - Zero Trust\n    - Cloudflare Zero Trust Access\n    - Access authentication\n    - JWT validation\n    - access jwt\n    - service tokens\n    - hono cloudflare access\n    - hono-cloudflare-access middleware\n    - workers authentication\n    - protect worker routes\n    - admin authentication\n    - access policy\n    - identity providers\n    - azure ad access\n    - google workspace access\n    - okta access\n    - github access\n    - rbac cloudflare\n    - geographic restrictions\n    - multi-tenant access\n    - cors access\n    - CORS preflight blocked\n    - JWT header missing\n    - access key cache\n    - team mismatch\n    - access claims\n---\n# Cloudflare Zero Trust Access Skill\n\nIntegrate Cloudflare Zero Trust Access authentication with Cloudflare Workers applications using proven patterns and templates.\n\n---\n\n## Overview\n\nThis skill provides complete integration patterns for Cloudflare Access, enabling application-level authentication for Workers without managing your own auth infrastructure.\n\n**What is Cloudflare Access?**\nCloudflare Access is Zero Trust authentication that sits in front of your application, validating users before they reach your Worker. After authentication, Access issues JWT tokens that your Worker validates.\n\n**Key Benefits**:\n- No auth infrastructure to maintain\n- Integrates with identity providers (Azure AD, Google, Okta, GitHub)\n- Service tokens for machine-to-machine auth\n- Built-in MFA and session management\n- Comprehensive audit logs\n\n---\n\n## When to Use This Skill\n\nTrigger this skill when tasks involve:\n\n- **Authentication**: Protecting Worker routes, securing admin dashboards, API authentication\n- **Access Control**: Role-based access (RBAC), group-based permissions, geographic restrictions\n- **Service Auth**: Backend services calling Worker APIs, CI\u002FCD pipelines, cron jobs\n- **Multi-Tenant**: SaaS apps with organization-level authentication\n- **CORS + Auth**: Single-page applications calling protected APIs\n\n**Keywords to Trigger**:\ncloudflare access, zero trust, access authentication, JWT validation, service tokens, cloudflare auth, hono access, workers authentication, protect worker routes, admin authentication\n\n---\n\n## Integration Patterns\n\n📖 **New to Cloudflare Access?** Load `references\u002Fquick-start.md` for step-by-step setup instructions (15-20 minutes).\n\n### Pattern 1: Hono Middleware (Recommended)\n\nUse `@hono\u002Fcloudflare-access` for one-line Access integration.\n\n**When to Use**:\n- Building with Hono framework\n- Need quick, production-ready setup\n- Want automatic JWT validation and key caching\n\n**Template**: `templates\u002Fhono-basic-setup.ts`\n\n**Setup**:\n```typescript\nimport { Hono } from 'hono'\nimport { cloudflareAccess } from '@hono\u002Fcloudflare-access'\n\nconst app = new Hono\u003C{ Bindings: Env }>()\n\n\u002F\u002F Public routes\napp.get('\u002F', (c) => c.text('Public page'))\n\n\u002F\u002F Protected routes\napp.use(\n  '\u002Fadmin\u002F*',\n  cloudflareAccess({\n    domain: (c) => c.env.ACCESS_TEAM_DOMAIN,\n  })\n)\n\napp.get('\u002Fadmin\u002Fdashboard', (c) => {\n  const { email } = c.get('accessPayload')\n  return c.text(`Welcome, ${email}!`)\n})\n```\n\n**Configuration** (`wrangler.jsonc`):\n```jsonc\n{\n  \"vars\": {\n    \"ACCESS_TEAM_DOMAIN\": \"your-team.cloudflareaccess.com\",\n    \"ACCESS_AUD\": \"your-app-aud-tag\"\n  }\n}\n```\n\n**Benefits**:\n- ✅ Automatic JWT validation\n- ✅ Public key caching (1-hour TTL)\n- ✅ Type-safe with TypeScript\n- ✅ Production-tested and maintained\n\n---\n\n### Pattern 2: Manual JWT Validation\n\n**When to Use**: Not using Hono, need custom validation logic\n\n**Template**: `templates\u002Fjwt-validation-manual.ts` (~100 lines, uses Web Crypto API)\n\n---\n\n### Pattern 3: Service Token Authentication\n\n**When to Use**: CI\u002FCD pipelines, backend services, cron jobs (no interactive login)\n\n**Client**: Send `CF-Access-Client-Id` + `CF-Access-Client-Secret` headers\n\n**Server**: Same middleware handles both - detect via `!payload.email && payload.common_name`\n\n📄 **Full guide**: `references\u002Fservice-tokens-guide.md`\n\n---\n\n### Pattern 4: CORS + Access\n\n**When to Use**: SPA (React\u002FVue\u002FAngular) calling protected API\n\n**⚠️ CRITICAL**: CORS middleware MUST come BEFORE Access middleware!\n```typescript\n\u002F\u002F ✅ CORRECT ORDER\napp.use('*', cors({ origin: 'https:\u002F\u002Fapp.example.com', credentials: true }))\napp.use('\u002Fapi\u002F*', cloudflareAccess({ domain: (c) => c.env.ACCESS_TEAM_DOMAIN }))\n```\n**Why**: OPTIONS preflight has no auth headers → Access blocks with 401\n\n📄 **Full pattern**: `templates\u002Fcors-access.ts`\n\n---\n\n### Pattern 5: Multi-Tenant\n\n**When to Use**: SaaS with per-org authentication, white-label apps\n\n**Architecture**: Tenant config in D1\u002FKV → Dynamic middleware per request\n\n📄 **Full pattern**: `templates\u002Fmulti-tenant.ts` and `references\u002Fuse-cases.md`\n\n---\n\n## Common Errors Prevented\n\nThis skill prevents 8 documented errors. Full details: `references\u002Fcommon-errors.md`\n\n### Error #1: CORS Preflight Blocked (45 min saved)\n\n**Problem**: OPTIONS requests return 401, breaking CORS\n\n**Solution**: CORS middleware BEFORE Access middleware\n```typescript\n\u002F\u002F ✅ Correct\napp.use('*', cors())\napp.use('\u002Fapi\u002F*', cloudflareAccess({ domain: '...' }))\n```\n\n---\n\n### Error #2: Missing JWT Header (30 min saved)\n\n**Problem**: Request not going through Access, no JWT header\n\n**Solution**: Access Worker through Access URL, not direct `*.workers.dev`\n```\n✅ https:\u002F\u002Fteam.cloudflareaccess.com\u002F...\n❌ https:\u002F\u002Fworker.workers.dev\n```\n\n---\n\n### Error #3: Invalid Team Name (15 min saved)\n\n**Problem**: Hardcoded or wrong team name causes \"Invalid issuer\"\n\n**Solution**: Use environment variables\n```typescript\n\u002F\u002F ✅ Correct\ncloudflareAccess({ domain: (c) => c.env.ACCESS_TEAM_DOMAIN })\n\n\u002F\u002F ❌ Wrong\ncloudflareAccess({ domain: 'my-team.cloudflareaccess.com' })\n```\n\n---\n\n### Errors #4-8 (Quick Reference)\n\n| # | Error | Solution |\n|---|-------|----------|\n| 4 | Key cache race | Use `@hono\u002Fcloudflare-access` (auto-caches) |\n| 5 | Wrong service token headers | Use `CF-Access-Client-Id\u002FSecret` (not `Authorization`) |\n| 6 | Token expiration (401 after 1 hr) | Handle gracefully, redirect to login |\n| 7 | Overlapping policies | Use most specific paths |\n| 8 | Dev\u002Fprod mismatch | Use environment-specific configs |\n\n📄 **Full error details**: `references\u002Fcommon-errors.md` (~2.5 hours saved per implementation)\n\n---\n\n## Templates\n\n| Template | Purpose |\n|----------|---------|\n| `hono-basic-setup.ts` | Standard Hono + Access integration |\n| `jwt-validation-manual.ts` | Manual JWT verification with Web Crypto |\n| `service-token-auth.ts` | Service token patterns |\n| `cors-access.ts` | CORS + Access (correct ordering) |\n| `multi-tenant.ts` | Multi-tenant architecture |\n| `wrangler.jsonc` | Complete Wrangler configuration |\n| `.env.example` | Environment variable template |\n| `types.ts` | TypeScript definitions |\n\n## Scripts\n\n| Script | Usage |\n|--------|-------|\n| `test-access-jwt.sh` | `.\u002Ftest-access-jwt.sh \u003Cjwt-token>` - Decode and validate JWT |\n| `create-service-token.sh` | `.\u002Fcreate-service-token.sh [name]` - Service token setup guide |\n\n---\n\n## Use Cases\n\n| Use Case | Template | Key Point |\n|----------|----------|-----------|\n| Admin Dashboard | `hono-basic-setup.ts` | Email domain policy |\n| API Authentication | `hono-basic-setup.ts` | Mixed user\u002Fservice policy |\n| SPA + API | `cors-access.ts` | CORS before Access! |\n| CI\u002FCD Pipeline | `service-token-auth.ts` | Service token in secrets |\n| Multi-Tenant SaaS | `multi-tenant.ts` | D1 tenant config |\n\n📄 **Detailed use cases**: `references\u002Fuse-cases.md`\n\n---\n\n## When to Load References\n\n| Reference File | Load When... |\n|----------------|--------------|\n| `references\u002Fquick-start.md` | Step-by-step setup for new users, first-time integration |\n| `references\u002Fcommon-errors.md` | Debugging auth issues, prevention patterns (includes all 8 errors) |\n| `references\u002Fjwt-payload-structure.md` | Accessing JWT claims, user vs service token |\n| `references\u002Fservice-tokens-guide.md` | Setting up machine-to-machine auth |\n| `references\u002Faccess-policy-setup.md` | Dashboard configuration, policy creation |\n| `references\u002Fuse-cases.md` | Detailed implementation for specific scenarios |\n| `references\u002Fvalue-proposition.md` | Token efficiency metrics, workflow guidance, production validation |\n\n---\n\n## Package Versions\n\n| Package | Version |\n|---------|---------|\n| @hono\u002Fcloudflare-access | 0.3.1 |\n| hono | 4.10.7 |\n| @cloudflare\u002Fworkers-types | 4.20251126.0 |\n\n**Verified**: 2025-12-14 | **Token Savings**: ~58% | **Production Tested**: ✅\n\n---\n\n## When NOT to Use\n\nThis skill is for **Cloudflare Workers** with **Cloudflare Access**. Do not use for:\n\n- ❌ Cloudflare Pages (use `@cloudflare\u002Fpages-plugin-cloudflare-access` instead)\n- ❌ Non-Cloudflare platforms\n- ❌ Custom JWT auth (not Access)\n- ❌ Auth.js or other auth libraries\n- ❌ Self-hosted authentication\n\nFor those, use appropriate skills or libraries.\n\n---\n\n## Additional Resources\n\n**Cloudflare Documentation**:\n- [Access Overview](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fcloudflare-one\u002Fidentity\u002Fauthorization-cookie\u002F)\n- [JWT Validation](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fcloudflare-one\u002Fidentity\u002Fauthorization-cookie\u002Fvalidating-json\u002F)\n- [Service Tokens](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fcloudflare-one\u002Fidentity\u002Fservice-tokens\u002F)\n\n**Packages**:\n- [@hono\u002Fcloudflare-access](https:\u002F\u002Fgithub.com\u002Fhonojs\u002Fmiddleware\u002Ftree\u002Fmain\u002Fpackages\u002Fcloudflare-access)\n- [Hono Framework](https:\u002F\u002Fhono.dev\u002F)\n\n**Dashboard**:\n- [Zero Trust Dashboard](https:\u002F\u002Fone.dash.cloudflare.com\u002F)\n\n---\n\n**Skill Version**: 1.0.0\n**Last Updated**: 2025-10-28\n**Errors Prevented**: 8\n**Token Savings**: 58%\n**Time Savings**: 2.5 hours\n**Production Tested**: ✅\n","# Cloudflare Zero Trust Access Skill\n\nIntegrate Cloudflare Zero Trust Access authentication with Cloudflare Workers applications using proven patterns and templates.\n\n---\n\n## Overview\n\nThis skill provides complete integration patterns for Cloudflare Access, enabling application-level authentication for Workers without managing your own auth infrastructure.\n\n**What is Cloudflare Access?**\nCloudflare Access is Zero Trust authentication that sits in front of your application, validating users before they reach your Worker. After authentication, Access issues JWT tokens that your Worker validates.\n\n**Key Benefits**:\n- No auth infrastructure to maintain\n- Integrates with identity providers (Azure AD, Google, Okta, GitHub)\n- Service tokens for machine-to-machine auth\n- Built-in MFA and session management\n- Comprehensive audit logs\n\n---\n\n## When to Use This Skill\n\nTrigger this skill when tasks involve:\n\n- **Authentication**: Protecting Worker routes, securing admin dashboards, API authentication\n- **Access Control**: Role-based access (RBAC), group-based permissions, geographic restrictions\n- **Service Auth**: Backend services calling Worker APIs, CI\u002FCD pipelines, cron jobs\n- **Multi-Tenant**: SaaS apps with organization-level authentication\n- **CORS + Auth**: Single-page applications calling protected APIs\n\n**Keywords to Trigger**:\ncloudflare access, zero trust, access authentication, JWT validation, service tokens, cloudflare auth, hono access, workers authentication, protect worker routes, admin authentication\n\n---\n\n## Integration Patterns\n\n📖 **New to Cloudflare Access?** Load `references\u002Fquick-start.md` for step-by-step setup instructions (15-20 minutes).\n\n### Pattern 1: Hono Middleware (Recommended)\n\nUse `@hono\u002Fcloudflare-access` for one-line Access integration.\n\n**When to Use**:\n- Building with Hono framework\n- Need quick, production-ready setup\n- Want automatic JWT validation and key caching\n\n**Template**: `templates\u002Fhono-basic-setup.ts`\n\n**Setup**:\n```typescript\nimport { Hono } from 'hono'\nimport { cloudflareAccess } from '@hono\u002Fcloudflare-access'\n\nconst app = new Hono\u003C{ Bindings: Env }>()\n\n\u002F\u002F Public routes\napp.get('\u002F', (c) => c.text('Public page'))\n\n\u002F\u002F Protected routes\napp.use(\n  '\u002Fadmin\u002F*',\n  cloudflareAccess({\n    domain: (c) => c.env.ACCESS_TEAM_DOMAIN,\n  })\n)\n\napp.get('\u002Fadmin\u002Fdashboard', (c) => {\n  const { email } = c.get('accessPayload')\n  return c.text(`Welcome, ${email}!`)\n})\n```\n\n**Configuration** (`wrangler.jsonc`):\n```jsonc\n{\n  \"vars\": {\n    \"ACCESS_TEAM_DOMAIN\": \"your-team.cloudflareaccess.com\",\n    \"ACCESS_AUD\": \"your-app-aud-tag\"\n  }\n}\n```\n\n**Benefits**:\n- ✅ Automatic JWT validation\n- ✅ Public key caching (1-hour TTL)\n- ✅ Type-safe with TypeScript\n- ✅ Production-tested and maintained\n\n---\n\n### Pattern 2: Manual JWT Validation\n\n**When to Use**: Not using Hono, need custom validation logic\n\n**Template**: `templates\u002Fjwt-validation-manual.ts` (~100 lines, uses Web Crypto API)\n\n---\n\n### Pattern 3: Service Token Authentication\n\n**When to Use**: CI\u002FCD pipelines, backend services, cron jobs (no interactive login)\n\n**Client**: Send `CF-Access-Client-Id` + `CF-Access-Client-Secret` headers\n\n**Server**: Same middleware handles both - detect via `!payload.email && payload.common_name`\n\n📄 **Full guide**: `references\u002Fservice-tokens-guide.md`\n\n---\n\n### Pattern 4: CORS + Access\n\n**When to Use**: SPA (React\u002FVue\u002FAngular) calling protected API\n\n**⚠️ CRITICAL**: CORS middleware MUST come BEFORE Access middleware!\n```typescript\n\u002F\u002F ✅ CORRECT ORDER\napp.use('*', cors({ origin: 'https:\u002F\u002Fapp.example.com', credentials: true }))\napp.use('\u002Fapi\u002F*', cloudflareAccess({ domain: (c) => c.env.ACCESS_TEAM_DOMAIN }))\n```\n**Why**: OPTIONS preflight has no auth headers → Access blocks with 401\n\n📄 **Full pattern**: `templates\u002Fcors-access.ts`\n\n---\n\n### Pattern 5: Multi-Tenant\n\n**When to Use**: SaaS with per-org authentication, white-label apps\n\n**Architecture**: Tenant config in D1\u002FKV → Dynamic middleware per request\n\n📄 **Full pattern**: `templates\u002Fmulti-tenant.ts` and `references\u002Fuse-cases.md`\n\n---\n\n## Common Errors Prevented\n\nThis skill prevents 8 documented errors. Full details: `references\u002Fcommon-errors.md`\n\n### Error #1: CORS Preflight Blocked (45 min saved)\n\n**Problem**: OPTIONS requests return 401, breaking CORS\n\n**Solution**: CORS middleware BEFORE Access middleware\n```typescript\n\u002F\u002F ✅ Correct\napp.use('*', cors())\napp.use('\u002Fapi\u002F*', cloudflareAccess({ domain: '...' }))\n```\n\n---\n\n### Error #2: Missing JWT Header (30 min saved)\n\n**Problem**: Request not going through Access, no JWT header\n\n**Solution**: Access Worker through Access URL, not direct `*.workers.dev`\n```\n✅ https:\u002F\u002Fteam.cloudflareaccess.com\u002F...\n❌ https:\u002F\u002Fworker.workers.dev\n```\n\n---\n\n### Error #3: Invalid Team Name (15 min saved)\n\n**Problem**: Hardcoded or wrong team name causes \"Invalid issuer\"\n\n**Solution**: Use environment variables\n```typescript\n\u002F\u002F ✅ Correct\ncloudflareAccess({ domain: (c) => c.env.ACCESS_TEAM_DOMAIN })\n\n\u002F\u002F ❌ Wrong\ncloudflareAccess({ domain: 'my-team.cloudflareaccess.com' })\n```\n\n---\n\n### Errors #4-8 (Quick Reference)\n\n| # | Error | Solution |\n|---|-------|----------|\n| 4 | Key cache race | Use `@hono\u002Fcloudflare-access` (auto-caches) |\n| 5 | Wrong service token headers | Use `CF-Access-Client-Id\u002FSecret` (not `Authorization`) |\n| 6 | Token expiration (401 after 1 hr) | Handle gracefully, redirect to login |\n| 7 | Overlapping policies | Use most specific paths |\n| 8 | Dev\u002Fprod mismatch | Use environment-specific configs |\n\n📄 **Full error details**: `references\u002Fcommon-errors.md` (~2.5 hours saved per implementation)\n\n---\n\n## Templates\n\n| Template | Purpose |\n|----------|---------|\n| `hono-basic-setup.ts` | Standard Hono + Access integration |\n| `jwt-validation-manual.ts` | Manual JWT verification with Web Crypto |\n| `service-token-auth.ts` | Service token patterns |\n| `cors-access.ts` | CORS + Access (correct ordering) |\n| `multi-tenant.ts` | Multi-tenant architecture |\n| `wrangler.jsonc` | Complete Wrangler configuration |\n| `.env.example` | Environment variable template |\n| `types.ts` | TypeScript definitions |\n\n## Scripts\n\n| Script | Usage |\n|--------|-------|\n| `test-access-jwt.sh` | `.\u002Ftest-access-jwt.sh \u003Cjwt-token>` - Decode and validate JWT |\n| `create-service-token.sh` | `.\u002Fcreate-service-token.sh [name]` - Service token setup guide |\n\n---\n\n## Use Cases\n\n| Use Case | Template | Key Point |\n|----------|----------|-----------|\n| Admin Dashboard | `hono-basic-setup.ts` | Email domain policy |\n| API Authentication | `hono-basic-setup.ts` | Mixed user\u002Fservice policy |\n| SPA + API | `cors-access.ts` | CORS before Access! |\n| CI\u002FCD Pipeline | `service-token-auth.ts` | Service token in secrets |\n| Multi-Tenant SaaS | `multi-tenant.ts` | D1 tenant config |\n\n📄 **Detailed use cases**: `references\u002Fuse-cases.md`\n\n---\n\n## When to Load References\n\n| Reference File | Load When... |\n|----------------|--------------|\n| `references\u002Fquick-start.md` | Step-by-step setup for new users, first-time integration |\n| `references\u002Fcommon-errors.md` | Debugging auth issues, prevention patterns (includes all 8 errors) |\n| `references\u002Fjwt-payload-structure.md` | Accessing JWT claims, user vs service token |\n| `references\u002Fservice-tokens-guide.md` | Setting up machine-to-machine auth |\n| `references\u002Faccess-policy-setup.md` | Dashboard configuration, policy creation |\n| `references\u002Fuse-cases.md` | Detailed implementation for specific scenarios |\n| `references\u002Fvalue-proposition.md` | Token efficiency metrics, workflow guidance, production validation |\n\n---\n\n## Package Versions\n\n| Package | Version |\n|---------|---------|\n| @hono\u002Fcloudflare-access | 0.3.1 |\n| hono | 4.10.7 |\n| @cloudflare\u002Fworkers-types | 4.20251126.0 |\n\n**Verified**: 2025-12-14 | **Token Savings**: ~58% | **Production Tested**: ✅\n\n---\n\n## When NOT to Use\n\nThis skill is for **Cloudflare Workers** with **Cloudflare Access**. Do not use for:\n\n- ❌ Cloudflare Pages (use `@cloudflare\u002Fpages-plugin-cloudflare-access` instead)\n- ❌ Non-Cloudflare platforms\n- ❌ Custom JWT auth (not Access)\n- ❌ Auth.js or other auth libraries\n- ❌ Self-hosted authentication\n\nFor those, use appropriate skills or libraries.\n\n---\n\n## Additional Resources\n\n**Cloudflare Documentation**:\n- [Access Overview](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fcloudflare-one\u002Fidentity\u002Fauthorization-cookie\u002F)\n- [JWT Validation](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fcloudflare-one\u002Fidentity\u002Fauthorization-cookie\u002Fvalidating-json\u002F)\n- [Service Tokens](https:\u002F\u002Fdevelopers.cloudflare.com\u002Fcloudflare-one\u002Fidentity\u002Fservice-tokens\u002F)\n\n**Packages**:\n- [@hono\u002Fcloudflare-access](https:\u002F\u002Fgithub.com\u002Fhonojs\u002Fmiddleware\u002Ftree\u002Fmain\u002Fpackages\u002Fcloudflare-access)\n- [Hono Framework](https:\u002F\u002Fhono.dev\u002F)\n\n**Dashboard**:\n- [Zero Trust Dashboard](https:\u002F\u002Fone.dash.cloudflare.com\u002F)\n\n---\n\n**Skill Version**: 1.0.0\n**Last Updated**: 2025-10-28\n**Errors Prevented**: 8\n**Token Savings**: 58%\n**Time Savings**: 2.5 hours\n**Production Tested**: ✅\n",{"name":5,"license":14,"metadata":23,"description":7,"allowed-tools":65},{"version":24,"category":25,"keywords":26,"platform":54,"framework":55,"time_savings":56,"last_verified":57,"token_savings":58,"errors_prevented":59,"package_versions":60,"production_tested":64},"1.0.0","authentication",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],"Cloudflare Access","Zero Trust","Cloudflare Zero Trust Access","Access authentication","JWT validation","access jwt","service tokens","hono cloudflare access","hono-cloudflare-access middleware","workers authentication","protect worker routes","admin authentication","access policy","identity providers","azure ad access","google workspace access","okta access","github access","rbac cloudflare","geographic restrictions","multi-tenant access","cors access","CORS preflight blocked","JWT header missing","access key cache","team mismatch","access claims","cloudflare-workers","hono","2.5 hours","2025-10-28","58%",8,{"hono":61,"@hono\u002Fcloudflare-access":62,"@cloudflare\u002Fworkers-types":63},"4.10.3","0.3.1","4.20251014.0",true,[66,67,68,69],"Read","Write","Edit","Bash","main","9f54582c8b485462d402d7e70feaef34801746b9",".opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web","https:\u002F\u002Fgithub.com\u002Faibizmod","2026-09-24 00:48:11",{"source":8,"skillName":5,"commands":77,"prompt":87,"zipAvailable":64},[78,81,84],{"tool":79,"command":80},"npx","npx skills add aibizmod\u002Faibizmod-service-web --skill cloudflare-zero-trust-access",{"tool":82,"command":83},"bunx","bunx skills add aibizmod\u002Faibizmod-service-web --skill cloudflare-zero-trust-access",{"tool":85,"command":86},"pnpm","pnpm dlx skills add aibizmod\u002Faibizmod-service-web --skill cloudflare-zero-trust-access","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002FSKILL.md",[89,95,99,103,107,111,115,119,125,129,135,139,143,147,151,155,159],{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Faccess-policy-setup.md","REFERENCE","参考文档",13845,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Freferences\u002Faccess-policy-setup.md",{"path":96,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Fcommon-errors.md",15495,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Freferences\u002Fcommon-errors.md",{"path":100,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fjwt-payload-structure.md",13066,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Freferences\u002Fjwt-payload-structure.md",{"path":104,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Fquick-start.md",1821,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Freferences\u002Fquick-start.md",{"path":108,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Fservice-tokens-guide.md",15656,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Freferences\u002Fservice-tokens-guide.md",{"path":112,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":113,"sourceHtmlUrl":114},"references\u002Fuse-cases.md",8258,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Freferences\u002Fuse-cases.md",{"path":116,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":117,"sourceHtmlUrl":118},"references\u002Fvalue-proposition.md",1596,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Freferences\u002Fvalue-proposition.md",{"path":120,"resourceType":121,"resourceTypeDesc":122,"sizeBytes":123,"sourceHtmlUrl":124},"scripts\u002Fcreate-service-token.sh","SCRIPT","脚本",8468,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Fscripts\u002Fcreate-service-token.sh",{"path":126,"resourceType":121,"resourceTypeDesc":122,"sizeBytes":127,"sourceHtmlUrl":128},"scripts\u002Ftest-access-jwt.sh",11074,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Fscripts\u002Ftest-access-jwt.sh",{"path":130,"resourceType":131,"resourceTypeDesc":132,"sizeBytes":133,"sourceHtmlUrl":134},"templates\u002F.env.example","OTHER","其他",4333,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Ftemplates\u002F.env.example",{"path":136,"resourceType":121,"resourceTypeDesc":122,"sizeBytes":137,"sourceHtmlUrl":138},"templates\u002Fcors-access.ts",8278,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Ftemplates\u002Fcors-access.ts",{"path":140,"resourceType":121,"resourceTypeDesc":122,"sizeBytes":141,"sourceHtmlUrl":142},"templates\u002Fhono-basic-setup.ts",3942,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Ftemplates\u002Fhono-basic-setup.ts",{"path":144,"resourceType":121,"resourceTypeDesc":122,"sizeBytes":145,"sourceHtmlUrl":146},"templates\u002Fjwt-validation-manual.ts",6731,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Ftemplates\u002Fjwt-validation-manual.ts",{"path":148,"resourceType":121,"resourceTypeDesc":122,"sizeBytes":149,"sourceHtmlUrl":150},"templates\u002Fmulti-tenant.ts",10367,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Ftemplates\u002Fmulti-tenant.ts",{"path":152,"resourceType":121,"resourceTypeDesc":122,"sizeBytes":153,"sourceHtmlUrl":154},"templates\u002Fservice-token-auth.ts",7652,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Ftemplates\u002Fservice-token-auth.ts",{"path":156,"resourceType":121,"resourceTypeDesc":122,"sizeBytes":157,"sourceHtmlUrl":158},"templates\u002Ftypes.ts",8701,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Ftemplates\u002Ftypes.ts",{"path":160,"resourceType":131,"resourceTypeDesc":132,"sizeBytes":161,"sourceHtmlUrl":162},"templates\u002Fwrangler.jsonc",3963,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-zero-trust-access\u002Fskills\u002Fcloudflare-zero-trust-access\u002Ftemplates\u002Fwrangler.jsonc",[164,171,178,185,192,199],{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"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":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"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":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"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":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"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":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":198,"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":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":203,"categories":204,"keywords":205,"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",[],[]]