connorads/dotfiles

cloudflare-workers-deployments

Set up, deploy, and troubleshoot Cloudflare Workers projects using Wrangler, Workers Builds Git integrations, custom domains/routes, static assets, and Cloudflare Access. Use this skill whenever the user mentions Cloudflare Workers deployment, Workers Builds, GitHub-connected or GitLab-connected Workers, Wrangler static assets, Worker custom domains, build branches, preview builds, build watch paths, monorepo Workers Builds, build triggers, build logs, pnpm/npm/yarn/bun deploy commands in Worke…

First seen Jul 18, 2026

Installation

$ npx skills add connorads/dotfiles --skill cloudflare-workers-deployments

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from connorads/dotfiles · top by installs.

npx skills add connorads/dotfiles

Browse all from connorads/dotfiles

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 16
Default branch master
Open issues 6
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 5,943 B
  • docs SUMMARY.md 656 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

Cloudflare Workers Deployments

Use this skill for Cloudflare Workers deployment work, especially when the user wants the Cloudflare-hosted Git build pipeline rather than a local wrangler deploy.

Operating Rules

  • Check current Cloudflare docs or API schema before control-plane changes.

Workers Builds and the cf CLI move quickly.

  • Load the CLI's own context before control-plane work:

cf agent-context workers-builds (also workers for Worker scripts, zero-trust for Access) prints the current command surface and per-command usage - fresher than any snapshot in this skill.

  • Discover available tools before choosing a path: cf, wrangler, jq,

package manager, and whether the Cloudflare dashboard is already configured.

  • Read existing state first. Do not create duplicate Workers, repo connections,

build triggers, custom domains, DNS records, or Access applications.

  • Do not echo tokens, deploy hook URLs, raw build logs, or protected response

bodies. Use redacted summaries unless the user explicitly asks for raw output.

  • For Workers Builds REST calls, use an explicit user-scoped CFAPITOKEN with

the required Builds permissions. Do not read local Cloudflare CLI OAuth session JSON in reusable snippets.

  • Distinguish deployment paths:

- wrangler deploy publishes from the current machine. - Workers Builds runs build/deploy commands inside Cloudflare from Git. - wrangler versions upload uploads a non-live version, but it does not create a brand-new Worker if the Worker does not exist yet.

  • Distinguish Worker identifiers. The Builds API uses the immutable Worker tag,

documented as externalscriptid; the Worker name is not interchangeable.

  • Before any POST/PATCH/PUT/DELETE or manual build trigger, show the account,

Worker name/tag, repo, branch, root directory, commands, hostname, and policy summary, then get explicit user confirmation.

  • Keep account IDs, Worker IDs, trigger UUIDs, policy IDs, emails, and hostnames

out of reusable docs unless the user explicitly asks for a project-specific note.

Reference Routing

Read only the reference needed for the task:

  • references/workers-builds.md - create a Worker project, connect GitHub,

create/update triggers, trigger builds, inspect logs, verify deployments.

  • references/routing-and-assets.md - static-assets Worker config, custom

domains versus routes, DNS prerequisites, and asset-routing gotchas.

  • references/access.md - protect a hostname with Cloudflare Access and reusable

policies.

  • references/troubleshooting.md - known failures: pnpm workspace/lockfile

mismatch, pnpm deploy, empty Worker projects, DNS propagation, stale caches.

Standard Workflow

  1. Establish intent.

- Ask only if needed: local deploy vs Workers Builds, production branch, hostname, preview branches, and whether Access should protect the hostname. - If the user says not to deploy locally, do not run wrangler deploy.

  1. Inspect local repo.

- Read package.json, lockfile, wrangler.toml/wrangler.jsonc, build output directory, project root, production branch, and existing deploy docs. - Derive package manager from lockfiles and packageManager; do not assume pnpm or main. - Verify scripts invoke package scripts explicitly. With pnpm, prefer pnpm run deploy in Workers Builds; pnpm deploy can invoke pnpm's built-in deploy command instead of the project script. - Prefer repo-pinned wrangler as a dev dependency so Cloudflare and local builds use the same Wrangler major/minor.

  1. Inspect Cloudflare state.

- cf auth whoami - cf context show - cf workers scripts search --name <worker-name> - cf workers beta workers versions list --worker-id <worker-id> when the Worker is a beta Worker shell. - Get the Worker tag before Builds API calls; see references/workers-builds.md. - cf workers-builds triggers list --external-script-id <worker-tag> - cf workers deployments list --script-name <worker-name> - cf workers domains list --hostname <hostname>

  1. Configure Workers Builds.

- For a missing Worker project, prefer creating a Worker shell without a live version, then attaching a Git build trigger. See references/workers-builds.md. - Pick the setup path by context: interactive with a browser -> hand the user the dashboard deep link (it authorises GitHub and creates the build token); headless, scripted, or reproducible -> the cf CLI path. See references/workers-builds.md (Choose A Setup Path). - Connect the Git repository, select/create a build token, and create a production trigger. - Use build/deploy commands that work in a non-interactive CI environment.

  1. Verify in layers.

- Local: frozen install, type/check, build, deploy dry-run. - Cloudflare: build status, build logs, Worker version, active deployment, custom domain, DNS, and HTTP response. - Access: unauthenticated request should redirect to Cloudflare Access; do not attempt to bypass or scrape protected content.

Reference files include Cloudflare docs entry points. Open the relevant current docs before mutating Cloudflare state.