[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M783JP277BAKXR7SFJF5D2ZH":3,"skill-same:01M783JP277BAKXR7SFJF5D2ZH":151},{"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":62,"commitSha":63,"skillDirectory":64,"forksCount":13,"repositoryHtmlUrl":65,"repositoryHomepageUrl":6,"ownerHtmlUrl":66,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":67,"install":68,"resources":80},"01M783JP277BAKXR7SFJF5D2ZH","cloudflare-browser-rendering",null,"Cloudflare Browser Rendering with Puppeteer\u002FPlaywright. Use for screenshots, PDFs, web scraping, or encountering rendering errors, timeout issues, memory exceeded.","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-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudflare-browser-rendering\ndescription: \"Cloudflare Browser Rendering with Puppeteer\u002FPlaywright. Use for screenshots, PDFs, web scraping, or encountering rendering errors, timeout issues, memory exceeded.\"\nlicense: MIT\nmetadata:\n  version: \"1.0.0\"\n  last_verified: \"2025-11-27\"\n  puppeteer_version: \"1.0.4\"\n  playwright_version: \"1.0.0\"\n  workers_types_version: \"4.20251125.0\"\n  wrangler_version: \"4.50.0\"\n  production_tested: true\n  errors_prevented: 6\n  references_included: 6\n  keywords:\n    - browser rendering cloudflare\n    - \"@cloudflare\u002Fpuppeteer\"\n    - \"@cloudflare\u002Fplaywright\"\n    - puppeteer workers\n    - playwright workers\n    - screenshot cloudflare\n    - pdf generation workers\n    - web scraping cloudflare\n    - headless chrome workers\n    - browser automation\n    - puppeteer.launch\n    - playwright.chromium.launch\n    - browser binding\n    - session management\n    - puppeteer.sessions\n    - puppeteer.connect\n    - browser.close\n    - browser.disconnect\n    - XPath not supported\n    - browser timeout\n    - concurrency limit\n    - keep_alive\n    - page.screenshot\n    - page.pdf\n    - page.goto\n    - page.evaluate\n    - incognito context\n    - session reuse\n    - batch scraping\n    - crawling websites\n---\n# Cloudflare Browser Rendering - Complete Reference\n\nProduction-ready knowledge domain for building browser automation workflows with Cloudflare Browser Rendering.\n\n**Status**: Production Ready ✅\n**Last Updated**: 2025-11-25\n**Dependencies**: cloudflare-worker-base (for Worker setup)\n**Latest Versions**: @cloudflare\u002Fpuppeteer@1.0.4, @cloudflare\u002Fplaywright@1.0.0, wrangler@4.50.0, @cloudflare\u002Fworkers-types@4.20251125.0\n\n---\n\n## Table of Contents\n\n1. [Quick Start (5 minutes)](#quick-start-5-minutes)\n2. [Browser Rendering Overview](#browser-rendering-overview)\n3. [Puppeteer API Reference](#puppeteer-api-reference)\n4. [Playwright API Reference](#playwright-api-reference)\n5. [Session Management](#session-management)\n6. [Common Patterns](#common-patterns)\n7. [Pricing & Limits](#pricing--limits)\n8. [Known Issues Prevention](#known-issues-prevention)\n9. [Production Checklist](#production-checklist)\n\n---\n\n## Quick Start (5 minutes)\n\n### 1. Add Browser Binding\n\n**wrangler.jsonc:**\n```jsonc\n{\n  \"name\": \"browser-worker\",\n  \"main\": \"src\u002Findex.ts\",\n  \"compatibility_date\": \"2023-03-14\",\n  \"compatibility_flags\": [\"nodejs_compat\"],\n  \"browser\": {\n    \"binding\": \"MYBROWSER\"\n  }\n}\n```\n\n**Why nodejs_compat?** Browser Rendering requires Node.js APIs and polyfills.\n\n### 2. Install Puppeteer\n\n```bash\nbun add @cloudflare\u002Fpuppeteer\n```\n\n### 3. Take Your First Screenshot\n\n```typescript\nimport puppeteer from \"@cloudflare\u002Fpuppeteer\";\n\ninterface Env {\n  MYBROWSER: Fetcher;\n}\n\nexport default {\n  async fetch(request: Request, env: Env): Promise\u003CResponse> {\n    const { searchParams } = new URL(request.url);\n    const url = searchParams.get(\"url\") || \"https:\u002F\u002Fexample.com\";\n\n    \u002F\u002F Launch browser\n    const browser = await puppeteer.launch(env.MYBROWSER);\n    const page = await browser.newPage();\n\n    \u002F\u002F Navigate and capture\n    await page.goto(url);\n    const screenshot = await page.screenshot();\n\n    \u002F\u002F Clean up\n    await browser.close();\n\n    return new Response(screenshot, {\n      headers: { \"content-type\": \"image\u002Fpng\" }\n    });\n  }\n};\n```\n\n### 4. Deploy\n\n```bash\nbunx wrangler deploy\n```\n\nTest at: `https:\u002F\u002Fyour-worker.workers.dev\u002F?url=https:\u002F\u002Fexample.com`\n\n**CRITICAL:**\n- Always pass `env.MYBROWSER` to `puppeteer.launch()` (not undefined)\n- Always call `browser.close()` when done (or use `browser.disconnect()` for session reuse)\n- Use `nodejs_compat` compatibility flag\n\n---\n\n## When to Load References\n\n**Load immediately when user mentions**:\n\n- `puppeteer-api.md` → \"API reference\", \"Puppeteer methods\", \"Browser class\", \"Page methods\", \"complete API\"\n- `patterns.md` → \"examples\", \"how to\", \"screenshot\", \"PDF\", \"scraping\", \"automation\", \"form filling\"\n- `session-management.md` → \"sessions\", \"hibernation\", \"connection pooling\", \"state management\", \"Durable Objects\"\n- `pricing-and-limits.md` → \"cost\", \"pricing\", \"limits\", \"quotas\", \"billing\", \"rate limits\"\n- `common-errors.md` → errors, debugging, \"not working\", troubleshooting, \"issue #4\", \"issue #5\", \"issue #6\"\n- `puppeteer-vs-playwright.md` → \"Playwright\", \"comparison\", \"which library\", \"differences\"\n\n**Load proactively when**:\n- Building new automation → Load `patterns.md`\n- Debugging errors → Load `common-errors.md`\n- Optimizing costs → Load `pricing-and-limits.md`\n- Managing sessions → Load `session-management.md`\n- Need complete API → Load `puppeteer-api.md`\n\n---\n\n## Browser Rendering Overview\n\n### What is Browser Rendering?\n\nCloudflare Browser Rendering provides headless Chromium browsers running on Cloudflare's global network. Use familiar tools like Puppeteer and Playwright to automate browser tasks:\n\n- **Screenshots** - Capture visual snapshots of web pages\n- **PDF Generation** - Convert HTML\u002FURLs to PDFs\n- **Web Scraping** - Extract content from dynamic websites\n- **Testing** - Automate frontend tests\n- **Crawling** - Navigate multi-page workflows\n\n### Two Integration Methods\n\n| Method | Best For | Complexity |\n|--------|----------|-----------|\n| **Workers Bindings** | Complex automation, custom workflows, session management | Advanced |\n| **REST API** | Simple screenshot\u002FPDF tasks | Simple |\n\n**This skill covers Workers Bindings** (the advanced method with full Puppeteer\u002FPlaywright APIs).\n\n### Puppeteer vs Playwright\n\n| Feature | Puppeteer | Playwright |\n|---------|-----------|------------|\n| **API Familiarity** | Most popular | Growing adoption |\n| **Package** | `@cloudflare\u002Fpuppeteer@1.0.4` | `@cloudflare\u002Fplaywright@1.0.0` |\n| **Session Management** | ✅ Advanced APIs | ⚠️ Basic |\n| **Browser Support** | Chromium only | Chromium only (Firefox\u002FSafari not yet supported) |\n| **Best For** | Screenshots, PDFs, scraping | Testing, frontend automation |\n\n**Recommendation**: Use Puppeteer for most use cases. Playwright is ideal if you're already using it for testing.\n\n---\n\n## Puppeteer API Reference\n\n**Core classes for browser automation**:\n\n1. **Core Functions** - `launch()`, `connect()`, `sessions()`, `history()`, `limits()`\n2. **Browser API** - `newPage()`, `sessionId()`, `close()`, `disconnect()`, `createBrowserContext()`\n3. **Page API** - `goto()`, `screenshot()`, `pdf()`, `content()`, `setContent()`, `evaluate()`, `waitForSelector()`, `type()`, `click()`\n\n**Quick Example:**\n```typescript\nconst browser = await puppeteer.launch(env.MYBROWSER);\nconst page = await browser.newPage();\nawait page.goto(\"https:\u002F\u002Fexample.com\");\nconst screenshot = await page.screenshot({ fullPage: true });\nawait browser.close();\n```\n\n**Load `references\u002Fpuppeteer-api.md` when implementing browser automation, scraping, debugging Puppeteer-specific issues, or needing complete API signatures and method details.**\n\n---\n\n## Playwright API Reference\n\nPlaywright provides a similar API to Puppeteer with slight differences.\n\n### Installation\n\n```bash\nbun add @cloudflare\u002Fplaywright\n```\n\n### Basic Example\n\n```typescript\nimport { env } from \"cloudflare:test\";\nimport { chromium } from \"@cloudflare\u002Fplaywright\";\n\ninterface Env {\n  BROWSER: Fetcher;\n}\n\nexport default {\n  async fetch(request: Request, env: Env): Promise\u003CResponse> {\n    const browser = await chromium.launch(env.BROWSER);\n    const page = await browser.newPage();\n\n    await page.goto(\"https:\u002F\u002Fexample.com\");\n    const screenshot = await page.screenshot();\n\n    await browser.close();\n\n    return new Response(screenshot, {\n      headers: { \"content-type\": \"image\u002Fpng\" }\n    });\n  }\n};\n```\n\n### Key Differences from Puppeteer\n\n| Feature | Puppeteer | Playwright |\n|---------|-----------|------------|\n| **Import** | `import puppeteer from \"@cloudflare\u002Fpuppeteer\"` | `import { chromium } from \"@cloudflare\u002Fplaywright\"` |\n| **Launch** | `puppeteer.launch(env.MYBROWSER)` | `chromium.launch(env.BROWSER)` |\n| **Session API** | ✅ Advanced (sessions, history, limits) | ⚠️ Basic |\n| **Auto-waiting** | Manual `waitForSelector()` | Built-in auto-waiting |\n| **Selectors** | CSS only | CSS, text, XPath (via evaluate workaround) |\n\n**Recommendation**: Stick with Puppeteer unless you have existing Playwright tests to migrate.\n\n---\n\n## Session Management\n\nBrowser sessions are managed using Durable Objects for state persistence across multiple requests. Sessions support hibernation, automatic cleanup, and concurrent connection handling.\n\n**Key Patterns**:\n- **Session Reuse** - Use `puppeteer.sessions()` and `puppeteer.connect()` to reuse browsers\n- **Browser Contexts** - Isolate cookies\u002Fcache while sharing browser instance\n- **Multiple Tabs** - Use tabs (`newPage()`) instead of multiple browsers for batch operations\n- **Disconnect vs Close** - Use `disconnect()` to keep session alive, `close()` to terminate\n\n**Load `references\u002Fsession-management.md` for complete session lifecycle management, hibernation patterns, connection pooling strategies, and production examples.**\n\n---\n\n## Common Patterns\n\n**6 production-ready browser automation patterns**:\n\n1. **Screenshot with KV Caching** - Cache screenshots for high-traffic URLs, reduce browser usage\n2. **PDF Generation from HTML** - Convert custom HTML to PDF for invoices, reports, documents\n3. **Web Scraping with Structured Data** - Extract product information, prices, content from web pages\n4. **Batch Scraping Multiple URLs** - Efficiently scrape multiple sites using tabs in single browser\n5. **AI-Enhanced Scraping** - Combine Browser Rendering with Workers AI for adaptive data extraction\n6. **Form Filling and Automation** - Automate login flows, form submissions, multi-step workflows\n\n**Quick Example** (Screenshot with caching):\n```typescript\nconst browser = await puppeteer.launch(env.MYBROWSER);\nconst page = await browser.newPage();\nawait page.goto(url);\nconst screenshot = await page.screenshot({ fullPage: true });\nawait env.CACHE.put(url, screenshot, { expirationTtl: 86400 });\nawait browser.close();\n```\n\n**Load `references\u002Fpatterns.md` when implementing browser automation patterns, scraping, PDF generation, or needing complete production examples with error handling and optimizations.**\n\n---\n\n## Pricing & Limits\n\nBrowser Rendering charges based on CPU time (paid plans only). Free tier: 10 minutes\u002Fday. Paid tier: 10 hours\u002Fmonth included, then $0.09 per browser hour + $2.00 per concurrent browser above 10.\n\n**Load `references\u002Fpricing-and-limits.md` for complete pricing tiers, quota details, rate limiting strategies, and cost optimization techniques.**\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **6 documented issues**. Top 3 critical errors detailed below:\n\n---\n\n### Issue #1: XPath Selectors Not Supported ⚠️\n\n**Error:** \"XPath selector not supported\" or selector failures\n**Source:** https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002Ffaq\u002F#why-cant-i-use-an-xpath-selector-when-using-browser-rendering-with-puppeteer\n**Why It Happens:** XPath poses a security risk to Workers\n**Prevention:** Use CSS selectors or `page.evaluate()` with XPathEvaluator\n\n**Solution:**\n```typescript\n\u002F\u002F ❌ Don't use XPath directly (not supported)\n\u002F\u002F await page.$x('\u002Fhtml\u002Fbody\u002Fdiv\u002Fh1')\n\n\u002F\u002F ✅ Use CSS selector\nconst heading = await page.$(\"div > h1\");\n\n\u002F\u002F ✅ Or use XPath in page.evaluate()\nconst innerHtml = await page.evaluate(() => {\n  return new XPathEvaluator()\n    .createExpression(\"\u002Fhtml\u002Fbody\u002Fdiv\u002Fh1\")\n    .evaluate(document, XPathResult.FIRST_ORDERED_NODE_TYPE)\n    .singleNodeValue.innerHTML;\n});\n```\n\n---\n\n### Issue #2: Browser Binding Not Passed ⚠️\n\n**Error:** \"Cannot read properties of undefined (reading 'fetch')\"\n**Source:** https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002Ffaq\u002F#cannot-read-properties-of-undefined-reading-fetch\n**Why It Happens:** `puppeteer.launch()` called without browser binding\n**Prevention:** Always pass `env.MYBROWSER` to launch\n\n**Solution:**\n```typescript\n\u002F\u002F ❌ Missing browser binding\nconst browser = await puppeteer.launch(); \u002F\u002F Error!\n\n\u002F\u002F ✅ Pass binding\nconst browser = await puppeteer.launch(env.MYBROWSER);\n```\n\n---\n\n### Issue #3: Browser Timeout (60 seconds) ⚠️\n\n**Error:** Browser closes unexpectedly after 60 seconds\n**Source:** https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002Fplatform\u002Flimits\u002F#note-on-browser-timeout\n**Why It Happens:** Default timeout is 60 seconds of inactivity\n**Prevention:** Use `keep_alive` option to extend up to 10 minutes\n\n**Solution:**\n```typescript\n\u002F\u002F Extend timeout to 5 minutes for long-running tasks\nconst browser = await puppeteer.launch(env.MYBROWSER, {\n  keep_alive: 300000 \u002F\u002F 5 minutes = 300,000 ms\n});\n```\n\n**Note:** Browser closes if no devtools commands for the specified duration.\n\n---\n\n### Additional Issues (4-6)\n\n**Load `references\u002Fcommon-errors.md` for complete error catalog including**:\n- Issue #4: Concurrency limits and rate limiting\n- Issue #5: Local development request size limits\n- Issue #6: Bot protection and WAF bypass strategies\n\nPlus solutions for page crashes, authentication issues, resource loading errors, and debugging strategies.\n\n---\n\n## Production Checklist\n\n**Critical Items Before Deployment:**\n- ✅ Browser binding + `nodejs_compat` flag configured\n- ✅ Error handling with try-finally cleanup\n- ✅ Rate limit checks and retry logic\n- ✅ Session reuse for performance\n- ✅ KV caching for repeated operations\n- ✅ Input validation (prevent SSRF)\n- ✅ Monitoring dashboard at https:\u002F\u002Fdash.cloudflare.com\n\n**Load `references\u002Fpatterns.md` for production-ready templates with complete error handling, monitoring, and security patterns.**\n\n---\n\n## Dependencies\n\n**Required**: `@cloudflare\u002Fpuppeteer@1.0.4`, `wrangler@4.50.0`, `@cloudflare\u002Fworkers-types@4.20251125.0`\n**Related Skills**: `cloudflare-worker-base` (Worker setup), `cloudflare-kv` (caching), `cloudflare-workers-ai` (AI scraping)\n\n---\n\n## Official Documentation\n\n- **Browser Rendering Docs**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002F\n- **Puppeteer API**: https:\u002F\u002Fpptr.dev\u002Fapi\u002F\n- **Playwright API**: https:\u002F\u002Fplaywright.dev\u002Fdocs\u002Fapi\u002Fclass-playwright\n- **Cloudflare Puppeteer Fork**: https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fpuppeteer\n- **Cloudflare Playwright Fork**: https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fplaywright\n- **Pricing**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002Fplatform\u002Fpricing\u002F\n- **Limits**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002Fplatform\u002Flimits\u002F\n\n---\n\n## Package Versions (Verified 2025-11-27)\n\n```json\n{\n  \"dependencies\": {\n    \"@cloudflare\u002Fpuppeteer\": \"^1.0.4\"\n  },\n  \"devDependencies\": {\n    \"@cloudflare\u002Fworkers-types\": \"^4.20251125.0\",\n    \"wrangler\": \"^4.50.0\"\n  }\n}\n```\n\n**Alternative (Playwright):**\n```json\n{\n  \"dependencies\": {\n    \"@cloudflare\u002Fplaywright\": \"^1.0.0\"\n  }\n}\n```\n\n---\n\n## Troubleshooting\n\n### Problem: \"Cannot read properties of undefined (reading 'fetch')\"\n**Solution:** Pass browser binding to puppeteer.launch():\n```typescript\nconst browser = await puppeteer.launch(env.MYBROWSER); \u002F\u002F Not just puppeteer.launch()\n```\n\n### Problem: XPath selectors not working\n**Solution:** Use CSS selectors or page.evaluate() with XPathEvaluator (see Issue #1)\n\n### Problem: Browser closes after 60 seconds\n**Solution:** Extend timeout with keep_alive:\n```typescript\nconst browser = await puppeteer.launch(env.MYBROWSER, { keep_alive: 300000 });\n```\n\n### Problem: Rate limit reached\n**Solution:** Reuse sessions, use tabs, check limits before launching (see Issue #4)\n\n### Problem: Local dev request > 1MB fails\n**Solution:** Enable remote binding in wrangler.jsonc:\n```jsonc\n{ \"browser\": { \"binding\": \"MYBROWSER\", \"remote\": true } }\n```\n\n### Problem: Website blocks as bot\n**Solution:** Cannot bypass. If your own zone, create WAF skip rule (see Issue #6)\n\n---\n\n**Questions? Issues?**\n\n1. Check `references\u002Fcommon-errors.md` for detailed solutions\n2. Review `references\u002Fsession-management.md` for performance optimization\n3. Verify browser binding is configured in wrangler.jsonc\n4. Check official docs: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002F\n5. Ensure `nodejs_compat` compatibility flag is enabled\n","# Cloudflare Browser Rendering - Complete Reference\n\nProduction-ready knowledge domain for building browser automation workflows with Cloudflare Browser Rendering.\n\n**Status**: Production Ready ✅\n**Last Updated**: 2025-11-25\n**Dependencies**: cloudflare-worker-base (for Worker setup)\n**Latest Versions**: @cloudflare\u002Fpuppeteer@1.0.4, @cloudflare\u002Fplaywright@1.0.0, wrangler@4.50.0, @cloudflare\u002Fworkers-types@4.20251125.0\n\n---\n\n## Table of Contents\n\n1. [Quick Start (5 minutes)](#quick-start-5-minutes)\n2. [Browser Rendering Overview](#browser-rendering-overview)\n3. [Puppeteer API Reference](#puppeteer-api-reference)\n4. [Playwright API Reference](#playwright-api-reference)\n5. [Session Management](#session-management)\n6. [Common Patterns](#common-patterns)\n7. [Pricing & Limits](#pricing--limits)\n8. [Known Issues Prevention](#known-issues-prevention)\n9. [Production Checklist](#production-checklist)\n\n---\n\n## Quick Start (5 minutes)\n\n### 1. Add Browser Binding\n\n**wrangler.jsonc:**\n```jsonc\n{\n  \"name\": \"browser-worker\",\n  \"main\": \"src\u002Findex.ts\",\n  \"compatibility_date\": \"2023-03-14\",\n  \"compatibility_flags\": [\"nodejs_compat\"],\n  \"browser\": {\n    \"binding\": \"MYBROWSER\"\n  }\n}\n```\n\n**Why nodejs_compat?** Browser Rendering requires Node.js APIs and polyfills.\n\n### 2. Install Puppeteer\n\n```bash\nbun add @cloudflare\u002Fpuppeteer\n```\n\n### 3. Take Your First Screenshot\n\n```typescript\nimport puppeteer from \"@cloudflare\u002Fpuppeteer\";\n\ninterface Env {\n  MYBROWSER: Fetcher;\n}\n\nexport default {\n  async fetch(request: Request, env: Env): Promise\u003CResponse> {\n    const { searchParams } = new URL(request.url);\n    const url = searchParams.get(\"url\") || \"https:\u002F\u002Fexample.com\";\n\n    \u002F\u002F Launch browser\n    const browser = await puppeteer.launch(env.MYBROWSER);\n    const page = await browser.newPage();\n\n    \u002F\u002F Navigate and capture\n    await page.goto(url);\n    const screenshot = await page.screenshot();\n\n    \u002F\u002F Clean up\n    await browser.close();\n\n    return new Response(screenshot, {\n      headers: { \"content-type\": \"image\u002Fpng\" }\n    });\n  }\n};\n```\n\n### 4. Deploy\n\n```bash\nbunx wrangler deploy\n```\n\nTest at: `https:\u002F\u002Fyour-worker.workers.dev\u002F?url=https:\u002F\u002Fexample.com`\n\n**CRITICAL:**\n- Always pass `env.MYBROWSER` to `puppeteer.launch()` (not undefined)\n- Always call `browser.close()` when done (or use `browser.disconnect()` for session reuse)\n- Use `nodejs_compat` compatibility flag\n\n---\n\n## When to Load References\n\n**Load immediately when user mentions**:\n\n- `puppeteer-api.md` → \"API reference\", \"Puppeteer methods\", \"Browser class\", \"Page methods\", \"complete API\"\n- `patterns.md` → \"examples\", \"how to\", \"screenshot\", \"PDF\", \"scraping\", \"automation\", \"form filling\"\n- `session-management.md` → \"sessions\", \"hibernation\", \"connection pooling\", \"state management\", \"Durable Objects\"\n- `pricing-and-limits.md` → \"cost\", \"pricing\", \"limits\", \"quotas\", \"billing\", \"rate limits\"\n- `common-errors.md` → errors, debugging, \"not working\", troubleshooting, \"issue #4\", \"issue #5\", \"issue #6\"\n- `puppeteer-vs-playwright.md` → \"Playwright\", \"comparison\", \"which library\", \"differences\"\n\n**Load proactively when**:\n- Building new automation → Load `patterns.md`\n- Debugging errors → Load `common-errors.md`\n- Optimizing costs → Load `pricing-and-limits.md`\n- Managing sessions → Load `session-management.md`\n- Need complete API → Load `puppeteer-api.md`\n\n---\n\n## Browser Rendering Overview\n\n### What is Browser Rendering?\n\nCloudflare Browser Rendering provides headless Chromium browsers running on Cloudflare's global network. Use familiar tools like Puppeteer and Playwright to automate browser tasks:\n\n- **Screenshots** - Capture visual snapshots of web pages\n- **PDF Generation** - Convert HTML\u002FURLs to PDFs\n- **Web Scraping** - Extract content from dynamic websites\n- **Testing** - Automate frontend tests\n- **Crawling** - Navigate multi-page workflows\n\n### Two Integration Methods\n\n| Method | Best For | Complexity |\n|--------|----------|-----------|\n| **Workers Bindings** | Complex automation, custom workflows, session management | Advanced |\n| **REST API** | Simple screenshot\u002FPDF tasks | Simple |\n\n**This skill covers Workers Bindings** (the advanced method with full Puppeteer\u002FPlaywright APIs).\n\n### Puppeteer vs Playwright\n\n| Feature | Puppeteer | Playwright |\n|---------|-----------|------------|\n| **API Familiarity** | Most popular | Growing adoption |\n| **Package** | `@cloudflare\u002Fpuppeteer@1.0.4` | `@cloudflare\u002Fplaywright@1.0.0` |\n| **Session Management** | ✅ Advanced APIs | ⚠️ Basic |\n| **Browser Support** | Chromium only | Chromium only (Firefox\u002FSafari not yet supported) |\n| **Best For** | Screenshots, PDFs, scraping | Testing, frontend automation |\n\n**Recommendation**: Use Puppeteer for most use cases. Playwright is ideal if you're already using it for testing.\n\n---\n\n## Puppeteer API Reference\n\n**Core classes for browser automation**:\n\n1. **Core Functions** - `launch()`, `connect()`, `sessions()`, `history()`, `limits()`\n2. **Browser API** - `newPage()`, `sessionId()`, `close()`, `disconnect()`, `createBrowserContext()`\n3. **Page API** - `goto()`, `screenshot()`, `pdf()`, `content()`, `setContent()`, `evaluate()`, `waitForSelector()`, `type()`, `click()`\n\n**Quick Example:**\n```typescript\nconst browser = await puppeteer.launch(env.MYBROWSER);\nconst page = await browser.newPage();\nawait page.goto(\"https:\u002F\u002Fexample.com\");\nconst screenshot = await page.screenshot({ fullPage: true });\nawait browser.close();\n```\n\n**Load `references\u002Fpuppeteer-api.md` when implementing browser automation, scraping, debugging Puppeteer-specific issues, or needing complete API signatures and method details.**\n\n---\n\n## Playwright API Reference\n\nPlaywright provides a similar API to Puppeteer with slight differences.\n\n### Installation\n\n```bash\nbun add @cloudflare\u002Fplaywright\n```\n\n### Basic Example\n\n```typescript\nimport { env } from \"cloudflare:test\";\nimport { chromium } from \"@cloudflare\u002Fplaywright\";\n\ninterface Env {\n  BROWSER: Fetcher;\n}\n\nexport default {\n  async fetch(request: Request, env: Env): Promise\u003CResponse> {\n    const browser = await chromium.launch(env.BROWSER);\n    const page = await browser.newPage();\n\n    await page.goto(\"https:\u002F\u002Fexample.com\");\n    const screenshot = await page.screenshot();\n\n    await browser.close();\n\n    return new Response(screenshot, {\n      headers: { \"content-type\": \"image\u002Fpng\" }\n    });\n  }\n};\n```\n\n### Key Differences from Puppeteer\n\n| Feature | Puppeteer | Playwright |\n|---------|-----------|------------|\n| **Import** | `import puppeteer from \"@cloudflare\u002Fpuppeteer\"` | `import { chromium } from \"@cloudflare\u002Fplaywright\"` |\n| **Launch** | `puppeteer.launch(env.MYBROWSER)` | `chromium.launch(env.BROWSER)` |\n| **Session API** | ✅ Advanced (sessions, history, limits) | ⚠️ Basic |\n| **Auto-waiting** | Manual `waitForSelector()` | Built-in auto-waiting |\n| **Selectors** | CSS only | CSS, text, XPath (via evaluate workaround) |\n\n**Recommendation**: Stick with Puppeteer unless you have existing Playwright tests to migrate.\n\n---\n\n## Session Management\n\nBrowser sessions are managed using Durable Objects for state persistence across multiple requests. Sessions support hibernation, automatic cleanup, and concurrent connection handling.\n\n**Key Patterns**:\n- **Session Reuse** - Use `puppeteer.sessions()` and `puppeteer.connect()` to reuse browsers\n- **Browser Contexts** - Isolate cookies\u002Fcache while sharing browser instance\n- **Multiple Tabs** - Use tabs (`newPage()`) instead of multiple browsers for batch operations\n- **Disconnect vs Close** - Use `disconnect()` to keep session alive, `close()` to terminate\n\n**Load `references\u002Fsession-management.md` for complete session lifecycle management, hibernation patterns, connection pooling strategies, and production examples.**\n\n---\n\n## Common Patterns\n\n**6 production-ready browser automation patterns**:\n\n1. **Screenshot with KV Caching** - Cache screenshots for high-traffic URLs, reduce browser usage\n2. **PDF Generation from HTML** - Convert custom HTML to PDF for invoices, reports, documents\n3. **Web Scraping with Structured Data** - Extract product information, prices, content from web pages\n4. **Batch Scraping Multiple URLs** - Efficiently scrape multiple sites using tabs in single browser\n5. **AI-Enhanced Scraping** - Combine Browser Rendering with Workers AI for adaptive data extraction\n6. **Form Filling and Automation** - Automate login flows, form submissions, multi-step workflows\n\n**Quick Example** (Screenshot with caching):\n```typescript\nconst browser = await puppeteer.launch(env.MYBROWSER);\nconst page = await browser.newPage();\nawait page.goto(url);\nconst screenshot = await page.screenshot({ fullPage: true });\nawait env.CACHE.put(url, screenshot, { expirationTtl: 86400 });\nawait browser.close();\n```\n\n**Load `references\u002Fpatterns.md` when implementing browser automation patterns, scraping, PDF generation, or needing complete production examples with error handling and optimizations.**\n\n---\n\n## Pricing & Limits\n\nBrowser Rendering charges based on CPU time (paid plans only). Free tier: 10 minutes\u002Fday. Paid tier: 10 hours\u002Fmonth included, then $0.09 per browser hour + $2.00 per concurrent browser above 10.\n\n**Load `references\u002Fpricing-and-limits.md` for complete pricing tiers, quota details, rate limiting strategies, and cost optimization techniques.**\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **6 documented issues**. Top 3 critical errors detailed below:\n\n---\n\n### Issue #1: XPath Selectors Not Supported ⚠️\n\n**Error:** \"XPath selector not supported\" or selector failures\n**Source:** https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002Ffaq\u002F#why-cant-i-use-an-xpath-selector-when-using-browser-rendering-with-puppeteer\n**Why It Happens:** XPath poses a security risk to Workers\n**Prevention:** Use CSS selectors or `page.evaluate()` with XPathEvaluator\n\n**Solution:**\n```typescript\n\u002F\u002F ❌ Don't use XPath directly (not supported)\n\u002F\u002F await page.$x('\u002Fhtml\u002Fbody\u002Fdiv\u002Fh1')\n\n\u002F\u002F ✅ Use CSS selector\nconst heading = await page.$(\"div > h1\");\n\n\u002F\u002F ✅ Or use XPath in page.evaluate()\nconst innerHtml = await page.evaluate(() => {\n  return new XPathEvaluator()\n    .createExpression(\"\u002Fhtml\u002Fbody\u002Fdiv\u002Fh1\")\n    .evaluate(document, XPathResult.FIRST_ORDERED_NODE_TYPE)\n    .singleNodeValue.innerHTML;\n});\n```\n\n---\n\n### Issue #2: Browser Binding Not Passed ⚠️\n\n**Error:** \"Cannot read properties of undefined (reading 'fetch')\"\n**Source:** https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002Ffaq\u002F#cannot-read-properties-of-undefined-reading-fetch\n**Why It Happens:** `puppeteer.launch()` called without browser binding\n**Prevention:** Always pass `env.MYBROWSER` to launch\n\n**Solution:**\n```typescript\n\u002F\u002F ❌ Missing browser binding\nconst browser = await puppeteer.launch(); \u002F\u002F Error!\n\n\u002F\u002F ✅ Pass binding\nconst browser = await puppeteer.launch(env.MYBROWSER);\n```\n\n---\n\n### Issue #3: Browser Timeout (60 seconds) ⚠️\n\n**Error:** Browser closes unexpectedly after 60 seconds\n**Source:** https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002Fplatform\u002Flimits\u002F#note-on-browser-timeout\n**Why It Happens:** Default timeout is 60 seconds of inactivity\n**Prevention:** Use `keep_alive` option to extend up to 10 minutes\n\n**Solution:**\n```typescript\n\u002F\u002F Extend timeout to 5 minutes for long-running tasks\nconst browser = await puppeteer.launch(env.MYBROWSER, {\n  keep_alive: 300000 \u002F\u002F 5 minutes = 300,000 ms\n});\n```\n\n**Note:** Browser closes if no devtools commands for the specified duration.\n\n---\n\n### Additional Issues (4-6)\n\n**Load `references\u002Fcommon-errors.md` for complete error catalog including**:\n- Issue #4: Concurrency limits and rate limiting\n- Issue #5: Local development request size limits\n- Issue #6: Bot protection and WAF bypass strategies\n\nPlus solutions for page crashes, authentication issues, resource loading errors, and debugging strategies.\n\n---\n\n## Production Checklist\n\n**Critical Items Before Deployment:**\n- ✅ Browser binding + `nodejs_compat` flag configured\n- ✅ Error handling with try-finally cleanup\n- ✅ Rate limit checks and retry logic\n- ✅ Session reuse for performance\n- ✅ KV caching for repeated operations\n- ✅ Input validation (prevent SSRF)\n- ✅ Monitoring dashboard at https:\u002F\u002Fdash.cloudflare.com\n\n**Load `references\u002Fpatterns.md` for production-ready templates with complete error handling, monitoring, and security patterns.**\n\n---\n\n## Dependencies\n\n**Required**: `@cloudflare\u002Fpuppeteer@1.0.4`, `wrangler@4.50.0`, `@cloudflare\u002Fworkers-types@4.20251125.0`\n**Related Skills**: `cloudflare-worker-base` (Worker setup), `cloudflare-kv` (caching), `cloudflare-workers-ai` (AI scraping)\n\n---\n\n## Official Documentation\n\n- **Browser Rendering Docs**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002F\n- **Puppeteer API**: https:\u002F\u002Fpptr.dev\u002Fapi\u002F\n- **Playwright API**: https:\u002F\u002Fplaywright.dev\u002Fdocs\u002Fapi\u002Fclass-playwright\n- **Cloudflare Puppeteer Fork**: https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fpuppeteer\n- **Cloudflare Playwright Fork**: https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fplaywright\n- **Pricing**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002Fplatform\u002Fpricing\u002F\n- **Limits**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002Fplatform\u002Flimits\u002F\n\n---\n\n## Package Versions (Verified 2025-11-27)\n\n```json\n{\n  \"dependencies\": {\n    \"@cloudflare\u002Fpuppeteer\": \"^1.0.4\"\n  },\n  \"devDependencies\": {\n    \"@cloudflare\u002Fworkers-types\": \"^4.20251125.0\",\n    \"wrangler\": \"^4.50.0\"\n  }\n}\n```\n\n**Alternative (Playwright):**\n```json\n{\n  \"dependencies\": {\n    \"@cloudflare\u002Fplaywright\": \"^1.0.0\"\n  }\n}\n```\n\n---\n\n## Troubleshooting\n\n### Problem: \"Cannot read properties of undefined (reading 'fetch')\"\n**Solution:** Pass browser binding to puppeteer.launch():\n```typescript\nconst browser = await puppeteer.launch(env.MYBROWSER); \u002F\u002F Not just puppeteer.launch()\n```\n\n### Problem: XPath selectors not working\n**Solution:** Use CSS selectors or page.evaluate() with XPathEvaluator (see Issue #1)\n\n### Problem: Browser closes after 60 seconds\n**Solution:** Extend timeout with keep_alive:\n```typescript\nconst browser = await puppeteer.launch(env.MYBROWSER, { keep_alive: 300000 });\n```\n\n### Problem: Rate limit reached\n**Solution:** Reuse sessions, use tabs, check limits before launching (see Issue #4)\n\n### Problem: Local dev request > 1MB fails\n**Solution:** Enable remote binding in wrangler.jsonc:\n```jsonc\n{ \"browser\": { \"binding\": \"MYBROWSER\", \"remote\": true } }\n```\n\n### Problem: Website blocks as bot\n**Solution:** Cannot bypass. If your own zone, create WAF skip rule (see Issue #6)\n\n---\n\n**Questions? Issues?**\n\n1. Check `references\u002Fcommon-errors.md` for detailed solutions\n2. Review `references\u002Fsession-management.md` for performance optimization\n3. Verify browser binding is configured in wrangler.jsonc\n4. Check official docs: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fbrowser-rendering\u002F\n5. Ensure `nodejs_compat` compatibility flag is enabled\n",{"name":5,"license":14,"metadata":23,"description":7},{"version":24,"keywords":25,"last_verified":56,"errors_prevented":57,"wrangler_version":58,"production_tested":59,"puppeteer_version":60,"playwright_version":24,"references_included":57,"workers_types_version":61},"1.0.0",[26,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,54,55],"browser rendering cloudflare","@cloudflare\u002Fpuppeteer","@cloudflare\u002Fplaywright","puppeteer workers","playwright workers","screenshot cloudflare","pdf generation workers","web scraping cloudflare","headless chrome workers","browser automation","puppeteer.launch","playwright.chromium.launch","browser binding","session management","puppeteer.sessions","puppeteer.connect","browser.close","browser.disconnect","XPath not supported","browser timeout","concurrency limit","keep_alive","page.screenshot","page.pdf","page.goto","page.evaluate","incognito context","session reuse","batch scraping","crawling websites","2025-11-27",6,"4.50.0",true,"1.0.4","4.20251125.0","main","9f54582c8b485462d402d7e70feaef34801746b9",".opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web","https:\u002F\u002Fgithub.com\u002Faibizmod","2026-09-24 00:48:11",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":59},[70,73,76],{"tool":71,"command":72},"npx","npx skills add aibizmod\u002Faibizmod-service-web --skill cloudflare-browser-rendering",{"tool":74,"command":75},"bunx","bunx skills add aibizmod\u002Faibizmod-service-web --skill cloudflare-browser-rendering",{"tool":77,"command":78},"pnpm","pnpm dlx skills add aibizmod\u002Faibizmod-service-web --skill cloudflare-browser-rendering","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002FSKILL.md",[81,87,91,95,99,103,107,113,117,121,125,129,133,137,141,145],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fcommon-errors.md","REFERENCE","参考文档",15240,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Freferences\u002Fcommon-errors.md",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fpatterns.md",12879,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Freferences\u002Fpatterns.md",{"path":92,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fpricing-and-limits.md",14231,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Freferences\u002Fpricing-and-limits.md",{"path":96,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Fpuppeteer-api.md",12085,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Freferences\u002Fpuppeteer-api.md",{"path":100,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fpuppeteer-vs-playwright.md",15420,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Freferences\u002Fpuppeteer-vs-playwright.md",{"path":104,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Fsession-management.md",16841,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Freferences\u002Fsession-management.md",{"path":108,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":111,"sourceHtmlUrl":112},"scripts\u002Fcheck-versions.sh","SCRIPT","脚本",1267,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Fscripts\u002Fcheck-versions.sh",{"path":114,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":115,"sourceHtmlUrl":116},"templates\u002Fai-enhanced-scraper.ts",3818,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Ftemplates\u002Fai-enhanced-scraper.ts",{"path":118,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":119,"sourceHtmlUrl":120},"templates\u002Fbasic-screenshot.ts",1814,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Ftemplates\u002Fbasic-screenshot.ts",{"path":122,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":123,"sourceHtmlUrl":124},"templates\u002Fpdf-generation.ts",2857,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Ftemplates\u002Fpdf-generation.ts",{"path":126,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":127,"sourceHtmlUrl":128},"templates\u002Fplaywright-example.ts",2800,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Ftemplates\u002Fplaywright-example.ts",{"path":130,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":131,"sourceHtmlUrl":132},"templates\u002Fscreenshot-with-kv-cache.ts",2726,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Ftemplates\u002Fscreenshot-with-kv-cache.ts",{"path":134,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":135,"sourceHtmlUrl":136},"templates\u002Fsession-reuse.ts",3547,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Ftemplates\u002Fsession-reuse.ts",{"path":138,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":139,"sourceHtmlUrl":140},"templates\u002Fweb-scraper-basic.ts",2963,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Ftemplates\u002Fweb-scraper-basic.ts",{"path":142,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":143,"sourceHtmlUrl":144},"templates\u002Fweb-scraper-batch.ts",3159,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Ftemplates\u002Fweb-scraper-batch.ts",{"path":146,"resourceType":147,"resourceTypeDesc":148,"sizeBytes":149,"sourceHtmlUrl":150},"templates\u002Fwrangler-browser-config.jsonc","OTHER","其他",3202,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fcloudflare-browser-rendering\u002Fskills\u002Fcloudflare-browser-rendering\u002Ftemplates\u002Fwrangler-browser-config.jsonc",[152,159,166,173,180,187],{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"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":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"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":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"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":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"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":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"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":188,"name":189,"nameZh":6,"description":190,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":191,"categories":192,"keywords":193,"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",[],[]]