AGENT SKILL

cf-worker-deploy

Validate and deploy Cloudflare Workers with preview, secret, and rollback safeguards.

License 许可
MIT
最近更新
2026-11-09
Stars
★ 0
Forks
0

01 前言 Front Matter

name
cf-worker-deploy
risk
high
source
openclawskills.net
aliases
[ "cloudflare", "worker", "deploy", "cf", "edge" ]
enabled
true
version
1.0.0
category
media_and_utilities
keywords
[ "cloudflare", "worker", "deploy", "edge", "serverless", "wrangler" ]
metadata
{ "openclaw": { "requires": { "env": [], "bins": [] }, "primaryEnv": null } }
triggers
[ "Deploy to Cloudflare Workers", "Publish worker", "Cloudflare deployment", "Update worker" ]
description
Validate and deploy Cloudflare Workers with preview, secret, and rollback safeguards.
required_tools
[ "wrangler" ]

03 SKILL.md 正文

Cloudflare Worker Deployer

Purpose

Validate and deploy Cloudflare Workers with proper preview testing, secret management, and rollback capabilities. The skill ensures safe deployments with minimal disruption.

When to Use

  • Deploying or updating a Cloudflare Worker
  • Managing worker secrets and environment variables
  • Rolling back a problematic deployment
  • Testing workers in preview mode before production

When NOT to Use

  • For non-Cloudflare deployments (use appropriate cloud skill)
  • Without proper Cloudflare authentication
  • When rollback isn't possible (stateless workers)

Capabilities

  • Local validation and linting
  • Preview deployment to staging
  • Production deployment with traffic splitting
  • Secret management (set, update, rotate)
  • Environment variable management
  • Rollback to previous version
  • Deployment history and logs
  • Traffic percentage controls

Inputs

  • action (required) — one of: validate, preview, deploy, rollback, secrets
  • worker_name (required) — target worker
  • environment (optional) — production, staging, preview
  • traffic_percentage (optional) — for gradual rollouts

Workflow

  1. Validate — Run linting and type checks
  2. Preview — Deploy to preview environment
  3. Test — Verify preview is functional
  4. Confirm — User approval for production
  5. Deploy — Push to production with monitoring
  6. Verify — Confirm successful deployment
  7. Rollback — If issues detected, revert

Tools

  • Wrangler CLI (wrangler.toml configuration)
  • Cloudflare API

Examples

User: "Deploy my worker to production" Response:

Validating worker...
✓ Linting passed
✓ Type checks passed

Preview deployment: ✓ Success
Preview URL: https://my-worker.preview.pages.dev

Deploy to production? Say "confirm" to proceed.

After deployment, I'll monitor for errors and can rollback if needed.

Safety

  • ALWAYS validate before deployment
  • ALWAYS use preview mode first
  • Require explicit confirmation for production
  • Monitor for errors after deployment
  • Keep rollback path available
  • Never expose secrets in logs or responses

Source

Auto-generated from openclawskills.net description.

Pairs Well With

  • github-cli (trigger deploy from CI/CD)
  • system-monitor (post-deployment monitoring)
  • cmd-safety-check (pre-deployment command validation)

04 同仓库更多 Skills