[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CFZCW3H5EHQMVJC2TGNZSH":3,"skill-same:01M7CFZCW3H5EHQMVJC2TGNZSH":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":29,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7CFZCW3H5EHQMVJC2TGNZSH","cloudflare-pages-to-workers",null,"Migrate a Cloudflare Pages project to Workers with static assets. Convert config, handle _worker.js and Pages Functions, move authored commands to cf, validate with a dry run. Use when a project has pages_build_output_dir or uses wrangler pages deploy.","codewhale-hq\u002Fcodewhale-plugin-marketplace","codewhale-hq","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F326694313?v=4","01M6CDD9D70AD3631SMRJ7REW4","Codewhale","01M7CFYTPJMP417FBR6K9VE5VN",5,"MIT","https:\u002F\u002Fgithub.com\u002Fcodewhale-hq\u002Fcodewhale-plugin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fcloudflare\u002Fskills\u002Fcloudflare-pages-to-workers\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudflare-pages-to-workers\ndescription: Migrate a Cloudflare Pages project to Workers with static assets. Convert config, handle _worker.js and Pages Functions, move authored commands to cf, validate with a dry run. Use when a project has pages_build_output_dir or uses wrangler pages deploy.\n---\n\n# Cloudflare Pages to Workers\n\nCloudflare documents a migration from Pages to Workers with static assets\n(https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002Fstatic-assets\u002Fmigration-guides\u002Fmigrate-from-pages\u002F).\nThis skill is a checklist for that migration; it does not deploy. Before\nchanging anything, read Cloudflare's current guide. If the `cloudflare-docs`\nplugin is enabled, its docs MCP also publishes a migration-guide tool next to\nthe search tool.\n\n## 1. Inspect\n\n- `wrangler.toml|json|jsonc` with `pages_build_output_dir`, or a Pages project\n  configured only in the dashboard (then there is no config file to convert;\n  bindings and variables live in the dashboard and must be re-declared).\n- A `functions\u002F` directory (Pages Functions), a built `_worker.js`, `_routes.json`,\n  `_headers`, `_redirects`.\n- `package.json` scripts that call `wrangler pages dev` or `wrangler pages deploy`.\n- Inspect the installed cf version, framework adapter and Node22.18+ runtime.\n  Preview a legacy conversion with `cf migrate --dry-run`; review its local\n  edits and unresolved items. Do not create a new project over the old one.\n\n## 2. Classify\n\n- **Assets only** (no `functions\u002F`, no `_worker.js`): the new config needs only\n  `name`, `compatibility_date` and `assets.directory`.\n- **Assets plus code** (a built `_worker.js`, or `functions\u002F`): add `main`\n  pointing to the Worker entry, and `assets.binding` (for example `ASSETS`) if the\n  code serves assets itself.\n\n## 3. Convert the config\n\nUse `cloudflare.config.ts` and the current `cf\u002Fconfig` helpers. The Worker\nneeds `name` and `compatibilityDate`; code also needs `entrypoint`. Preserve\naccount, bindings\u002FIDs, compatibility behavior and domains from the Pages\nproject. Static assets follow the adapter's current documented output format.\nIf code needs an ASSETS binding, declare `bindings.assets()` in `worker.env`.\nReview generated output with `cf build` and `cf deploy --dry-run`.\n\nA built `_worker.js` must not become a public asset. Move it outside the assets\ndirectory or exclude it and `_routes.json` in `.assetsignore`:\n\n```\n_worker.js\n_routes.json\n```\n\n  Pages excluded `node_modules`, `.DS_Store` and `.git` automatically; Workers\n  does not, so list them (`**\u002Fnode_modules`, `**\u002F.DS_Store`, `**\u002F.git`) if they\n  are inside the assets directory.\n- `_headers` and `_redirects` placed in the assets directory are parsed by\n  Workers and keep working for static asset responses, so do not ignore them.\n  They are not applied to responses generated by Worker code; if the project has\n  Pages Functions, `_worker.js`, or `run_worker_first`, headers and redirects for\n  those responses must be set in code.\n- If `functions\u002F` exists, the build must compile it. keep the framework's documented Functions build adapter and set the Worker\n  entrypoint to its output. A legacy compatibility delegate may still be an\n  adapter implementation detail; do not invent a cf Pages Functions build\n  command or silently discard function routing.\n\n## 4. Scripts\n\n| Before | After |\n| --- | --- |\n| `wrangler pages dev \u003Cdir>` | `cf dev` after reviewed migration |\n| `wrangler pages deploy \u003Cdir>` | `cf deploy` (needs approval) |\n\nFramework commands (`astro dev`, `next dev`) stay as they are. If the framework\nhas a Cloudflare adapter that supports Workers, use its documented setup.\n\n## 5. Validate locally\n\n1. Build with the project's command.\n2. Run `\u002Fcloudflare-preflight`.\n3. `cf deploy --dry-run` and read its output for the asset count, the\n   entry file and bindings.\n4. `cf dev`, then request the routes that the old site served,\n   including a missing path, an SPA route if applicable, and one Function route.\n\n## 6. Cutover is the user's call\n\nDeployment, custom-domain changes and deleting the Pages project are\naccount-level actions. Follow `cloudflare-deploy`: show the plan and wait for a\nyes. Things to tell the user before cutover:\n\n- Preview deployments, branch aliases and the `*.pages.dev` hostname do not\n  carry over automatically; Workers Builds and `workers.dev` work differently.\n- Custom domains must be attached to the Worker, and that moves traffic.\n- Keep the Pages project until the Worker is verified; do not delete it.\n\n## Done means\n\nThe config converts, a dry run succeeds, `cf dev` serves the expected\nroutes, and the report lists what still needs the user (dashboard-only bindings,\ndomains, cutover).\n\nCLI migration: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fcf\u002Fwrangler\u002Fmigrate\u002F.\n","# Cloudflare Pages to Workers\n\nCloudflare documents a migration from Pages to Workers with static assets\n(https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002Fstatic-assets\u002Fmigration-guides\u002Fmigrate-from-pages\u002F).\nThis skill is a checklist for that migration; it does not deploy. Before\nchanging anything, read Cloudflare's current guide. If the `cloudflare-docs`\nplugin is enabled, its docs MCP also publishes a migration-guide tool next to\nthe search tool.\n\n## 1. Inspect\n\n- `wrangler.toml|json|jsonc` with `pages_build_output_dir`, or a Pages project\n  configured only in the dashboard (then there is no config file to convert;\n  bindings and variables live in the dashboard and must be re-declared).\n- A `functions\u002F` directory (Pages Functions), a built `_worker.js`, `_routes.json`,\n  `_headers`, `_redirects`.\n- `package.json` scripts that call `wrangler pages dev` or `wrangler pages deploy`.\n- Inspect the installed cf version, framework adapter and Node22.18+ runtime.\n  Preview a legacy conversion with `cf migrate --dry-run`; review its local\n  edits and unresolved items. Do not create a new project over the old one.\n\n## 2. Classify\n\n- **Assets only** (no `functions\u002F`, no `_worker.js`): the new config needs only\n  `name`, `compatibility_date` and `assets.directory`.\n- **Assets plus code** (a built `_worker.js`, or `functions\u002F`): add `main`\n  pointing to the Worker entry, and `assets.binding` (for example `ASSETS`) if the\n  code serves assets itself.\n\n## 3. Convert the config\n\nUse `cloudflare.config.ts` and the current `cf\u002Fconfig` helpers. The Worker\nneeds `name` and `compatibilityDate`; code also needs `entrypoint`. Preserve\naccount, bindings\u002FIDs, compatibility behavior and domains from the Pages\nproject. Static assets follow the adapter's current documented output format.\nIf code needs an ASSETS binding, declare `bindings.assets()` in `worker.env`.\nReview generated output with `cf build` and `cf deploy --dry-run`.\n\nA built `_worker.js` must not become a public asset. Move it outside the assets\ndirectory or exclude it and `_routes.json` in `.assetsignore`:\n\n```\n_worker.js\n_routes.json\n```\n\n  Pages excluded `node_modules`, `.DS_Store` and `.git` automatically; Workers\n  does not, so list them (`**\u002Fnode_modules`, `**\u002F.DS_Store`, `**\u002F.git`) if they\n  are inside the assets directory.\n- `_headers` and `_redirects` placed in the assets directory are parsed by\n  Workers and keep working for static asset responses, so do not ignore them.\n  They are not applied to responses generated by Worker code; if the project has\n  Pages Functions, `_worker.js`, or `run_worker_first`, headers and redirects for\n  those responses must be set in code.\n- If `functions\u002F` exists, the build must compile it. keep the framework's documented Functions build adapter and set the Worker\n  entrypoint to its output. A legacy compatibility delegate may still be an\n  adapter implementation detail; do not invent a cf Pages Functions build\n  command or silently discard function routing.\n\n## 4. Scripts\n\n| Before | After |\n| --- | --- |\n| `wrangler pages dev \u003Cdir>` | `cf dev` after reviewed migration |\n| `wrangler pages deploy \u003Cdir>` | `cf deploy` (needs approval) |\n\nFramework commands (`astro dev`, `next dev`) stay as they are. If the framework\nhas a Cloudflare adapter that supports Workers, use its documented setup.\n\n## 5. Validate locally\n\n1. Build with the project's command.\n2. Run `\u002Fcloudflare-preflight`.\n3. `cf deploy --dry-run` and read its output for the asset count, the\n   entry file and bindings.\n4. `cf dev`, then request the routes that the old site served,\n   including a missing path, an SPA route if applicable, and one Function route.\n\n## 6. Cutover is the user's call\n\nDeployment, custom-domain changes and deleting the Pages project are\naccount-level actions. Follow `cloudflare-deploy`: show the plan and wait for a\nyes. Things to tell the user before cutover:\n\n- Preview deployments, branch aliases and the `*.pages.dev` hostname do not\n  carry over automatically; Workers Builds and `workers.dev` work differently.\n- Custom domains must be attached to the Worker, and that moves traffic.\n- Keep the Pages project until the Worker is verified; do not delete it.\n\n## Done means\n\nThe config converts, a dry run succeeds, `cf dev` serves the expected\nroutes, and the report lists what still needs the user (dashboard-only bindings,\ndomains, cutover).\n\nCLI migration: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fcf\u002Fwrangler\u002Fmigrate\u002F.\n",{"name":5,"description":7},"main","e83cac15fc63134280e964895df4d584e5702c13","plugins\u002Fcloudflare\u002Fskills\u002Fcloudflare-pages-to-workers",2,"https:\u002F\u002Fgithub.com\u002Fcodewhale-hq\u002Fcodewhale-plugin-marketplace","https:\u002F\u002Fcodewhale.net","https:\u002F\u002Fgithub.com\u002Fcodewhale-hq","Open-source coding agent for your terminal. Works with the model provider you choose.","2026-11-13 11:48:42",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add codewhale-hq\u002Fcodewhale-plugin-marketplace --skill cloudflare-pages-to-workers",{"tool":39,"command":40},"bunx","bunx skills add codewhale-hq\u002Fcodewhale-plugin-marketplace --skill cloudflare-pages-to-workers",{"tool":42,"command":43},"pnpm","pnpm dlx skills add codewhale-hq\u002Fcodewhale-plugin-marketplace --skill cloudflare-pages-to-workers","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcodewhale-hq\u002Fcodewhale-plugin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fcloudflare\u002Fskills\u002Fcloudflare-pages-to-workers\u002FSKILL.md",true,[],[48,55,62,69,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7CG92AM4VSATJQ927PE34G4","xlsx","Create\u002Fedit\u002Fanalyze\u002Fverify spreadsheet workbooks including XLSX\u002FCSV\u002FTSV.","https:\u002F\u002Fgithub.com\u002Fcodewhale-hq\u002Fcodewhale-plugin-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fxlsx\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CG8ZBZXPCJACH06SFV39NM","webapp-testing","Start\u002Freuse a local app, wait for readiness, inspect rendered state\u002Fconsole\u002Fnetwork, act from observed selectors, and verify with evidence.","https:\u002F\u002Fgithub.com\u002Fcodewhale-hq\u002Fcodewhale-plugin-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CG8XF83CD62S7TCPMECV4N","verify","Exercise the real app\u002FAPI\u002FCLI and collect observable evidence; tests alone do not count as end-to-end verification.","https:\u002F\u002Fgithub.com\u002Fcodewhale-hq\u002Fcodewhale-plugin-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CG8VF7HN4EHQM3PP877PB6","tts","https:\u002F\u002Fgithub.com\u002Fcodewhale-hq\u002Fcodewhale-plugin-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Ftts\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CG8RSMADT0QKP2ZSF6EN6T","test","Detect the project’s test stack, run the narrowest useful tests, create tests when authorized, and report coverage\u002Fgaps honestly.","https:\u002F\u002Fgithub.com\u002Fcodewhale-hq\u002Fcodewhale-plugin-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Ftest\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CG8MQTZ8VT7E4V3VY78F8X","spreadsheets","Compatibility alias for the xlsx skill. Prefer loading xlsx.","https:\u002F\u002Fgithub.com\u002Fcodewhale-hq\u002Fcodewhale-plugin-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fspreadsheets\u002FSKILL.md",[],[]]