agentsclimarketplace

Cicd pipeline

Skill SWEStash/swe-workflow-skills/plugins/devops/skills/cicd-pipeline

A comprehensive SWE workflow, encoded. Might be useful to you too.

Install
npx -y skills add SWEStash/swe-workflow-skills --skill cicd-pipeline

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Design CI/CD pipelines for automated build, test, deploy — GitHub Actions, GitLab CI, quality gates. Triggers: CI/CD, pipeline, GitHub Actions, GitLab CI, workflow, automated deployment, build pipeline, continuous integration, continuous deployment, automate tests on PR, deploy automatically, quality gate.

SKILL.md

4.8 KB, as published. Nobody here has run it

CI/CD Pipeline Design

Design and write CI/CD pipelines that automate build, test, and deployment with appropriate quality gates. Good pipelines are fast, reliable, and catch problems before they reach production.

Workflow

Step 1: Understand the Requirements

Before writing pipeline configuration, establish:

  • Platform: GitHub Actions, GitLab CI, Jenkins, CircleCI, etc.
  • Triggers: On push, on PR, on tag, on schedule, manual?
  • Stages needed: Lint → Test → Build → Deploy? Security scan? Performance test?
  • Environments: Staging, production? Approval gates between them?
  • Artifacts: Docker images, npm packages, binaries? Where do they go?
  • Secrets: What credentials are needed and how are they managed?

Step 2: Design the Pipeline Stages

Follow the "fail fast" principle — cheapest and fastest checks run first:

1. Lint & Format    (seconds)     → Catch style issues immediately
2. Unit Tests       (seconds)     → Catch logic errors
3. Build            (minutes)     → Confirm it compiles/bundles
4. Integration Tests (minutes)    → Catch wiring issues
5. Security Scan    (minutes)     → Catch vulnerabilities
6. Deploy to Staging (minutes)    → Validate in real environment
7. Deploy to Prod   (minutes)     → With approval gate

Parallelize independent stages. Lint, unit tests, and security scans can run simultaneously.

Multi-repo / deployment repo pattern: If this service is part of a polyrepo with a deployment repo, the pipeline's deploy stages may update version pins in the deployment repo (via PR or repository_dispatch) rather than deploying directly to infrastructure. The deployment repo's own CI handles validation and promotion across environments. See deployment-repo for the orchestration pattern and gitops-delivery for automated cross-repo triggers.

Step 3: Write the Configuration

Write the pipeline config for the target platform. Use templates/github-actions.md as a starting point for GitHub Actions PR validation and production deploy workflows, plus a GitLab CI equivalent.

Key best practices:

  • Cache dependencies — Cache node_modules, pip packages, Go modules between runs
  • Pin action/image versions — Use SHA hashes or exact tags, not @latest or @main
  • Minimize secrets scope — Only expose secrets to the jobs that need them
  • Use matrix builds — Test across Node versions, OS variants, or Python versions when applicable
  • Set timeouts — Prevent stuck jobs from consuming runner minutes indefinitely
  • Reusable workflows — Extract common patterns into shared workflow files

Step 4: Add Quality Gates

Quality gates prevent bad code from advancing:

  • Required checks — Tests and lint must pass before PR merge
  • Coverage thresholds — Fail if coverage drops below the floor
  • Security scan — Block deploys with critical vulnerabilities
  • Approval gates — Require manual approval for production deploys
  • Smoke tests — Automated health checks after deployment

Step 5: Validate

  • Pipeline triggers correctly on the intended events
  • Failing tests actually block the pipeline (not just warnings)
  • Secrets are not exposed in logs
  • Cache is working (second run is faster)
  • Deploy steps have appropriate environment protections
  • Rollback mechanism exists

Principles Applied

  • KISS: Start with a single-file pipeline. Split into reusable workflows only when duplication appears.
  • DRY: Extract repeated steps into composite actions or shared workflows.
  • Fail fast: Order stages by speed and likelihood of failure.
  • YAGNI: Don't add matrix builds across 5 Node versions if you only support one.

Cross-Skill References

  • deployment-repo — for multi-service systems, the deployment repo handles system-level CI (contract tests, E2E, promotion)
  • gitops-delivery — pull-based delivery as an alternative to CI-driven kubectl apply / helm upgrade
  • deployment-checklist — pre-deployment verification gates to incorporate into the pipeline
  • release-management — the release stage itself: version bumps, changelog, tagging, publish gates, registry publishing (the pipeline automates what that skill decides)
  • security-audit — security scanning stages and SAST/DAST integration
  • verification-before-completion — run the proving commands locally before relying on the pipeline to catch failures

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.