agentleFS
jtepejtepe/slopclub/skills/cf-temp-deploy/SKILL.md

cf-temp-deploy

Skill0 starsChanged 4 months agoApache-2.0View on GitHub

Deploy a Worker (plus bindings like KV, D1, Durable Objects) to Cloudflare without any account or login, using a temporary account via `wrangler deploy --temporary`. Use when the user wants something deployed/live/shared quickly and no Cloudflare credentials are configured.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not use --temporary when credentials already exist: the flag errors out if Wrangler can authenticate via OAuth, CLOUDFLARE_API_TOKEN, or …

    line 20
  2. Very specific:

    Make sure the project has a valid wrangler.jsonc/wrangler.toml and builds locally.

    line 26
  3. Very specific:

    Check the Wrangler version — the flag requires Wrangler 4.102.0 or later (npx wrangler --version.

    line 28
  4. Distinctive:

    If the project needs anything outside this list (e.g.

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Deploy To Cloudflare Via A Temporary Account

Cloudflare's temporary accounts for AI agents let you deploy a Worker to a live workers.dev URL with no account, no login, and no human in the loop. Wrangler provisions a throwaway account, deploys, and prints a claim URL the user can open to keep the deployment by attaching it to a real Cloudflare account.

When to use

  • The user wants a Worker/site/API deployed or shared now and no Cloudflare credentials are available in the environment.
  • You are running unattended (background session, CI-like context) and cannot complete an OAuth browser flow.

Do not use --temporary when credentials already exist: the flag errors out if Wrangler can authenticate via OAuth, CLOUDFLARE_API_TOKEN, or a global API key. In that case, run a normal wrangler deploy.

How to deploy

  1. Make sure the project has a valid wrangler.jsonc/wrangler.toml and builds locally.
  2. Check the Wrangler version — the flag requires Wrangler 4.102.0 or later (npx wrangler --version; use npx wrangler@latest if older).
  3. Deploy:

    npx wrangler deploy --temporary

    Wrangler creates (or reuses) a temporary preview account, deploys the Worker to a workers.dev URL, and prints the claim URL.

  4. Immediately relay both URLs to the user: the live workers.dev URL and the claim URL. The claim URL is the only way for them to keep the deployment — never omit or bury it.

The claim window — critical

  • The temporary account is deleted after 60 minutes if unclaimed, along with the Worker and every resource created for it.
  • Claiming: the user opens the claim URL, signs up for or into Cloudflare, and the whole temporary account — Worker, databases, and other bindings — transfers to their real account.
  • Tell the user about the 60-minute deadline explicitly.

Redeploying and iterating

Wrangler caches the temporary account locally and reuses it while the account and claim URL are still valid, so you can iterate:

# fix code, then redeploy to the same temporary account
npx wrangler deploy --temporary

The command output states whether the account was created or reused.

Supported products

Temporary preview accounts support a limited product set:

  • Workers (and Workers Static Assets)
  • Workers KV
  • D1
  • Durable Objects
  • Hyperdrive
  • Queues
  • SSL/TLS certificates

If the project needs anything outside this list (e.g. R2, custom domains, Pages), a temporary deploy will not cover it — say so and fall back to a normal authenticated deploy.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.