cloudflare-pages
Skill by sickn33
Deploys static sites and full-stack apps on Cloudflare Pages with preview builds, Pages Functions and custom domains. It is a docs-only guide for frontend and full-stack developers hosting on Cloudflare.
Install cloudflare-pages
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/cloudflare-pages ~/.claude/skills/cloudflare-pagesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/cloudflare-pages ~/.gemini/antigravity-cli/skills/cloudflare-pagesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill is a docs-only guide for deploying frontend projects to Cloudflare Pages. It covers creating and deploying projects with the Wrangler CLI, connecting a GitHub or GitLab repository through the dashboard, and framework presets for React, Vite, Next.js static export, Astro, Hugo and SvelteKit. It also explains preview deployments for non-production branches and their URL formats.
The guide covers Pages Functions for server-side routes and middleware, bindings for KV, D1 and R2 in wrangler.toml, custom headers and redirects, custom domains, and a GitHub Actions example. It includes security notes, such as scoping private data and keeping production credentials away from untrusted pull request builds. Upstream scripts and templates are not bundled. It is aimed at developers who host sites on Cloudflare.
Written from the project's SKILL.md and checked against it.
What it can do
- Wrangler project deploymentCreates, lists and deletes Pages projects and deploys a local build output directory.
- Dashboard Git integrationConnects a GitHub or GitLab repository with build command and output directory settings.
- Framework presetsLists build commands and output directories for React, Vite, Next.js, Astro, Hugo and SvelteKit.
- Preview deploymentsGives each non-production branch a unique preview URL, with optional PR comments.
- Pages FunctionsAdds server-side API routes, dynamic routes and middleware in a functions directory.
- Bindings configurationSets KV, D1 and R2 bindings and environment variables in wrangler.toml.
- Headers and redirectsConfigures _headers and _redirects files for static asset caching, security headers and redirects.
- Custom domainsAdds a custom domain through the dashboard or the Cloudflare API.
- CI/CD exampleShows a GitHub Actions workflow that builds and deploys with wrangler-action.
What you need
- Node.js 18 or newer and npm
- A Cloudflare account (free tier works for most projects)
- Wrangler CLI installed
- Authentication via wrangler login or CLOUDFLARE_API_TOKEN
- A Git repository on GitHub or GitLab for dashboard integration
Try asking
- Deploy my dist folder to a Cloudflare Pages project called my-site
- Set up a GitHub Actions workflow that deploys my Vite app to Pages
- Add a Pages Function at functions/api/hello.ts that returns JSON
Good to know
- Docs-only import; upstream scripts and templates are not bundled.
- _headers applies to static assets, not to Functions responses.
- Previews can expose private builds and need access control.
- Untrusted pull request builds should not be deployed with production credentials.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cloudflare-pages/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB
Alternatives to cloudflare-pages
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
cloudflare-pages: common questions
Do I need a paid Cloudflare plan to use Pages?
The source says the free tier works for most projects. Limits and plan details can change, so check Cloudflare's current documentation.
How do preview deployments work?
Every non-production branch gets a unique preview URL automatically. Preview URLs use either the commit hash or the branch name.
Why are my security headers not applied to my API responses?
The _headers file applies to static assets only. The source says to set security and CORS headers in Functions for Functions responses.
How do I install cloudflare-pages?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cloudflare-pages free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cloudflare-pages safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cloudflare-pages?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
