PluginBench
Skill
Fail
Audit score 45

devops-deployment

yonatangross/orchestkit

CI/CD pipelines, containerization, Kubernetes, and infrastructure-as-code patterns for DevOps workflows.

What is devops-deployment?

Comprehensive frameworks for setting up CI/CD pipelines, containerizing applications with Docker, deploying to Kubernetes, and managing infrastructure as code with Terraform. Use this skill when building deployment automation, managing container registries, configuring GitOps workflows, or implementing release strategies.

  • Set up GitHub Actions CI/CD pipelines with multi-stage builds and automated testing
  • Containerize applications with Docker multi-stage builds, security hardening, and vulnerability scanning
  • Deploy to Kubernetes with rolling, blue-green, and canary strategies
  • Manage infrastructure as code using Terraform with state locking and modular composition
  • Implement secrets management via External Secrets Operator and cloud provider integrations
  • Configure Helm charts, ArgoCD GitOps workflows, and database migrations

How to install devops-deployment

npx skills add https://github.com/yonatangross/orchestkit --skill devops-deployment
Prerequisites
  • Docker installed and available (verify with `docker --version`)
  • GitHub repository with Actions enabled for CI/CD pipelines
  • Kubernetes cluster access (if deploying to K8s)
  • Cloud provider credentials for secrets management (AWS, Azure, GCP, or Vault)
Claude Code
Cursor
Windsurf
Cline

How to use devops-deployment

  1. 1.Review the pipeline architecture diagram and choose your deployment strategy (rolling, blue-green, or canary)
  2. 2.Create a GitHub Actions workflow file in `.github/workflows/` using the CI/CD stages: lint, test, security scan, build, and deploy
  3. 3.Write a Dockerfile with multi-stage builds and security hardening (non-root user, read-only filesystem, health checks)
  4. 4.Define Kubernetes manifests (Deployment, Service, Ingress, HorizontalPodAutoscaler) with appropriate security contexts
  5. 5.Set up secrets management using External Secrets Operator to sync from your cloud provider
  6. 6.Configure Terraform modules for infrastructure provisioning with state locking and environment-specific variables
  7. 7.Test your pipeline end-to-end and verify rollback procedures work before production deployment

Use cases

Good for
  • Building a GitHub Actions workflow that lints, tests, scans, and deploys a containerized Node.js app to Kubernetes
  • Setting up a multi-service deployment on Railway with environment variables and database provisioning
  • Implementing a canary release strategy that gradually shifts traffic to a new Kubernetes deployment
  • Creating a Terraform module to provision cloud infrastructure with state management and rollback capability
  • Configuring zero-downtime database migrations with Alembic alongside application deployments
Who it's for
  • DevOps engineers setting up deployment pipelines
  • Backend developers implementing CI/CD automation
  • Infrastructure engineers managing Kubernetes clusters
  • Teams adopting GitOps and Infrastructure-as-Code practices
  • Release managers planning deployment strategies and rollback procedures

devops-deployment FAQ

What deployment strategy should I use?

Rolling updates are the default and safest for gradual replacement with automatic rollback. Use blue-green for instant switches with easy rollback if you have double resources. Use canary for progressive traffic shifts with minimal risk.

How do I minimize Docker image size?

Use multi-stage builds: install only production dependencies in stage 1, build with dev dependencies in stage 2, and run from a minimal base in stage 3. This can reduce image size by 78%.

How do I secure my Kubernetes deployments?

Set `runAsNonRoot: true`, `allowPrivilegeEscalation: false`, `readOnlyRootFilesystem: true`, and drop all capabilities. Use External Secrets Operator to manage sensitive data from cloud providers.

What should my CI/CD feedback loop target?

Aim for sub-5-minute feedback from code commit to test results. Use path filtering to run only relevant jobs, enable caching, and parallelize stages where possible.

How do I handle database migrations safely?

Use Alembic for zero-downtime migrations ordered before application deployment. Test migrations in staging and verify rollback procedures before production.

Full instructions (SKILL.md)

Source of truth, from yonatangross/orchestkit.


name: devops-deployment license: MIT compatibility: "Claude Code 2.1.277+." description: 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. context: fork agent: ci-cd-engineer user-invocable: false disable-model-invocation: false metadata: category: workflow-automation version: "1.0.0" author: "OrchestKit" complexity: "medium" tags: "devops, ci-cd, docker, kubernetes, terraform" allowed-tools:

  • Read
  • Glob
  • Grep
  • WebFetch
  • WebSearch paths: [".github/workflows/", "Dockerfile*", "docker-compose*", "/k8s/", "/terraform/"] path_patterns: [".tf", ".tfvars", "/k8s/", "/helm/**", "Dockerfile*", ".github/workflows/*"] invocation_hooks:
  • "command -v docker >/dev/null 2>&1 || echo 'Warning: docker not found — container operations will fail'"

DevOps & Deployment Skill

Comprehensive frameworks for CI/CD pipelines, containerization, deployment strategies, and infrastructure automation.

Note: If disableSkillShellExecution is enabled (CC 2.1.91), the Docker install check won't run. Verify Docker is available for container operations: docker --version.

Overview

  • Setting up CI/CD pipelines
  • Containerizing applications
  • Deploying to Kubernetes or cloud platforms
  • Implementing GitOps workflows
  • Managing infrastructure as code
  • Planning release strategies

Pipeline Architecture

┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ Code     │─>│ Build    │─>│ Test     │─>│ Deploy   │
│ Commit   │ │ Lint     │ │ Scan     │ │ Release  │
└──────────┘ └──────────┘ └──────────┘ └──────────┘
  triggers     artifacts    reports      monitoring

Key Concepts

CI/CD Pipeline Stages

  1. Lint & Type Check - Code quality gates
  2. Unit Tests - Test coverage with reporting
  3. Security Scan - npm audit + Trivy vulnerability scanner
  4. Build & Push - Docker image to container registry
  5. Deploy Staging - Environment-gated deployment
  6. Deploy Production - Manual approval or automated

Container Best Practices

Multi-stage builds minimize image size:

  • Stage 1: Install production dependencies only
  • Stage 2: Build application with dev dependencies
  • Stage 3: Production runtime with minimal footprint

Security hardening:

  • Non-root user (uid 1001)
  • Read-only filesystem where possible
  • Health checks for orchestrator integration

Kubernetes Deployment

Essential manifests:

  • Deployment with rolling update strategy
  • Service for internal routing
  • Ingress for external access with TLS
  • HorizontalPodAutoscaler for scaling

Security context:

  • runAsNonRoot: true
  • allowPrivilegeEscalation: false
  • readOnlyRootFilesystem: true
  • Drop all capabilities

Deployment Strategies

StrategyUse CaseRisk
RollingDefault, gradual replacementLow - automatic rollback
Blue-GreenInstant switch, easy rollbackMedium - double resources
CanaryProgressive traffic shiftLow - gradual exposure

Rolling Update (Kubernetes default):

strategy:
  type: RollingUpdate
  rollingUpdate:
    maxSurge: 25%
    maxUnavailable: 0  # Zero downtime

Secrets Management

Use External Secrets Operator to sync from cloud providers:

  • AWS Secrets Manager
  • HashiCorp Vault
  • Azure Key Vault
  • GCP Secret Manager

References

Docker Patterns

Load: Read("references/docker-patterns.md")

Key topics covered:

  • Multi-stage build examples with 78% size reduction
  • Layer caching optimization
  • Security hardening (non-root, health checks)
  • Trivy vulnerability scanning
  • Docker Compose development setup

OrchestKit Delta (house rules)

Load: Read("references/ork-delta.md")

Key topics covered:

  • CI concurrency groups, the sub-5-minute feedback budget, path filtering
  • Service-container health gating, SHA-pinned deploys, CDN invalidation order
  • Kubernetes probe budget, request/limit baseline, PodDisruptionBudget floor
  • External Secrets refresh interval, ArgoCD prune plus selfHeal, Terraform state locking
  • Alert thresholds with dwell windows, request-id log binding, rollback rehearsal

Railway Deployment

Load: Read("rules/railway-deployment.md")

Key topics covered:

  • railway.json configuration, Nixpacks builds
  • Environment variable management, database provisioning
  • Multi-service setups, Railway CLI workflows
  • References: references/railway-json-config.md, references/nixpacks-customization.md, references/multi-service-setup.md

Deployment Strategies

Load: Read("references/deployment-strategies.md")

Key topics covered:

  • Rolling deployment (maxUnavailable / maxSurge)
  • Blue-green deployment (service-selector switch and rollback)
  • Canary releases (replica-ratio traffic split)

Upstream coverage (do not restate)

This skill wraps third-party products. Vendor mechanics are not restated here; fetch them from the source below. Where a row says "house subset stays in X", that file keeps only OrchestKit's threshold, config or ordering decision, not the vendor tutorial.

TopicFetch from
GitHub Actions workflow syntax, matrix builds, artifact upload/download, cache mechanicshttps://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax (house cache-key subset stays in rules/devops-ci-caching.md)
Trigger filters (on.push.paths, schedules, workflow_dispatch)https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow
Service containers for integration testshttps://docs.github.com/en/actions/tutorials/use-containerized-services/use-docker-service-containers
Deployment environments and approval gateshttps://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments
Protected branches and required status checkshttps://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches (house approval counts stay in rules/devops-branch-protection.md)
Kubernetes probe semantics and every probe fieldhttps://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ (house probe numbers stay in references/ork-delta.md)
Requests, limits, quotas and QoS classeshttps://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ (house baseline stays in references/ork-delta.md)
PodDisruptionBudget semantics and eviction APIhttps://kubernetes.io/docs/tasks/run-application/configure-pdb/ (house minAvailable floor stays in references/ork-delta.md)
StatefulSets, ordinal identity, volumeClaimTemplateshttps://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
Helm chart authoring, templating and values fileshttps://helm.sh/docs/topics/charts/ (the chart directory layout we use stays in references/checklists-and-templates.md)
External Secrets Operator CRD fields and backendshttps://external-secrets.io/latest/api/externalsecret/ (house refresh/creation policy stays in references/ork-delta.md)
ArgoCD automated sync, prune and self-healhttps://argo-cd.readthedocs.io/en/stable/user-guide/auto_sync/ (house retry/backoff stays in references/ork-delta.md)
Terraform S3 backend and state lockinghttps://developer.hashicorp.com/terraform/language/backend/s3 (house backend config stays in references/ork-delta.md)
Terraform module composition and variable fileshttps://developer.hashicorp.com/terraform/language/modules
Alembic revision, upgrade and downgrade CLIhttps://alembic.sqlalchemy.org/en/latest/tutorial.html (the zero-downtime migration ordering stays in rules/devops-db-migrations.md)
Prometheus client instrumentation (Counter, Histogram, exposition)https://prometheus.github.io/client_python/
PromQL functions (rate, histogram_quantile) for dashboardshttps://prometheus.io/docs/prometheus/latest/querying/functions/
Prometheus alerting rule syntaxhttps://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/ (house thresholds and dwell windows stay in references/ork-delta.md)
OpenTelemetry FastAPI auto-instrumentation and manual spanshttps://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/fastapi/fastapi.html
structlog context bindinghttps://www.structlog.org/en/stable/contextvars.html (the bind-then-call ordering stays in references/ork-delta.md)
Trivy severity filtering and scan configurationhttps://trivy.dev/latest/docs/configuration/filtering/ (the house image-scan CI wiring stays in references/docker-patterns.md, the weekly-scan schedule and severity floor in references/ork-delta.md)
CloudFront invalidation semantics and costhttps://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html (the sync-then-invalidate order stays in references/ork-delta.md)
Pre-launch security, load-testing and monitoring checklistsork:security-patterns, ork:testing-perf, ork:monitoring-observability (the deploy-day checklist stays in references/checklists-and-templates.md)

Deployment Checklist & Templates

Load: Read("references/checklists-and-templates.md") for pre/during/post-deployment checklists, Helm chart structure, and template reference table.


Related Skills

  • ork:security-patterns - Security scanning and hardening patterns for CI/CD pipelines
  • ork:monitoring-observability - Prometheus, Grafana and alerting for deployed applications
  • ork:database-patterns - Python/Alembic migration workflow for backend deployments
  • portless (upstream) - Named .localhost URLs for multi-service local dev (portless alias api 8080)

Key Decisions

DecisionChoiceRationale
Container userNon-root (uid 1001)Security best practice, required by many orchestrators
Deployment strategyRolling update (default)Zero downtime, automatic rollback, resource efficient
Secrets managementExternal Secrets OperatorSyncs from cloud providers, GitOps compatible
Health checksSeparate startup/liveness/readinessPrevents premature traffic, enables graceful shutdown

Capability Details

Load: Read("references/capability-details.md") for full keyword index and problem-solution mapping across all 6 capabilities (ci-cd, docker, kubernetes, infrastructure-as-code, deployment-strategies, observability).