cloudflare-deployment

Automate Cloudflare Pages and Workers deployments through a six-phase lifecycle.

11|2|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/porcupine-md/jonggrang --skill cloudflare-deployment-porcupine-md
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-deployment
Source: https://github.com/porcupine-md/jonggrang/tree/main/skills/library/deploy/cloudflare-deployment
Command: npx skills add https://github.com/porcupine-md/jonggrang --skill cloudflare-deployment-porcupine-md

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deploying to Cloudflare can be error-prone without guardrails. This Skill codifies a six-phase Deployment Lifecycle Contract to ensure authentication, build, provisioning, deployment, health checks, and rollback for Cloudflare Pages and Workers.

Core Features & Use Cases

  • Enforces a six-phase workflow (Authentication, Build, Install/Provisioning, Deploy, Checking, Update/Rollback) to reduce misconfigurations and failed deployments.
  • Supports both Cloudflare Pages and Cloudflare Workers, with guidance on wrangler configuration and project validation.
  • Provides a repeatable, auditable deployment process that can be automated by AI agents or CI systems.

Quick Start

Follow the six-phase deployment lifecycle to deploy to Cloudflare using Wrangler.

Frequently Asked Questions about cloudflare-deployment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Cloudflare Workers deployment to avoid misconfigurations?

Automating Cloudflare Workers deployment requires a structured lifecycle covering authentication, build, provisioning, and health checks. Using a six-phase deployment contract enforces guardrails, reducing failed deployments and ensuring a verified live URL through wrangler configuration and API token validation.

What do I need to deploy Cloudflare Pages using wrangler?

To deploy Cloudflare Pages using wrangler, you need a valid Cloudflare API token stored in the CLOUDFLARE_API_TOKEN environment variable, a configured wrangler setup, and access to project assets. These prerequisites enable automated provisioning, deployment, and post-deployment health verification.

How does a structured deployment lifecycle improve Cloudflare Pages rollouts?

A structured deployment lifecycle improves Cloudflare Pages rollouts by enforcing sequential phases: authentication, build, provisioning, deployment, health checks, and rollback. This repeatable, auditable process catches configuration errors early, verifies the live URL, and provides a safe rollback mechanism if the deployment fails.

Can I roll back a failed Cloudflare Workers deployment automatically?

Yes, you can roll back a failed Cloudflare Workers deployment automatically. The deployment lifecycle includes a dedicated update and rollback phase that triggers when health checks fail, ensuring that any misconfigured deployment is safely reverted to maintain application availability.

Why are my Cloudflare deployments failing during the build phase?

Cloudflare deployments often fail during the build phase due to missing environment variables or invalid wrangler configuration. Ensuring the CLOUDFLARE_API_TOKEN is set correctly and project assets are accessible allows the structured deployment lifecycle to validate the build before attempting provisioning.

Does cloudflare-deployment work with both Cloudflare Pages and Workers?

Yes, cloudflare-deployment works with both Cloudflare Pages and Workers projects. It applies a unified six-phase deployment lifecycle to both platforms, guiding wrangler configuration, project validation, and health checks to ensure reliable automated deployments across your Cloudflare infrastructure.