devops
[DevOps] Deploy 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, configuring edge computing solutions, managing Docker containers and images, setting up CI/CD pipelines, optimizing cloud infrastructure costs, implementing global caching strategies, working with cloud databases, or building cloud-native applications.
Best use case
devops is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
[DevOps] Deploy 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, configuring edge computing solutions, managing Docker containers and images, setting up CI/CD pipelines, optimizing cloud infrastructure costs, implementing global caching strategies, working with cloud databases, or building cloud-native applications.
Teams using devops should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/devops/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How devops Compares
| Feature / Agent | devops | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
[DevOps] Deploy 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, configuring edge computing solutions, managing Docker containers and images, setting up CI/CD pipelines, optimizing cloud infrastructure costs, implementing global caching strategies, working with cloud databases, or building cloud-native applications.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
> **[IMPORTANT]** Use `TaskCreate` to break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI may ask user whether to skip. ## Quick Summary **Goal:** Deploy and manage cloud infrastructure across Cloudflare (Workers, R2, D1), Docker containers, and Google Cloud Platform. **Workflow:** 1. **Platform Selection** — Choose Cloudflare (edge/low-latency), Docker (containers/microservices), or GCP (enterprise/K8s) 2. **Project Setup** — Initialize with Wrangler CLI, Dockerfile, or gcloud CLI 3. **Local Development** — Test locally before deploying 4. **Deploy & Verify** — Deploy to target platform with health checks **Key Rules:** - Run containers as non-root user; scan images for vulnerabilities - Use multi-stage Docker builds to minimize image size - Store secrets in environment variables, never in code - Use R2 over S3 when zero egress cost matters # DevOps Skill Comprehensive guide for deploying and managing cloud infrastructure across Cloudflare edge platform, Docker containerization, and Google Cloud Platform. ## When to Use This Skill Use this skill when: - Deploying serverless applications to Cloudflare Workers - Containerizing applications with Docker - Managing Google Cloud infrastructure with gcloud CLI - Setting up CI/CD pipelines across platforms - Optimizing cloud infrastructure costs - Implementing multi-region deployments - Building edge-first architectures - Managing container orchestration with Kubernetes - Configuring cloud storage solutions (R2, Cloud Storage) - Automating infrastructure with scripts and IaC ## Platform Selection Guide ### When to Use Cloudflare **Best For:** - Edge-first applications with global distribution - Ultra-low latency requirements (<50ms) - Static sites with serverless functions - Zero egress cost scenarios (R2 storage) - WebSocket/real-time applications (Durable Objects) - AI/ML at the edge (Workers AI) **Key Products:** - Workers (serverless functions) - R2 (object storage, S3-compatible) - D1 (SQLite database with global replication) - KV (key-value store) - Pages (static hosting + functions) - Durable Objects (stateful compute) - Browser Rendering (headless browser automation) **Cost Profile:** Pay-per-request, generous free tier, zero egress fees ### When to Use Docker **Best For:** - Local development consistency - Microservices architectures - Multi-language stack applications - Traditional VPS/VM deployments - Kubernetes orchestration - CI/CD build environments - Database containerization (dev/test) **Key Capabilities:** - Application isolation and portability - Multi-stage builds for optimization - Docker Compose for multi-container apps - Volume management for data persistence - Network configuration and service discovery - Cross-platform compatibility (amd64, arm64) **Cost Profile:** Infrastructure cost only (compute + storage) ### When to Use Google Cloud **Best For:** - Enterprise-scale applications - Data analytics and ML pipelines (BigQuery, Vertex AI) - Hybrid/multi-cloud deployments - Kubernetes at scale (GKE) - Managed databases (Cloud SQL, Firestore, Spanner) - Complex IAM and compliance requirements **Key Services:** - Compute Engine (VMs) - GKE (managed Kubernetes) - Cloud Run (containerized serverless) - App Engine (PaaS) - Cloud Storage (object storage) - Cloud SQL (managed databases) **Cost Profile:** Varied pricing, sustained use discounts, committed use contracts ## Quick Start ### Cloudflare Workers ```bash # Install Wrangler CLI npm install -g wrangler # Create and deploy Worker wrangler init my-worker cd my-worker wrangler deploy ``` See: `references/cloudflare-workers-basics.md` ### Docker Container ```bash # Create Dockerfile cat > Dockerfile <<EOF FROM node:20-alpine WORKDIR /app COPY package*.json ./ RUN npm ci --production COPY . . EXPOSE 3000 CMD ["node", "server.js"] EOF # Build and run docker build -t myapp . docker run -p 3000:3000 myapp ``` See: `references/docker-basics.md` ### Google Cloud Deployment ```bash # Install and authenticate curl https://sdk.cloud.google.com | bash gcloud init gcloud auth login # Deploy to Cloud Run gcloud run deploy my-service \ --image gcr.io/project/image \ --region us-central1 ``` See: `references/gcloud-platform.md` ## Reference Navigation ### Cloudflare Platform - `cloudflare-platform.md` - Edge computing overview, key components - `cloudflare-workers-basics.md` - Getting started, handler types, basic patterns - `cloudflare-workers-advanced.md` - Advanced patterns, performance, optimization - `cloudflare-workers-apis.md` - Runtime APIs, bindings, integrations - `cloudflare-r2-storage.md` - R2 object storage, S3 compatibility, best practices - `cloudflare-d1-kv.md` - D1 SQLite database, KV store, use cases - `browser-rendering.md` - Puppeteer/Playwright automation on Cloudflare ### Docker Containerization - `docker-basics.md` - Core concepts, Dockerfile, images, containers - `docker-compose.md` - Multi-container apps, networking, volumes ### Google Cloud Platform - `gcloud-platform.md` - GCP overview, gcloud CLI, authentication - `gcloud-services.md` - Compute Engine, GKE, Cloud Run, App Engine ### Python Utilities - `scripts/cloudflare-deploy.py` - Automate Cloudflare Worker deployments - `scripts/docker-optimize.py` - Analyze and optimize Dockerfiles ## Common Workflows ### Edge + Container Hybrid ```yaml # Cloudflare Workers (API Gateway) # -> Docker containers on Cloud Run (Backend Services) # -> R2 (Object Storage) # Benefits: # - Edge caching and routing # - Containerized business logic # - Global distribution ``` ### Multi-Stage Docker Build ```dockerfile # Build stage FROM node:20-alpine AS build WORKDIR /app COPY package*.json ./ RUN npm ci COPY . . RUN npm run build # Production stage FROM node:20-alpine WORKDIR /app COPY --from=build /app/dist ./dist COPY --from=build /app/node_modules ./node_modules USER node CMD ["node", "dist/server.js"] ``` ### CI/CD Pipeline Pattern ```yaml # 1. Build: Docker multi-stage build # 2. Test: Run tests in container # 3. Push: Push to registry (GCR, Docker Hub) # 4. Deploy: Deploy to Cloudflare Workers / Cloud Run # 5. Verify: Health checks and smoke tests ``` ## Best Practices ### Security - Run containers as non-root user - Use service account impersonation (GCP) - Store secrets in environment variables, not code - Scan images for vulnerabilities (Docker Scout) - Use API tokens with minimal permissions ### Performance - Multi-stage Docker builds to reduce image size - Edge caching with Cloudflare KV - Use R2 for zero egress cost storage - Implement health checks for containers - Set appropriate timeouts and resource limits ### Cost Optimization - Use Cloudflare R2 instead of S3 for large egress - Implement caching strategies (edge + KV) - Right-size container resources - Use sustained use discounts (GCP) - Monitor usage with cloud provider dashboards ### Development - Use Docker Compose for local development - Wrangler dev for local Worker testing - Named gcloud configurations for multi-environment - Version control infrastructure code - Implement automated testing in CI/CD ## Decision Matrix | Need | Choose | | -------------------------------- | ---------------------------- | | Sub-50ms latency globally | Cloudflare Workers | | Large file storage (zero egress) | Cloudflare R2 | | SQL database (global reads) | Cloudflare D1 | | Containerized workloads | Docker + Cloud Run/GKE | | Enterprise Kubernetes | GKE | | Managed relational DB | Cloud SQL | | Static site + API | Cloudflare Pages | | WebSocket/real-time | Cloudflare Durable Objects | | ML/AI pipelines | GCP Vertex AI | | Browser automation | Cloudflare Browser Rendering | ## Resources - **Cloudflare Docs:** https://developers.cloudflare.com - **Docker Docs:** https://docs.docker.com - **GCP Docs:** https://cloud.google.com/docs - **Wrangler CLI:** https://developers.cloudflare.com/workers/wrangler/ - **gcloud CLI:** https://cloud.google.com/sdk/gcloud ## Implementation Checklist ### Cloudflare Workers - [ ] Install Wrangler CLI - [ ] Create Worker project - [ ] Configure wrangler.toml (bindings, routes) - [ ] Test locally with `wrangler dev` - [ ] Deploy with `wrangler deploy` ### Docker - [ ] Write Dockerfile with multi-stage builds - [ ] Create .dockerignore file - [ ] Test build locally - [ ] Push to registry - [ ] Deploy to target platform ### Google Cloud - [ ] Install gcloud CLI - [ ] Authenticate with service account - [ ] Create project and enable APIs - [ ] Configure IAM permissions - [ ] Deploy and monitor resources ## Related - `databases` - `easyplatform-backend` --- **IMPORTANT Task Planning Notes (MUST FOLLOW)** - Always plan and break work into many small todo tasks - Always add a final review todo task to verify work quality and identify fixes/enhancements
Related Skills
devops-troubleshooter
Expert DevOps troubleshooter specializing in rapid incident response, advanced debugging, and modern observability.
devops-specialist
DevOps 与运维专家。精通 CI/CD、容器化、编排、基础设施即代码、监控告警和自动化部署。用于构建高效、可靠的软件交付流水线和运维系统。
DevOps Practices
Expertise in deployment automation, container orchestration, and infrastructure as code. Activates when working with "deploy", "kubernetes", "docker", "terraform", "helm", "k8s", "container", or cloud infrastructure.
devops-infrastructure
クラウドインフラ設計・IaC実装・監視設定・コンテナオーケストレーション。AWS、GCP、Azureのリソース構築、Terraform/Pulumi、Kubernetes、Docker、Prometheus/Grafana監視。「インフラ」「クラウド」「Terraform」「Kubernetes」「監視」「Docker」に関する質問で使用。
devops-infra-github
Expert guidance for containerization, orchestration, and CI/CD pipelines for Bun monorepo projects.
devops-guide
Comprehensive DevOps and infrastructure guide covering Docker, Kubernetes, AWS, Terraform, CI/CD pipelines, Linux, and cloud deployment strategies. Use when setting up infrastructure, automation, or deployment systems.
devops-engineer
Expert DevOps engineer bridging development and operations with comprehensive automation, monitoring, and infrastructure management. Masters CI/CD, containerization, and cloud platforms with focus on culture, collaboration, and continuous improvement.
DevOps & Deployment
Use when setting up CI/CD pipelines, containerizing applications, deploying to Kubernetes, or writing infrastructure as code. DevOps & Deployment covers GitHub Actions, Docker, Helm, and Terraform patterns.
devops-deployer
Comprehensive DevOps and deployment workflow that orchestrates infrastructure automation, CI/CD pipelines, container orchestration, and cloud deployment. Handles everything from infrastructure as code and pipeline setup to monitoring, scaling, and disaster recovery.
devops-cloud
Master DevOps, cloud infrastructure, containerization, CI/CD, Kubernetes, and infrastructure as code. Use when deploying applications, setting up infrastructure, or managing cloud services.
devops-agent
Infrastructure, deployment, and operations automation
cloud-devops
Cloud infrastructure and DevOps workflow covering AWS, Azure, GCP, Kubernetes, Terraform, CI/CD, monitoring, and cloud-native development.