Agent skill

deploy-and-ops

Build, deploy, configure, and troubleshoot the site on Cloudflare Workers — manage secrets, configure wrangler, set up custom domains, and diagnose common errors. Use when the user mentions "deploy", "build", "wrangler", "production", "custom domain", "secrets", "environment variables", "CI/CD", "errors", "not working", "broken", "debug", or "troubleshoot".

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/deploy-and-ops

SKILL.md

Deploy and Operations

Deploy Pipeline

bash
bun run deploy    # Runs: astro build && wrangler deploy

This builds the Astro site and deploys the output to Cloudflare Workers.

Pre-Deploy Verification

Always run before deploying:

bash
bun run check     # TypeScript type checking
bun run test      # 42 tests across 7 files
bun run build     # Production build

Wrangler Configuration

wrangler.jsonc defines the Worker name, bindings, compatibility settings, and asset serving. See wrangler config reference.

Managing Secrets

Local (.dev.vars):

env
[email protected]
POLICY_AUD=aud-tag
TEAM_DOMAIN=yourteam

Production:

bash
bunx wrangler secret put CONTACT_EMAIL
bunx wrangler secret put POLICY_AUD
bunx wrangler secret put TEAM_DOMAIN

Custom Domains

  1. Deploy the Worker first
  2. Go to Workers & Pages > your worker > Settings > Domains & Routes
  3. Add a custom domain (Cloudflare handles DNS + SSL)
  4. Update site in astro.config.mjs to match

Troubleshooting

See troubleshooting reference for common errors and fixes.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results