deploying-cloudflare-web-application
Installation
SKILL.md
Deploying a web application to Cloudflare
Setup
| Item | Kind | Required | When | Done when | How |
|---|---|---|---|---|---|
| Node.js 22+ with the project's package manager | user | required | All | node --version prints v22 or later and the lockfile's package manager (npm, pnpm, yarn) runs |
https://nodejs.org |
| GitHub CLI | user | required | Deploy, Secrets, Run or roll back | gh auth status succeeds and gh repo view finds the repository |
https://cli.github.com, then gh auth login; create the GitHub repository and push the project |
| Cloudflare account | user | required | All | npx wrangler whoami shows an account |
Sign up at https://dash.cloudflare.com/sign-up, then npx wrangler login |
| Account ID | ask | required | Deploy | account_id is set in the wrangler config |
npx wrangler whoami lists one account → use it; several → ask which; recorded as account_id in the wrangler config |
| CI API token | user | required | Secrets | configuring-github-actions.md → Probe reports every permission granted | Per configuring-github-actions.md → CI API token |
Workflow
- Setup — for each Setup row whose When covers the request, in order: Done when holds → skip;
user→ stop and print its How when required, continue without it when optional;ask→ fill what the request answers, ask the rest together in one message, record each answer;autoandstatic→ run. - Contract — read deployment-contract.md.
- Recipe — match one Recipes row; open every doc in its Read column.