Commit, push, and deploy Cloudflare Worker in one automated workflow.
Commit, push, and deploy Cloudflare Workers in one automated workflow with pre-flight checks and detailed reporting.
/plugin marketplace add jezweb/claude-skills/plugin install jezweb-tooling-skills@jezweb/claude-skillsCommit, push, and deploy Cloudflare Worker in one automated workflow.
Execute the full deploy pipeline for a Cloudflare Workers project. Run all steps automatically and report results at the end.
1a. Verify this is a Cloudflare project
ls wrangler.jsonc wrangler.toml wrangler.json 2>/dev/null | head -1
If no wrangler config found:
ā Not a Cloudflare Workers project (no wrangler.jsonc/toml/json found)
Stop here.
1b. Check for changes
git status --porcelain
If no output (nothing to commit), skip to Phase 3 (deploy only).
1c. Build
npm run build
If build fails, stop and report the error.
1d. TypeScript check (if applicable)
Only if tsconfig.json exists:
npx tsc --noEmit
If TypeScript check fails, stop and report the error.
2a. Stage all changes
git add -A
2b. Generate commit message
Analyze the changes with git diff --cached --stat and generate an appropriate conventional commit message:
feat: for new featuresfix: for bug fixesrefactor: for code changes that don't add features or fix bugsdocs: for documentationchore: for maintenance tasks2c. Commit
git commit -m "$(cat <<'EOF'
[generated message]
š¤ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
EOF
)"
2d. Push
git push
If no remote configured, report error and stop.
npx wrangler deploy
Capture the output, especially the Worker URL.
Present a summary:
ā
Deploy Complete
š Commit: [hash] [message]
š¤ Pushed to: [remote/branch]
š Deployed: https://[worker-name].[account].workers.dev
[Any warnings from wrangler output]
If any phase failed:
ā Deploy Failed
Phase: [which phase]
Error: [error message]
[Suggestions for fixing]
git remote add origin <url>npm install -D wrangler