/tsh-platform-engineering:implementing-ci-cd-pipelinesfrom TSH Platform Engineering
Designs and implements CI/CD pipelines on GitHub Actions, GitLab CI, Bitbucket Pipelines, Azure Pipelines or Jenkins. Covers stage structure, caching, deployment strategies (rolling, blue-green, canary), OIDC federation for cloud credentials, monorepo affected-only builds, and IaC pipeline gates.
Ships in TSH Platform Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Match the project's platform and existing structure before adding anything. Two pipelines built to different conventions in one repository cost more than either saves.
Read ${CLAUDE_PLUGIN_ROOT}/shared/discovering-infrastructure-context.md first —
section 1 detects the platform. When a *.plan.md exists, its Technical Context
section is the primary source; do not re-discover what it already records.
| Severity | Rule |
|---|---|
| MUST | Use OIDC federation for cloud authentication on any platform that supports it. A stored long-lived cloud access key requires an explicit recorded reason. |
| MUST | Pin every action, image and tool version. @latest or :latest in a pipeline makes builds non-reproducible and turns an upstream release into an outage. |
| MUST | Gate production deployment behind environment protection with required reviewers. |
| MUST | Look up platform syntax against the version the project pins, with context7. Action input names change between majors and a stale snippet fails at runtime, not at review. |
| MUST | Document the rollback procedure for any deployment stage you add. A deploy with no stated rollback is not finished. |
| NEVER | Echo, print, or write a secret into pipeline output or an artifact. |
| NEVER | Skip or disable tests to make a pipeline pass. Report the failure instead. |
| Reference | Load when | Covers |
|---|---|---|
| Deployment strategies | Adding or changing how a release reaches an environment | Rolling, blue-green, canary, recreate — mechanics, rollback, database-migration interaction |
| IaC pipelines | The pipeline runs Terraform, Terragrunt, or any other IaC tool | Plan/apply split, plan artifacts, remote state, security scanning, OIDC wiring, approval gates |
Read iac-pipelines.md before writing any pipeline
that runs terraform — the plan-artifact rule there is the difference between
applying what was reviewed and applying something else.
Lint → Test → Build → Deploy (staging) → Deploy (production)
↓
Artifacts & caching
Each stage independent and cacheable. A stage that cannot run on its own cannot be retried on its own.
| Strategy | Use when | Rollback | Risk |
|---|---|---|---|
| Rolling | Stateless, tolerates mixed versions in flight | Slow | Low |
| Blue-green | Instant rollback needed, or database migrations involved | Instant | Low |
| Canary | High traffic, gradual validation wanted | Instant | Very low |
| Recreate | Dev and test only, or a genuinely breaking change | Slow | High |
Mechanics in deployment-strategies.md.
| Scenario | Approach |
|---|---|
| AWS, Azure or GCP from GitHub Actions or GitLab CI | OIDC federation |
| AWS from Bitbucket Pipelines | OIDC — oidc: true on the step, a web-identity role trusting Bitbucket's identity provider |
| Multi-cloud | Vault with CI/CD auth |
| Small team, single platform | Platform-native secret store |
Implementation detail lives in managing secrets.
| Tool | Detected by | Approach |
|---|---|---|
| Nx | nx.json | nx affected --target=build |
| Turborepo | turbo.json | turbo run build --filter=...[origin/main] |
| Neither | — | Path filtering in the CI config |
context7.Report the change as:
## CI/CD Pipeline Summary
### Current state
### Proposed pipeline
- Platform, stages, deployment strategy
### Required setup
| Secret / Variable | Purpose | Where to configure |
### How to validate
### Files changed
Anything the user must configure outside the repository — a secret, an environment, a cloud trust policy — belongs in Required setup. A pipeline that cannot run until someone sets an unnamed variable is a broken delivery.
| Don't | Do |
|---|---|
| Secrets in config or logs | Platform secret store, referenced |
latest tags and unpinned actions | Pinned versions everywhere |
| Skip tests for a quick fix | Fix the test or report the failure |
| Deploy without verifying the artifact | Verify, then deploy |
| Direct pushes to the default branch | Branch protection |
| One monolithic job | Independent, cacheable, retryable stages |
What SKILL.md sets; muted values are Claude Code's defaults
Trigger on: creating or modifying a workflow or pipeline file, adding a deploy stage, choosing between rolling, blue-green and canary deployment, setting up OIDC so CI can reach AWS, Azure or GCP, speeding up a slow pipeline with caching or affected-only builds in an Nx or Turborepo monorepo, adding a Terraform plan-and-apply pipeline with approval gates, GitOps promotion between environments, or reviewing a pull request that touches CI configuration.
Three short reads, in order
GitHub Actions, GitLab, Azure DevOps, Jenkins, Terraform, Turborepo, Nx, AWS
npx claudepluginhub thesoftwarehouse/agentic-collections --plugin tsh-platform-engineering7 skills in this plugin
/deploying-to-kubernetesConfigures Kubernetes workloads to a production standard: choosing between Deployment, StatefulSet, DaemonSet and Job, resource requests and limits and the QoS class they produce, readiness/liveness/startup probes, PodDisruptionBudgets and anti-affinity, HPA/KEDA/VPA scaling, Helm chart and Kustomize overlay structure, ingress, and non-root security contexts. Use when deploying an application to a cluster, writing or reviewing manifests or charts, or adding scaling and resilience to an existing workload./designing-multi-cloud-architectureSelects cloud services and a multi-cloud topology using an explicit decision framework: which of the six multi-cloud patterns fits the actual driver, how AWS, Azure and GCP services map onto each other, where a cloud-agnostic abstraction pays for itself and where it costs more than lock-in, and how to phase a migration. Use when choosing cloud services for a workload, planning a cross-cloud or DR topology, or evaluating a move between providers./implementing-observabilityImplements metrics, logs, traces and alerting to a standard that supports an on-call rotation: choosing a stack (Prometheus/Grafana, Loki, Tempo or Jaeger, CloudWatch, Datadog, OpenTelemetry), RED and USE metrics, SLOs with error budgets, alerts that fire on user-visible symptoms and link to runbooks, and structured logging with trace correlation. Use when adding monitoring to a service, defining SLOs, writing alert rules, or fixing an alerting setup that pages too often./implementing-terraform-modulesWrites and reviews reusable Terraform modules for AWS, Azure and GCP — the module interface that outlives the resources inside it: the standard file layout, input-variable validation, outputs, provider pinning, remote state with locking, the Terraform-versus-Terragrunt decision, and Terratest coverage. Use when authoring a module that more than one caller or service will instantiate with its own inputs, standardizing provisioning across environments, or reviewing a Terraform pull request — this is the module-structure layer, loaded alongside the cloud provider's own resource patterns, not instead of them./managing-secretsChooses and implements a secrets management approach for cloud and Kubernetes workloads: cloud-native secret stores versus Vault versus Sealed Secrets or External Secrets, OIDC federation for CI/CD instead of long-lived keys, rotation policy, and audit logging. Use when storing credentials, wiring pipeline authentication to a cloud provider, or auditing how a project handles secrets./optimizing-cloud-costThe cloud-agnostic cost framework TSH provisions against: matching a workload to a pricing model (reserved, committed-use, spot, serverless), storage tiering with lifecycle policies, the mandatory cost-allocation tag set and how to enforce it, right-sizing method, and the cost-impact estimate every infrastructure proposal carries. Use when sizing new infrastructure, estimating the cost of a change, or setting up tagging and budget governance — not for auditing a specific account, which is the cloud-specific skill's job.Other plugins' skills for the same job