mcpField
C
ci-cd-pipeline-builder

ci-cd-pipeline-builder

github.com/borgheiCloud & DevOps1.0k106 installsUpdated 1w ago
Repository

About ci-cd-pipeline-builder

ci-cd-pipeline-builder is a skill for generating and improving CI/CD pipelines from project files and stack signals. It covers several CI platforms, deployment strategies, security scans, and caching optimization.

Key features

  1. 01Detect stacks from project files
  2. 02Generate pipelines with test and build stages
  3. 03Support deployment strategies and approval gates
  4. 04Integrate code, dependency, and container scans
  5. 05Optimize caching, matrix builds, and concurrency

Use cases

  1. 01Set up CI/CD for a new repository
  2. 02Migrate between CI platforms
  3. 03Investigate slow or unreliable pipelines
  4. 04Add deployment or security scanning to an existing pipeline

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/borghei/claude-skills --skill ci-cd-pipeline-builder

After installing, type/ci-cd-pipeline-builderin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
pipeline-templates.md
quality-and-operations.md
scripts/
cache_optimizer.py
pipeline_generator.py
pipeline_linter.py

Details

From the project README

CI/CD Pipeline Builder

Generate production-grade CI/CD pipelines from detected project stack signals. Analyzes lockfiles, manifests, and scripts to produce optimized pipelines with proper caching, matrix strategies, security scanning, and deployment gates. Supports GitHub Actions, GitLab CI, CircleCI, and Buildkite with deployment strategies including blue-green, canary, and rolling updates.

Keywords: CI/CD, GitHub Actions, GitLab CI, pipeline, deployment, caching, matrix builds, blue-green deployment, canary deployment, security scanning, SAST, container builds, environment gates

Core Capabilities

  • Stack detection — infer language/runtime, package manager, build/test/lint commands, framework, and infrastructure (Docker, K8s, Terraform) from lockfiles and manifests.
  • Pipeline generation — lint/test/build/deploy stages with correct dependencies, caching, matrix builds, artifact passing, and conditional execution.
  • Deployment strategies — blue-green, canary, rolling updates, recreate, feature-flag integration, and manual approval gates.
  • Security integration — SAST (CodeQL, Semgrep, Snyk), dependency and container scanning (Trivy, Grype), secret scanning, and SBOM generation.
  • Optimization — caching matched to package manager, path filtering, concurrency control, and fail-fast matrices.

When to Use

  • Bootstrapping CI/CD for a new repository
  • Migrating between CI platforms
  • Optimizing slow or flaky pipelines
  • Adding deployment stages to an existing CI-only pipeline
  • Implementing security scanning in the pipeline
  • Setting up multi-environment deployment (staging, production)

Clarify First

Before generating the pipeline, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Target platform — GitHub Actions, GitLab CI, CircleCI, or Buildkite (sets the YAML dialect pipeline_generator.py emits via --platform)
  • Project stack — language/runtime, package manager, and whether Docker/K8s/Terraform are present (drives stack detection, caching, and which stages are generated)
  • Deployment strategy & gates — blue-green, canary, rolling, or CI-only, plus any manual approval gates (determines the deploy stages and conditions)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Tools

ToolPurposeCommand
pipeline_generator.pyGenerate pipeline YAML from project stack detectionpython scripts/pipeline_generator.py . --platform github --deploy
cache_optimizer.pyAnalyze pipeline configs and suggest caching improvementspython scripts/cache_optimizer.py --dir . --severity high
pipeline_linter.pyLint pipeline YAML for common issuespython scripts/pipeline_linter.py --dir . --severity warning

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/pipeline-templates.md — stack-detection heuristics, full GitHub Actions templates (Node.js/pnpm/Next.js and Python/uv/FastAPI), the GitLab CI equivalent, the caching strategy reference table, pipeline optimization techniques, and the deployment-strategy decision framework. Read when generating a pipeline or choosing a deployment strategy.
  • references/quality-and-operations.md — pre-merge validation checklist, common pitfalls, best practices, troubleshooting table, and success criteria. Read before merging a generated pipeline or when one misbehaves.

Scope & Limitations

This skill covers:

  • Generating CI/CD pipelines for GitHub Actions, GitLab CI, CircleCI, and Buildkite
  • Stack detection from lockfiles, manifests, Dockerfiles, and infrastructure-as-code definitions
  • Deployment strategy selection (blue-green, canary, rolling, recreate) with decision framework
  • Pipeline optimization including caching, matrix builds, path filtering, and concurrency control

This skill does NOT cover:

  • Runtime infrastructure provisioning or cloud resource management (see engineering/saas-scaffolder)
  • Application-level security hardening beyond CI-integrated scanning (see engineering/skill-security-auditor)
  • Monitoring, alerting, and observability configuration after deployment (see engineering/observability-designer)
  • Database migration orchestration during deployments (see engineering/migration-architect)

Integration Points

SkillIntegrationData Flow
engineering/dependency-auditorFeeds vulnerability scan results into pipeline security gatesAuditor findings trigger pipeline failure or warning annotations
engineering/release-managerCoordinates versioning and changelog with deploy stagesRelease tags drive conditional deployment job execution
engineering/observability-designerPost-deploy health checks and alerting complement pipeline gatesPipeline triggers smoke tests; observability confirms deployment health
engineering/env-secrets-managerManages secrets referenced by pipeline environment variablesSecret rotation policies feed into pipeline secret store configuration
engineering/migration-architectDatabase migrations run as a pre-deploy step in the pipelineMigration status gates the application deployment job
engineering/runbook-generatorGenerates rollback runbooks aligned with deployment strategyPipeline failure triggers link to the relevant rollback runbook

Comments

Markdown supported