ancoleman/ai-design-components/deploying-applications
Claude Code and agent skill by ancoleman/ai-design-components
- community
Checking that the SKILL.md file is still in the repository.
Deployment patterns from Kubernetes to serverless and edge functions. Use when deploying applications, setting up CI/CD, or managing infrastructure. Covers Kubernetes (Helm, ArgoCD), serverless (Vercel, Lambda), edge (Cloudflare Workers, Deno), IaC (Pulumi, OpenTofu, SST), and GitOps patterns.
Install
npx vskill@latest install ancoleman/ai-design-components/deploying-applicationsSKILL.md
Deploying Applications
Production deployment patterns from Kubernetes to serverless and edge functions. Bridges the gap from application assembly to production infrastructure.
Purpose
This skill provides clear guidance for:
- Selecting the right deployment strategy (Kubernetes, serverless, containers, edge)
- Implementing Infrastructure as Code with Pulumi or OpenTofu
- Setting up GitOps automation with ArgoCD or Flux
- Choosing serverless databases (Neon, Turso, PlanetScale)
- Deploying edge functions (Cloudflare Workers, Deno Deploy)
When to Use This Skill
Use this skill when:
- Deploying applications to production infrastructure
- Setting up CI/CD pipelines and GitOps workflows
- Choosing between Kubernetes, serverless, or edge deployment
- Implementing Infrastructure as Code (Pulumi, OpenTofu, SST)
- Migrating from manual deployment to automated infrastructure
- Integrating with
assembling-componentsfor complete deployment flow
Deployment Strategy Decision Tree
Core Concepts
Infrastructure as Code (IaC)
Define infrastructure using code instead of manual configuration.
Primary: Pulumi (TypeScript)
- Context7 ID:
/pulumi/docs(Trust: 94.6/100, 9,525 snippets) - TypeScript-first (same language as React/Next.js)
- Multi-cloud support (AWS, GCP, Azure, Cloudflare)
- See references/pulumi-guide.md for patterns and examples
Alternative: OpenTofu (HCL)
- CNCF project, Terraform-compatible
- MPL-2.0 license (open governance)
- Drop-in Terraform replacement
- See references/opentofu-guide.md for migration
Serverless: SST v3 (TypeScript)
- Built on Pulumi
- Optimized for AWS Lambda, API Gateway
- Live Lambda development
GitOps Deployment
Declarative infrastructure with Git as source of truth.
ArgoCD (Recommended for platform teams):
- Rich web UI
- Built-in RBAC and multi-tenancy
- Self-healing deployments
- See references/gitops-argocd.md
Flux (Recommended for DevOps automation):
- Kubernetes-native
- CLI-focused
- Simpler architecture
- See references/gitops-argocd.md
Service Mesh
Optional layer for microservices communication, security, and observability.
When to Use Service Mesh:
- Multi-team microservices (security boundaries)
- Zero-trust networking (mTLS required)
- Advanced traffic management (canary, blue-green)
When NOT to Use:
- Simple monolith or 2-3 services (overhead not justified)
- Serverless architectures (incompatible)
Linkerd (Performance-focused):
- 5-10% overhead
- Rust-based
- Simple, opinionated
Istio (Feature-rich):
- 25-35% overhead
- C++ (Envoy)
- Advanced routing, observability
See references/kubernetes-patterns.md for service mesh patterns.
Quick Start Workflows
Workflow 1: Deploy Next.js to Vercel (Zero-Config)
See examples/nextjs-vercel/ for complete example.
Workflow 2: Deploy to Kubernetes with ArgoCD
- Create Helm chart
- Push chart to Git repository
- Create ArgoCD Application
- ArgoCD syncs automatically
See examples/k8s-argocd/ for complete GitOps setup.
Workflow 3: Deploy Serverless with Pulumi
See examples/pulumi-aws/ and references/pulumi-guide.md for patterns.
Workflow 4: Deploy Edge Function to Cloudflare Workers
Deploy with Wrangler:
See examples/cloudflare-workers-hono/ and references/edge-functions.md.
Integration with assembling-components
After building an application with assembling-components, this skill provides deployment patterns:
Frontend (Next.js/Vite) → Deployment:
- Review deployment decision tree
- Choose platform: Vercel (Next.js), Cloudflare Pages (static), or custom (Pulumi)
- Set up environment variables
- Deploy using chosen method
Backend (FastAPI/Axum) → Deployment:
- Containerize application (Dockerfile)
- Choose platform: ECS Fargate, Cloud Run, or Kubernetes
- Set up IaC (Pulumi or OpenTofu)
- Deploy with GitOps (ArgoCD/Flux) or CI/CD
See references/pulumi-guide.md for integration examples.
Reference Files
Kubernetes Deployment
- references/kubernetes-patterns.md - Helm 4.0, service mesh, autoscaling
- references/gitops-argocd.md - ArgoCD/Flux GitOps workflows
Serverless & Edge
- references/serverless-dbs.md - Neon, Turso, PlanetScale (scale-to-zero)
- references/edge-functions.md - Cloudflare Workers, Deno Deploy (<5ms cold starts)
Infrastructure as Code
- references/pulumi-guide.md - Pulumi TypeScript patterns, component model
- references/opentofu-guide.md - OpenTofu/Terraform migration
Utility Scripts
Scripts in scripts/ are executed without loading into context (token-free).
Generate Kubernetes Manifests:
Validate Deployment Configuration:
See script files for full usage documentation.
Examples
Complete, runnable examples in examples/:
- pulumi-aws/ - ECS Fargate deployment with Pulumi
- k8s-argocd/ - Kubernetes + ArgoCD GitOps
- sst-serverless/ - SST v3 serverless TypeScript
Each example includes:
- README.md with setup instructions
- Complete source code
- Environment variable configuration
- Deployment commands
Library Recommendations
Infrastructure as Code (2025)
Primary: Pulumi
- Context7:
/pulumi/docs(Trust: 94.6, 9,525 snippets) - TypeScript-first, multi-cloud
- Apache 2.0 license
Alternative: OpenTofu
- CNCF project, MPL-2.0
- Terraform-compatible
- HCL syntax
Serverless: SST v3
- Built on Pulumi
- AWS Lambda optimized
- TypeScript-native
Serverless Databases
Neon PostgreSQL:
- Database branching (like Git)
- Scale-to-zero compute
- Full PostgreSQL compatibility
Turso SQLite:
- Edge deployment (200+ locations)
- Sub-millisecond reads
- libSQL (SQLite fork)
PlanetScale MySQL:
- Non-blocking schema changes
- Vitess-powered
- Per-row pricing
See references/serverless-dbs.md for comparison and integration.
Edge Functions
Cloudflare Workers:
- <5ms cold starts (V8 isolates)
- 200+ edge locations
- 128MB memory per request
Deno Deploy:
- TypeScript-native
- Web Standard APIs
- Global edge (<50ms)
Hono Framework:
- Runs on all edge runtimes
- 14KB bundle size
- TypeScript-first
See references/edge-functions.md for patterns.
Best Practices
Security
- Use secrets management (AWS Secrets Manager, Vault)
- Enable mTLS for service-to-service communication
- Implement least-privilege IAM roles
- Scan container images for vulnerabilities
Cost Optimization
- Use serverless databases for variable traffic (scale-to-zero)
- Enable horizontal pod autoscaling (HPA) in Kubernetes
- Right-size compute resources (CPU/memory)
- Use spot instances for non-critical workloads
Performance
- Deploy close to users (edge functions for global apps)
- Use CDN for static assets (CloudFront, Cloudflare)
- Implement caching strategies (Redis, CloudFront)
- Monitor cold start times for serverless
Reliability
- Implement health checks (Kubernetes liveness/readiness probes)
- Set up auto-scaling (HPA, Lambda concurrency)
- Use multi-region deployments for critical services
- Implement circuit breakers and retries
Troubleshooting
Deployment Failures
Kubernetes pod fails to start:
- Check pod logs:
kubectl logs <pod-name> - Describe pod:
kubectl describe pod <pod-name> - Verify resource limits and requests
- Check image pull errors (imagePullSecrets)
Serverless cold starts too slow:
- Reduce bundle size (tree-shaking, code splitting)
- Use provisioned concurrency (AWS Lambda)
- Consider edge functions (Cloudflare Workers)
- Optimize initialization code
GitOps sync errors (ArgoCD/Flux):
- Verify Git repository access
- Check manifest validity (
kubectl apply --dry-run) - Review sync policies (prune, selfHeal)
- Check ArgoCD/Flux logs
Performance Issues
High service mesh overhead:
- Consider switching to Linkerd (5-10% vs Istio 25-35%)
- Disable unnecessary features
- Evaluate if service mesh is needed
Database connection pool exhaustion:
- Increase connection pool size
- Use serverless databases (Neon scale-to-zero)
- Implement connection pooling (PgBouncer)
See references/ files for detailed troubleshooting guides.
Migration Patterns
From Manual to IaC
- Inventory existing infrastructure
- Start with non-critical environments (dev, staging)
- Use Pulumi/OpenTofu to codify infrastructure
- Test in staging before production
- Gradual migration (one service at a time)
From Terraform to OpenTofu
See references/opentofu-guide.md for complete migration.
From EC2 to Containers
- Containerize application (create Dockerfile)
- Test locally (Docker Compose)
- Deploy to staging (ECS/Cloud Run/Kubernetes)
- Monitor performance and costs
- Cutover production traffic (blue-green deployment)
From Containers to Serverless
- Identify stateless services
- Refactor to serverless-friendly patterns
- Use serverless databases (Neon/Turso)
- Deploy to Lambda/Cloud Functions
- Monitor cold starts and costs
Next Steps
After deploying applications:
- Set up observability (metrics, logs, traces)
- Implement CI/CD pipelines (GitHub Actions, GitLab CI)
- Configure auto-scaling and resource limits
- Set up disaster recovery and backups
- Document runbooks for incident response
Additional Resources
- Pulumi documentation: https://www.pulumi.com/docs/
- OpenTofu documentation: https://opentofu.org/docs/
- ArgoCD documentation: https://argo-cd.readthedocs.io/
- Cloudflare Workers docs: https://developers.cloudflare.com/workers/
- Neon documentation: https://neon.tech/docs/
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/deploying-applications/SKILL.md
Popularity
- Repository stars
- 390
- Repository forks
- 59
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ancoleman/ai-design-components/deploying-applications)