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".
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
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:
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):
[email protected]
POLICY_AUD=aud-tag
TEAM_DOMAIN=yourteam
Production:
bunx wrangler secret put CONTACT_EMAIL
bunx wrangler secret put POLICY_AUD
bunx wrangler secret put TEAM_DOMAIN
Custom Domains
- Deploy the Worker first
- Go to Workers & Pages > your worker > Settings > Domains & Routes
- Add a custom domain (Cloudflare handles DNS + SSL)
- Update
siteinastro.config.mjsto match
Troubleshooting
See troubleshooting reference for common errors and fixes.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?