$npx -y skills add jackspace/ClaudeSkillz --skill devops_mrgoonieDeploy and manage cloud infrastructure on Cloudflare (Workers, R2, D1, KV, Pages, Durable Objects, Browser Rendering), Docker containers, and Google Cloud Platform (Compute Engine, GKE, Cloud Run, App Engine, Cloud Storage). Use when deploying serverless functions to the edge, co
| 1 | # DevOps Skill |
| 2 | |
| 3 | Comprehensive guide for deploying and managing cloud infrastructure across Cloudflare edge platform, Docker containerization, and Google Cloud Platform. |
| 4 | |
| 5 | ## When to Use This Skill |
| 6 | |
| 7 | Use this skill when: |
| 8 | - Deploying serverless applications to Cloudflare Workers |
| 9 | - Containerizing applications with Docker |
| 10 | - Managing Google Cloud infrastructure with gcloud CLI |
| 11 | - Setting up CI/CD pipelines across platforms |
| 12 | - Optimizing cloud infrastructure costs |
| 13 | - Implementing multi-region deployments |
| 14 | - Building edge-first architectures |
| 15 | - Managing container orchestration with Kubernetes |
| 16 | - Configuring cloud storage solutions (R2, Cloud Storage) |
| 17 | - Automating infrastructure with scripts and IaC |
| 18 | |
| 19 | ## Platform Selection Guide |
| 20 | |
| 21 | ### When to Use Cloudflare |
| 22 | |
| 23 | **Best For:** |
| 24 | - Edge-first applications with global distribution |
| 25 | - Ultra-low latency requirements (<50ms) |
| 26 | - Static sites with serverless functions |
| 27 | - Zero egress cost scenarios (R2 storage) |
| 28 | - WebSocket/real-time applications (Durable Objects) |
| 29 | - AI/ML at the edge (Workers AI) |
| 30 | |
| 31 | **Key Products:** |
| 32 | - Workers (serverless functions) |
| 33 | - R2 (object storage, S3-compatible) |
| 34 | - D1 (SQLite database with global replication) |
| 35 | - KV (key-value store) |
| 36 | - Pages (static hosting + functions) |
| 37 | - Durable Objects (stateful compute) |
| 38 | - Browser Rendering (headless browser automation) |
| 39 | |
| 40 | **Cost Profile:** Pay-per-request, generous free tier, zero egress fees |
| 41 | |
| 42 | ### When to Use Docker |
| 43 | |
| 44 | **Best For:** |
| 45 | - Local development consistency |
| 46 | - Microservices architectures |
| 47 | - Multi-language stack applications |
| 48 | - Traditional VPS/VM deployments |
| 49 | - Kubernetes orchestration |
| 50 | - CI/CD build environments |
| 51 | - Database containerization (dev/test) |
| 52 | |
| 53 | **Key Capabilities:** |
| 54 | - Application isolation and portability |
| 55 | - Multi-stage builds for optimization |
| 56 | - Docker Compose for multi-container apps |
| 57 | - Volume management for data persistence |
| 58 | - Network configuration and service discovery |
| 59 | - Cross-platform compatibility (amd64, arm64) |
| 60 | |
| 61 | **Cost Profile:** Infrastructure cost only (compute + storage) |
| 62 | |
| 63 | ### When to Use Google Cloud |
| 64 | |
| 65 | **Best For:** |
| 66 | - Enterprise-scale applications |
| 67 | - Data analytics and ML pipelines (BigQuery, Vertex AI) |
| 68 | - Hybrid/multi-cloud deployments |
| 69 | - Kubernetes at scale (GKE) |
| 70 | - Managed databases (Cloud SQL, Firestore, Spanner) |
| 71 | - Complex IAM and compliance requirements |
| 72 | |
| 73 | **Key Services:** |
| 74 | - Compute Engine (VMs) |
| 75 | - GKE (managed Kubernetes) |
| 76 | - Cloud Run (containerized serverless) |
| 77 | - App Engine (PaaS) |
| 78 | - Cloud Storage (object storage) |
| 79 | - Cloud SQL (managed databases) |
| 80 | |
| 81 | **Cost Profile:** Varied pricing, sustained use discounts, committed use contracts |
| 82 | |
| 83 | ## Quick Start |
| 84 | |
| 85 | ### Cloudflare Workers |
| 86 | |
| 87 | ```bash |
| 88 | # Install Wrangler CLI |
| 89 | npm install -g wrangler |
| 90 | |
| 91 | # Create and deploy Worker |
| 92 | wrangler init my-worker |
| 93 | cd my-worker |
| 94 | wrangler deploy |
| 95 | ``` |
| 96 | |
| 97 | See: `references/cloudflare-workers-basics.md` |
| 98 | |
| 99 | ### Docker Container |
| 100 | |
| 101 | ```bash |
| 102 | # Create Dockerfile |
| 103 | cat > Dockerfile <<EOF |
| 104 | FROM node:20-alpine |
| 105 | WORKDIR /app |
| 106 | COPY package*.json ./ |
| 107 | RUN npm ci --production |
| 108 | COPY . . |
| 109 | EXPOSE 3000 |
| 110 | CMD ["node", "server.js"] |
| 111 | EOF |
| 112 | |
| 113 | # Build and run |
| 114 | docker build -t myapp . |
| 115 | docker run -p 3000:3000 myapp |
| 116 | ``` |
| 117 | |
| 118 | See: `references/docker-basics.md` |
| 119 | |
| 120 | ### Google Cloud Deployment |
| 121 | |
| 122 | ```bash |
| 123 | # Install and authenticate |
| 124 | curl https://sdk.cloud.google.com | bash |
| 125 | gcloud init |
| 126 | gcloud auth login |
| 127 | |
| 128 | # Deploy to Cloud Run |
| 129 | gcloud run deploy my-service \ |
| 130 | --image gcr.io/project/image \ |
| 131 | --region us-central1 |
| 132 | ``` |
| 133 | |
| 134 | See: `references/gcloud-platform.md` |
| 135 | |
| 136 | ## Reference Navigation |
| 137 | |
| 138 | ### Cloudflare Platform |
| 139 | - `cloudflare-platform.md` - Edge computing overview, key components |
| 140 | - `cloudflare-workers-basics.md` - Getting started, handler types, basic patterns |
| 141 | - `cloudflare-workers-advanced.md` - Advanced patterns, performance, optimization |
| 142 | - `cloudflare-workers-apis.md` - Runtime APIs, bindings, integrations |
| 143 | - `cloudflare-r2-storage.md` - R2 object storage, S3 compatibility, best practices |
| 144 | - `cloudflare-d1-kv.md` - D1 SQLite database, KV store, use cases |
| 145 | - `browser-rendering.md` - Puppeteer/Playwright automation on Cloudflare |
| 146 | |
| 147 | ### Docker Containerization |
| 148 | - `docker-basics.md` - Core concepts, Dockerfile, images, containers |
| 149 | - `docker-compose.md` - Multi-container apps, networking, volumes |
| 150 | |
| 151 | ### Google Cloud Platform |
| 152 | - `gcloud-platform.md` - GCP overview, gcloud CLI, authentication |
| 153 | - `gcloud-services.md` - Compute Engine, GKE, Cloud Run, App Engine |
| 154 | |
| 155 | ### Python Utilities |
| 156 | - `scripts/cloudflare-deploy.py` - Automate Cloudflare Worker deployments |
| 157 | - `scripts/docker-optimize.p |