/skill-madness:cloudflare-pages-deployfrom skill-madness
Deploys static sites, previews, and review hubs to Cloudflare Pages (free) with wrangler, then verifies the public URL. Includes preflight checks for authentication and project conventions.
Ships in skill-madness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The user hosts previews and small sites on Cloudflare Pages' free tier and has shipped many of them from this machine, from several different agent hosts. A session that answers "I don't have Cloudflare access" or "what is Cloudflare?" without checking has failed the user. Check first, and treat the evidence as the answer.
wrangler is usually not on PATH. It isn't installed globally under the active Node, so
wrangler --version fails. That does NOT mean Cloudflare is missing. Run it as
npx -y wrangler@latest …, or use the project's local copy (node_modules/.bin/wrangler).~/Library/Preferences/.wrangler/config/default.toml, so an empty or missing ~/.wrangler
proves nothing. An expiration_time in the past is fine: wrangler refreshes the token
automatically on the next command.CLOUDFLARE_API_TOKEN (Pages: Edit) and CLOUDFLARE_ACCOUNT_ID set in that environment. If
whoami fails in such a session, say exactly that. Don't claim Cloudflare doesn't exist.npx -y wrangler@latest whoami # must print an account name; needs pages (write)
npx -y wrangler@latest pages project list # every existing Pages project + its domains
If whoami says not authenticated on the user's own machine, the login has lapsed. Have the user
run npx wrangler login in their own terminal: it opens a browser for OAuth, so an agent can't
complete it. In Claude Code they can type ! npx wrangler login.
deploy.sh, an npm run deploy or
hub:deploy script, .github/workflows/* that mention Pages or wrangler, and
wrangler.toml / wrangler.jsonc / wrangler.json. Read the script before running it. These
scripts encode the pieces that break when reinvented: --base origin rewrites for embedded
URLs, asset rsync, and _redirects.README, AGENTS.md, CLAUDE.md, memory,
project-local skills). Some projects deploy by git push or a GitHub workflow, not wrangler.
A project whose row in pages project list shows Git Provider: Yes builds from its repo.pages project list before creating a new one.
Redeploying to the wrong project overwrites someone's live site.npx --no-install wrangler needs wrangler as a local devDependency (npm i -D wrangler). A
global install won't satisfy --no-install. Verify with node_modules/.bin/wrangler --version.Build first. Then deploy the output directory (dist/, build/, out/, public/, or a bare
folder with index.html):
# New project only (skip if it already appears in `pages project list`).
# --force is REQUIRED for new projects (see "Pages → Workers delegation" below):
npx -y wrangler@latest pages project create <name> --production-branch main --force
# Preview (safe default: does NOT touch the production URL):
npx -y wrangler@latest pages deploy <dir> --project-name <name> --branch <preview-branch>
# -> https://<preview-branch>.<name>.pages.dev (plus a per-deploy hash URL)
# Production (only when the user asked for prod/live):
npx -y wrangler@latest pages deploy <dir> --project-name <name> --branch main
# -> https://<name>.pages.dev
<name> usually becomes the URL slug. If the name is already taken on pages.dev, Cloudflare adds
a random suffix (hello-world → hello-world-5vr.pages.dev), so read the real URL from the
project create output. Never guess it. A new project name gives a fresh, independent URL, and the old
deployment stays live. Default to a preview branch unless the user said production. A
project with a custom domain (for example johnstennett-com) is the user's real site.
Hello world from nothing:
mkdir -p hello && printf '<!doctype html><title>Hello</title><h1>Hello, world</h1>\n' > hello/index.html
npx -y wrangler@latest pages project create hello-world --production-branch main --force
npx -y wrangler@latest pages deploy hello --project-name hello-world --branch main
Cloudflare now routes new-project commands to "the latest version of Cloudflare Pages, now part of Cloudflare Workers". For a plain static folder, that delegation fails and deploys nothing:
Delegating to the latest version of Cloudflare Pages, now part of Cloudflare Workers
✘ [ERROR] Missing entry-point to Worker script or to assets directory
The switch is on Cloudflare's side, so pinning an older wrangler doesn't help (4.136.1 delegates
too). Don't retry unchanged, and don't report that Cloudflare is broken or that you lack access.
The fix is --force on pages project create, which creates the project directly on classic
Pages. After that, pages deploy to that project works normally without --force (verified
2026-09-27). Per wrangler's own notice, projects that already exist on classic Pages aren't delegated.
wrangler's "Deployment complete" line is not proof that the site works. Curl every path the site actually serves, following redirects:
curl -sL -o /dev/null -w '%{http_code} %{url_effective}\n' https://<name>.pages.dev/<path>
npx -y wrangler@latest pages deployment list --project-name <name> | head
Then load the page in a real browser and look at it. Report the canonical <name>.pages.dev URL
(or <branch>.<name>.pages.dev for previews), not the per-deployment hash URL.
Checklist:
whoami shows an accountcurl -L.html paths with a 308. /page.html → 308 → /page → 200. A bare 308
without -L looks like a failure._redirects files are honored. A root 302 in the bundle is real. Check it with
curl -s -o /dev/null -w '%{http_code} -> %{redirect_url}'.--base https://<name>.pages.dev or every
embedded link ships dead. See references/static-review-hub.md.NODE_ENV=production. It prints "up to date" while
node_modules stays empty, because every devDependency is omitted. Check
env | grep NODE_ENV and install with env -u NODE_ENV npm ci.cd into a
temp dir silently redirects later build and deploy commands. Run pwd, or pass an explicit
working directory, before steps that must run in the repo.For a server-side app (API routes, or an SSR adapter that outputs a Worker), the repo's
wrangler.jsonc defines a Worker, so use npx -y wrangler@latest deploy. Workers with static
assets also work for plain sites, but this user's previews are Pages projects. Stay on Pages
unless the repo is already on Workers.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ivy00johns/skill-madness --plugin skill-madness87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/Other plugins' skills for the same job