[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C42AEQC9CJ6X109RYXSSGH":3,"skill-same:01M7C42AEQC9CJ6X109RYXSSGH":66},{"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":40,"commitSha":41,"skillDirectory":42,"forksCount":13,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":45,"install":46,"resources":59},"01M7C42AEQC9CJ6X109RYXSSGH","cloudflare-temporary-deploy",null,"Deploy a Worker live, no account, via wrangler --temporary.","fengwhang\u002Fmercury","fengwhang","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F325040254?v=4","01M7C3K54Y41KVGPHEMKEP9X70","01M7C3K55NTZ4B36YP2JY1NMJ0",0,"MIT","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fweb-development\u002Fcloudflare-temporary-deploy\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudflare-temporary-deploy\ndescription: Deploy a Worker live, no account, via wrangler --temporary.\nversion: 1.0.0\nauthor: Hermes Agent\nlicense: MIT\nplatforms: [linux, macos, windows]\nmetadata:\n  mercury:\n    tags: [cloudflare, workers, wrangler, deploy, temporary, agent, serverless, web-development]\n    category: web-development\n---\n\n# Cloudflare Temporary Deploy Skill\n\nDeploy a Cloudflare Worker to a live `workers.dev` URL with zero account setup, using `wrangler deploy --temporary`. Cloudflare provisions a throwaway account, deploys, and prints a claim URL valid for 60 minutes; unclaimed accounts auto-delete. This gives an agent a tight write → deploy → verify loop without any OAuth, signup, or token copy-paste.\n\nThis skill does NOT cover production deploys (use `wrangler login` + a permanent account for those), nor non-Worker Cloudflare products beyond the temporary-account limits below.\n\n## When to Use\n\nLoad this skill when the user wants to:\n\n- **Ship agent-written code to a live URL** without first creating a Cloudflare account — \"deploy this and give me a link\"\n- **Iterate in a background\u002Fautonomous session** where a browser OAuth step would be a hard stop\n- **Prototype or evaluate Workers** quickly with a throwaway, claimable target\n- **Build a self-verifying deploy loop** — deploy, `curl` the live URL, confirm output matches the code, redeploy\n\n## When NOT to Use\n\n- **Production or CI\u002FCD** → use a permanent account (`wrangler login` or `CLOUDFLARE_API_TOKEN`). `--temporary` errors out if any credential is present.\n- **Wrangler is already authenticated** → `--temporary` returns an error by design. Run `wrangler logout` first only if the user explicitly wants a throwaway deploy.\n- **Long-lived hosting** → temporary deployments are deleted after 60 minutes unless claimed.\n\n## Prerequisites\n\n- **Wrangler 4.102.0 or later.** This is the version that introduced `--temporary`. Earlier versions do not have it. Verify with `npx wrangler@latest --version`.\n- **Node 18+ \u002F npm** (or `npx`, `yarn`, `pnpm`). No global install needed — `npx wrangler@latest` works.\n- **No Cloudflare credentials present.** `--temporary` only works when Wrangler is unauthenticated: no OAuth login, no `CLOUDFLARE_API_TOKEN` \u002F `CLOUDFLARE_API_KEY` env var, no `~\u002F.wrangler` \u002F `~\u002F.config\u002F.wrangler` cached OAuth. Use the `terminal` tool's environment as-is; do not set those vars.\n- Network egress to `cloudflare.com` and `workers.dev`.\n- Using `--temporary` accepts Cloudflare's Terms of Service and Privacy Policy.\n\n## How to Run\n\nUse the `terminal` tool for every step. Always pin the version (`wrangler@latest` or `wrangler@4.102.0` or newer) so you don't accidentally run an old global wrangler that lacks the flag.\n\n1. **Scaffold a minimal Worker** (skip if the project already exists). A Worker needs a `wrangler.toml` (or `wrangler.jsonc`) and an entry script. Minimal TypeScript example — write these with `write_file`:\n\n   `wrangler.jsonc`:\n   ```jsonc\n   {\n     \"name\": \"hello-agent\",\n     \"main\": \"src\u002Findex.ts\",\n     \"compatibility_date\": \"2025-01-01\"\n   }\n   ```\n\n   `src\u002Findex.ts`:\n   ```typescript\n   export default {\n     async fetch(): Promise\u003CResponse> {\n       return new Response(\"hello cloudflare\");\n     },\n   };\n   ```\n\n2. **Deploy with `--temporary`** from the project directory:\n   ```\n   npx wrangler@latest deploy --temporary\n   ```\n   The proof-of-work check adds a short automatic delay. On success Wrangler prints an `Account: \u003Cname> (created)` (or `(reused)`) line, a `Claim URL`, and the live `https:\u002F\u002F\u003Cworker>.\u003Caccount>.workers.dev` URL.\n\n3. **Parse the URLs** from that output. Run the helper to extract them reliably instead of eyeballing:\n   ```\n   npx wrangler@latest deploy --temporary 2>&1 | python scripts\u002Fparse_deploy_output.py\n   ```\n   (Resolve `scripts\u002Fparse_deploy_output.py` to this skill's absolute path.) It prints JSON: `{\"live_url\", \"claim_url\", \"account\", \"account_state\", \"expires_minutes\", \"deployed\"}`.\n\n4. **Verify the deploy is actually live** — do not trust the deploy log alone. `curl` the live URL and confirm the body matches what the code returns:\n   ```\n   curl -sS \u003Clive_url>\n   ```\n\n5. **Iterate.** Edit the code, redeploy with the same `npx wrangler@latest deploy --temporary`. Within the 60-minute window Wrangler reuses the cached temporary account (`Account: \u003Cname> (reused)`), so the URL stays stable. `curl` again to confirm the change.\n\n6. **Hand the claim URL to the user.** Tell them: open it within 60 minutes to keep the deployment and any resources; if they don't claim it, everything auto-deletes. Treat the claim URL as a secret — it grants ownership of the account.\n\n## Quick Reference\n\n| Step | Command |\n|---|---|\n| Check version (need 4.102.0+) | `npx wrangler@latest --version` |\n| Deploy (no account) | `npx wrangler@latest deploy --temporary` |\n| Deploy + parse URLs | `npx wrangler@latest deploy --temporary 2>&1 \\| python scripts\u002Fparse_deploy_output.py` |\n| Verify live | `curl -sS \u003Clive_url>` |\n| Clear cached temp account | `npx wrangler@latest logout` |\n\n### Temporary account product limits\n\n| Product | Limit on a temporary account |\n|---|---|\n| Workers | Deploys to `workers.dev` |\n| Static Assets | Up to 1,000 files, 5 MiB each |\n| KV | Allowed |\n| D1 | 1 database, 100 MB per DB \u002F 100 MB total |\n| Durable Objects | Allowed |\n| Hyperdrive | 2 configs, 10 connections |\n| Queues | Up to 10 |\n| SSL\u002FTLS certs | Allowed |\n\n## Pitfalls\n\n- **`--temporary` is not in `wrangler deploy --help` and is not a global flag.** It is intentionally hidden and surfaced dynamically: when an unauthenticated `wrangler deploy` fails, Wrangler prints \"rerun with `--temporary`\". Don't conclude the flag is missing just because `--help` omits it — check the version instead.\n- **Old global wrangler.** A stale globally-installed `wrangler` (`\u003C 4.102.0`) silently lacks the flag. Always invoke `npx wrangler@latest` (or a pinned `>=4.102.0`) so you control the version.\n- **Auth present → hard error.** If `wrangler login` was ever run, or `CLOUDFLARE_API_TOKEN`\u002F`CLOUDFLARE_API_KEY` is set, `--temporary` errors. Either unset the var for this shell or `wrangler logout`. Never strip a user's real credentials without telling them.\n- **Rate limiting.** Creating temporary accounts too fast fails. Reuse the cached account (just redeploy) within the 60-minute window instead of forcing a new one; if rate-limited, wait or use a permanent account.\n- **60-minute hard expiry, not extendable.** If the deploy must outlive an hour, the user must claim it. Surface this clearly.\n- **`curl` may briefly serve the old body after a redeploy.** `workers.dev` has a short edge cache; the `(reused)` line plus a new `Current Version ID` confirm the deploy succeeded even if `curl` shows stale content for a few seconds. Re-curl, or add a cache-busting query string, before concluding a redeploy failed.\n- **Don't log the claim URL into shared transcripts as \"just a link.\"** It is credential-equivalent.\n\n## Verification\n\n- `npx wrangler@latest --version` returns `>= 4.102.0`.\n- `npx wrangler@latest deploy --temporary` prints a `workers.dev` live URL and a `claim-preview?claimToken=` claim URL.\n- `curl -sS \u003Clive_url>` returns the exact body the Worker code produces.\n- A second deploy reports `Account: \u003Cname> (reused)` and the live URL is unchanged.\n- The parser script's self-test passes: `python scripts\u002Fparse_deploy_output.py --selftest`.\n","# Cloudflare Temporary Deploy Skill\n\nDeploy a Cloudflare Worker to a live `workers.dev` URL with zero account setup, using `wrangler deploy --temporary`. Cloudflare provisions a throwaway account, deploys, and prints a claim URL valid for 60 minutes; unclaimed accounts auto-delete. This gives an agent a tight write → deploy → verify loop without any OAuth, signup, or token copy-paste.\n\nThis skill does NOT cover production deploys (use `wrangler login` + a permanent account for those), nor non-Worker Cloudflare products beyond the temporary-account limits below.\n\n## When to Use\n\nLoad this skill when the user wants to:\n\n- **Ship agent-written code to a live URL** without first creating a Cloudflare account — \"deploy this and give me a link\"\n- **Iterate in a background\u002Fautonomous session** where a browser OAuth step would be a hard stop\n- **Prototype or evaluate Workers** quickly with a throwaway, claimable target\n- **Build a self-verifying deploy loop** — deploy, `curl` the live URL, confirm output matches the code, redeploy\n\n## When NOT to Use\n\n- **Production or CI\u002FCD** → use a permanent account (`wrangler login` or `CLOUDFLARE_API_TOKEN`). `--temporary` errors out if any credential is present.\n- **Wrangler is already authenticated** → `--temporary` returns an error by design. Run `wrangler logout` first only if the user explicitly wants a throwaway deploy.\n- **Long-lived hosting** → temporary deployments are deleted after 60 minutes unless claimed.\n\n## Prerequisites\n\n- **Wrangler 4.102.0 or later.** This is the version that introduced `--temporary`. Earlier versions do not have it. Verify with `npx wrangler@latest --version`.\n- **Node 18+ \u002F npm** (or `npx`, `yarn`, `pnpm`). No global install needed — `npx wrangler@latest` works.\n- **No Cloudflare credentials present.** `--temporary` only works when Wrangler is unauthenticated: no OAuth login, no `CLOUDFLARE_API_TOKEN` \u002F `CLOUDFLARE_API_KEY` env var, no `~\u002F.wrangler` \u002F `~\u002F.config\u002F.wrangler` cached OAuth. Use the `terminal` tool's environment as-is; do not set those vars.\n- Network egress to `cloudflare.com` and `workers.dev`.\n- Using `--temporary` accepts Cloudflare's Terms of Service and Privacy Policy.\n\n## How to Run\n\nUse the `terminal` tool for every step. Always pin the version (`wrangler@latest` or `wrangler@4.102.0` or newer) so you don't accidentally run an old global wrangler that lacks the flag.\n\n1. **Scaffold a minimal Worker** (skip if the project already exists). A Worker needs a `wrangler.toml` (or `wrangler.jsonc`) and an entry script. Minimal TypeScript example — write these with `write_file`:\n\n   `wrangler.jsonc`:\n   ```jsonc\n   {\n     \"name\": \"hello-agent\",\n     \"main\": \"src\u002Findex.ts\",\n     \"compatibility_date\": \"2025-01-01\"\n   }\n   ```\n\n   `src\u002Findex.ts`:\n   ```typescript\n   export default {\n     async fetch(): Promise\u003CResponse> {\n       return new Response(\"hello cloudflare\");\n     },\n   };\n   ```\n\n2. **Deploy with `--temporary`** from the project directory:\n   ```\n   npx wrangler@latest deploy --temporary\n   ```\n   The proof-of-work check adds a short automatic delay. On success Wrangler prints an `Account: \u003Cname> (created)` (or `(reused)`) line, a `Claim URL`, and the live `https:\u002F\u002F\u003Cworker>.\u003Caccount>.workers.dev` URL.\n\n3. **Parse the URLs** from that output. Run the helper to extract them reliably instead of eyeballing:\n   ```\n   npx wrangler@latest deploy --temporary 2>&1 | python scripts\u002Fparse_deploy_output.py\n   ```\n   (Resolve `scripts\u002Fparse_deploy_output.py` to this skill's absolute path.) It prints JSON: `{\"live_url\", \"claim_url\", \"account\", \"account_state\", \"expires_minutes\", \"deployed\"}`.\n\n4. **Verify the deploy is actually live** — do not trust the deploy log alone. `curl` the live URL and confirm the body matches what the code returns:\n   ```\n   curl -sS \u003Clive_url>\n   ```\n\n5. **Iterate.** Edit the code, redeploy with the same `npx wrangler@latest deploy --temporary`. Within the 60-minute window Wrangler reuses the cached temporary account (`Account: \u003Cname> (reused)`), so the URL stays stable. `curl` again to confirm the change.\n\n6. **Hand the claim URL to the user.** Tell them: open it within 60 minutes to keep the deployment and any resources; if they don't claim it, everything auto-deletes. Treat the claim URL as a secret — it grants ownership of the account.\n\n## Quick Reference\n\n| Step | Command |\n|---|---|\n| Check version (need 4.102.0+) | `npx wrangler@latest --version` |\n| Deploy (no account) | `npx wrangler@latest deploy --temporary` |\n| Deploy + parse URLs | `npx wrangler@latest deploy --temporary 2>&1 \\| python scripts\u002Fparse_deploy_output.py` |\n| Verify live | `curl -sS \u003Clive_url>` |\n| Clear cached temp account | `npx wrangler@latest logout` |\n\n### Temporary account product limits\n\n| Product | Limit on a temporary account |\n|---|---|\n| Workers | Deploys to `workers.dev` |\n| Static Assets | Up to 1,000 files, 5 MiB each |\n| KV | Allowed |\n| D1 | 1 database, 100 MB per DB \u002F 100 MB total |\n| Durable Objects | Allowed |\n| Hyperdrive | 2 configs, 10 connections |\n| Queues | Up to 10 |\n| SSL\u002FTLS certs | Allowed |\n\n## Pitfalls\n\n- **`--temporary` is not in `wrangler deploy --help` and is not a global flag.** It is intentionally hidden and surfaced dynamically: when an unauthenticated `wrangler deploy` fails, Wrangler prints \"rerun with `--temporary`\". Don't conclude the flag is missing just because `--help` omits it — check the version instead.\n- **Old global wrangler.** A stale globally-installed `wrangler` (`\u003C 4.102.0`) silently lacks the flag. Always invoke `npx wrangler@latest` (or a pinned `>=4.102.0`) so you control the version.\n- **Auth present → hard error.** If `wrangler login` was ever run, or `CLOUDFLARE_API_TOKEN`\u002F`CLOUDFLARE_API_KEY` is set, `--temporary` errors. Either unset the var for this shell or `wrangler logout`. Never strip a user's real credentials without telling them.\n- **Rate limiting.** Creating temporary accounts too fast fails. Reuse the cached account (just redeploy) within the 60-minute window instead of forcing a new one; if rate-limited, wait or use a permanent account.\n- **60-minute hard expiry, not extendable.** If the deploy must outlive an hour, the user must claim it. Surface this clearly.\n- **`curl` may briefly serve the old body after a redeploy.** `workers.dev` has a short edge cache; the `(reused)` line plus a new `Current Version ID` confirm the deploy succeeded even if `curl` shows stale content for a few seconds. Re-curl, or add a cache-busting query string, before concluding a redeploy failed.\n- **Don't log the claim URL into shared transcripts as \"just a link.\"** It is credential-equivalent.\n\n## Verification\n\n- `npx wrangler@latest --version` returns `>= 4.102.0`.\n- `npx wrangler@latest deploy --temporary` prints a `workers.dev` live URL and a `claim-preview?claimToken=` claim URL.\n- `curl -sS \u003Clive_url>` returns the exact body the Worker code produces.\n- A second deploy reports `Account: \u003Cname> (reused)` and the live URL is unchanged.\n- The parser script's self-test passes: `python scripts\u002Fparse_deploy_output.py --selftest`.\n",{"name":5,"author":23,"license":14,"version":24,"metadata":25,"platforms":36,"description":7},"Hermes Agent","1.0.0",{"mercury":26},{"tags":27,"category":35},[28,29,30,31,32,33,34,35],"cloudflare","workers","wrangler","deploy","temporary","agent","serverless","web-development",[37,38,39],"linux","macos","windows","main","94a12cab2ce32e2020d179b5d579d0cbcbd0f206","hermes\u002Foptional-skills\u002Fweb-development\u002Fcloudflare-temporary-deploy","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury","https:\u002F\u002Fgithub.com\u002Ffengwhang","2026-10-09 08:26:42",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add fengwhang\u002Fmercury --skill cloudflare-temporary-deploy",{"tool":52,"command":53},"bunx","bunx skills add fengwhang\u002Fmercury --skill cloudflare-temporary-deploy",{"tool":55,"command":56},"pnpm","pnpm dlx skills add fengwhang\u002Fmercury --skill cloudflare-temporary-deploy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fweb-development\u002Fcloudflare-temporary-deploy\u002FSKILL.md",true,[60],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fparse_deploy_output.py","SCRIPT","脚本",4281,"https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fweb-development\u002Fcloudflare-temporary-deploy\u002Fscripts\u002Fparse_deploy_output.py",[67,74,81,88,94,101],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7C4BTY3ND38CN200ZCTH6NV","greet","A greeting skill for testing","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Fmarketplace\u002Ffixtures\u002Fvalid-marketplace\u002Fplugins\u002Fhello-plugin\u002Fskills\u002Fgreet\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7C4BSNZTPW8JR5NGCQXGSEZ","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7C4BRA7J8C06KSVW100F1W1","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7C4BNB04KQGCJ835JE8AR13","no-frontmatter","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M7C4BM38TZFYT1AJ6SKHPZZ2","child-skill","A nested skill in a subdirectory.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fnested\u002Fchild-skill\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":18},"01M7C4BJDN7RFFCM28CGX15Q97","different-name","A skill with a name that doesn't match the directory.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fname-mismatch\u002FSKILL.md",[],[]]