kmaruthi2002/universal-llm-skills/ci-cd-pipelines

Claude Code and agent skill by kmaruthi2002/universal-llm-skills

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Design, build, speed up, and repair continuous integration and delivery pipelines on any CI system (e.g. GitHub Actions, GitLab CI, Jenkins, CircleCI, Buildkite, Azure Pipelines): stages, caching, parallelism, artifacts, environments and promotion, secrets, deployment strategies (rolling, blue/green, canary), and pipeline speed and flakiness. Use when someone asks to set up CI, add a deploy step, make the build faster, fix a flaky or broken pipeline, add caching, gate deploys on tests, or choose a deployment strategy. Not for writing the tests themselves or for versioning and release planning.

Install

npx vskill@latest install kmaruthi2002/universal-llm-skills/ci-cd-pipelines

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as kmaruthi2002/universal-llm-skills/ci-cd-pipelines.

CI/CD Pipelines

A pipeline is the factory that turns a commit into running software. A good one is fast enough that people wait for it instead of working around it, trustworthy enough that green means "safe to ship", and boring enough that deploying on a Friday afternoon is not an act of courage. This skill covers how to design one, how to make an existing one faster and less flaky, and how to deploy from it safely.

Scope

Covers: pipeline structure, triggers, jobs and stages, caching, parallelism, artifacts, environment promotion, secrets in CI, deployment strategies, pipeline performance, flaky-test handling, and supply-chain hygiene of the pipeline itself.

Does not cover, and hands off to:

  • What tests to write and at which level → testing-strategy, end-to-end-testing.
  • Building the container image itself → containerization.
  • Provisioning the infrastructure the pipeline deploys to → infrastructure-as-code.
  • Version numbers, changelogs, release cadence, feature flags → release-management.
  • Go/no-go checklist for a specific release → release-readiness.
  • Branching model and merge policy → git-workflow, pull-request-workflow.

Core principles

1. Build once, promote the same artifact. Compile, package, or build the image exactly once per commit, give it an immutable identifier (commit SHA, content digest), and deploy that identical artifact to every environment. Rebuilding per environment means what you tested is not what you shipped: a dependency resolved differently, a base image moved, a build flag differed. Configuration differs between environments; the artifact does not.

2. The pipeline is code and is reviewed like code. Keep pipeline definitions in the repository, versioned with the code they build. A pipeline edited through a web UI has no history, no review, and no way to reproduce last month's build.

3. Fast feedback first, expensive confidence later. Order work so the cheapest, most likely-to-fail checks run first (lint, type-check, unit tests) and the slow ones (integration, end-to-end, performance) run after or in parallel. A developer should learn about a typo in under five minutes, not after a 40-minute end-to-end suite.

4. Green must mean something. If the team routinely re-runs failures until they pass, or merges on red "because that test is always flaky", the pipeline has stopped carrying information. Flakiness is a reliability bug in the pipeline, not background noise.

5. Deploys must be reversible and observable. Every deployment strategy is a way to limit blast radius and make rollback cheap. A deploy you cannot watch (no health signal) or undo (no previous artifact, irreversible migration) is a gamble regardless of how good the tests are.

6. Least privilege for the pipeline. CI runners execute arbitrary code from every branch and pull request. Treat them as a high-value attack surface: scoped, short-lived credentials; production secrets only available to protected branches and approved jobs; third-party actions/plugins pinned.

7. Hermetic and reproducible where it matters. Pin tool versions, lock dependencies, and avoid "latest" tags so that a re-run of an old commit produces the same result. Non-reproducible builds turn every failure into an archaeology project.

Discovering context first

Before proposing or changing anything:

  1. Find the existing CI config. Look for .github/workflows/, .gitlab-ci.yml, Jenkinsfile, .circleci/config.yml, azure-pipelines.yml, buildkite/, bitbucket-pipelines.yml, cloudbuild.yaml, Taskfile, Makefile, justfile. Many repos have more than one (legacy plus new); find out which is live.
  2. Find the local entry points. Most good pipelines call the same commands developers run locally (make test, npm run ci, ./scripts/test.sh). Reuse them rather than duplicating logic in YAML; it keeps local and CI behaviour in sync.
  3. Read recent run history if you can. Durations per job, failure rates, which jobs are re-run most. This tells you where time and flakiness actually are, rather than where you guess they are.
  4. Identify the deploy target and mechanism. Container orchestrator, serverless platform, VM fleet, static hosting, app store, package registry. The strategy options depend on it.
  5. Identify the branching and release model (trunk-based, release branches, tags trigger releases). The trigger design must match it.
  6. Find how secrets get in today (CI secret store, OIDC federation to a cloud, vault, env files). Do not introduce a second mechanism without reason.
  7. Note organisational constraints: required approvals, change windows, compliance evidence (who approved, what was deployed when), self-hosted runner requirements, network restrictions.

Follow the project's conventions for job naming, script locations, and reusable templates. If they have a shared pipeline library or reusable workflows, extend it rather than writing a one-off.

Designing a pipeline

Typical stage shape

There is no mandatory layout, but most healthy pipelines converge on something like this, with each stage gating the next:

StagePurposeTypical budget
ValidateLint, format check, type-check, config validation, secret scanning< 2–3 min
BuildCompile, bundle, build image; produce versioned artifact< 5–10 min
Unit testFast isolated tests, coverage< 5–10 min, parallelised
IntegrationTests against real dependencies (DB, queue) in containers< 10–15 min
Package & publishPush artifact/image to registry with immutable tag, SBOM, signature< 2–5 min
Deploy to staging/previewSame artifact, staging configminutes
Post-deploy checksSmoke tests, synthetic checks, E2E against the deployed env< 10–15 min
Promote to productionManual approval or automated gate; progressive rolloutminutes to hours

Budgets are heuristics: a commit-to-merge-signal under ~10 minutes keeps people in flow; 10–20 is tolerable; past 30 people batch changes, context-switch, and start bypassing it.

Triggers
  • Pull/merge request: run validate, build, unit, integration. Do not deploy to production. Preview environments per PR are valuable for web apps if cheap to spin up and torn down automatically.
  • Push to main/trunk: full pipeline, publish artifact, deploy to staging, optionally continue to production.
  • Tag or release branch: for projects that release discretely (libraries, mobile, on-prem software).
  • Schedule: nightly long suites, dependency audits, rebuilding images to pick up base-image security patches.
  • Manual: deploy a specific artifact to a specific environment, rollback, re-run migrations. Make the inputs explicit (artifact ID, environment) and validated.

Use path filters in monorepos so a docs change does not run the backend suite, but be careful: path filters that skip required checks can block merges or, worse, let a change through untested if a shared file is missed. Prefer "compute affected targets" tooling (e.g. Nx, Turborepo, Bazel, Pants, or a dependency-aware script) over hand-maintained path lists once a monorepo grows.

Artifacts and promotion
  • Tag artifacts with the commit SHA (and optionally a semantic version). Never deploy a mutable tag like latest to production; you lose the ability to know what is running and to roll back precisely. For images, deploy by digest where the platform supports it.
  • Store build outputs in a registry or artifact store with retention policies; keep enough history to roll back several releases.
  • Pass artifacts between jobs explicitly (upload/download, registry) rather than rebuilding in later jobs.
  • Record provenance: which commit, which pipeline run, who approved. Supply-chain frameworks (e.g. SLSA provenance, Sigstore/cosign signatures, SBOMs via Syft or similar) make this verifiable, which some customers and regulators require.
Environments
  • Keep the number of long-lived environments small (often: preview/ephemeral, staging, production). Each extra one costs money and drifts.
  • Environment differences belong in configuration (variables, secrets, config files per env), not in code branches or different build commands.
  • Staging is only predictive if it resembles production in the ways that matter: same deploy mechanism, same artifact, similar data shape, same infra code with different sizes.
  • Use the CI system's environment protection features (required reviewers, branch restrictions, wait timers) for production.

Caching

Caching is the single largest speed lever and the most common source of "works on CI sometimes" bugs.

What to cache: dependency downloads (package manager caches, not necessarily node_modules itself), compiler caches (ccache, sccache, Gradle build cache, Go build cache), container layer caches, test-tool binaries.

Keying rules:

  • Key on the lockfile hash plus OS/architecture plus tool version: e.g. deps-linux-x64-node20-<hash(lockfile)>.
  • Provide restore-key fallbacks (prefix match) so a lockfile change restores a near cache and only fetches the diff.
  • Never key only on branch name; the cache never invalidates when dependencies change.
  • Never cache outputs that embed secrets or environment-specific config.

Container builds: order the Dockerfile so dependency installation happens before copying source (see containerization), and use a remote/registry layer cache (e.g. BuildKit --cache-from/--cache-to) because ephemeral runners start cold.

When a cache hurts: if restoring the cache takes longer than recomputing (huge caches over slow storage), or cache corruption causes intermittent failures. Measure restore time vs. job time. Cap cache size and let it expire.

Debugging suspected cache poisoning: re-run with caching disabled. If it passes, the cache key is missing an input. Add the missing input to the key rather than disabling caching permanently.

Parallelism

  • Job-level: independent jobs (lint, unit, build) run in parallel. Draw the dependency graph; anything without a real data dependency should not wait.
  • Test sharding: split a long suite across N runners. Shard by historical timing, not file count, or one shard ends up with all the slow tests. Most test runners or CI systems support timing-based splitting.
  • Matrix builds: test across language versions, OSes, or databases only where you actually support them. A 4×3×2 matrix is 24 jobs per commit; restrict the full matrix to main/nightly and run a representative subset on PRs.
  • Diminishing returns: each runner has startup overhead (provisioning, checkout, cache restore) of often 30s–2min. Past the point where shard runtime approaches startup overhead, more shards add cost without speed.
  • Fail fast selectively: cancel sibling shards on first failure for PR feedback; let all shards finish on main to see the full failure set.
  • Cancel superseded runs: when a new commit is pushed to a PR, cancel in-progress runs for the old commit (concurrency groups). Do not do this for deploy jobs mid-flight, which can leave an environment half-deployed.

Making a slow pipeline fast

Work from data, not intuition:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks
  • pluginCustom plugin integration

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kmaruthi2002/universal-llm-skills/ci-cd-pipelines/badge)](https://verified-skill.com/skills/kmaruthi2002/universal-llm-skills/ci-cd-pipelines)

Something wrong with this skill or its page? Tell us.