ci-cd-pipeline-builder
Generates GitHub Actions or GitLab CI pipelines from a repo's stack, lints pipelines for security and reliability gaps, and finds missing caches. Use when…
от borghei★ 1 250 звёзд на GitHub
Установить ci-cd-pipeline-builder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
CI/CD Pipeline Builder
The agent generates CI/CD pipelines from detected project stack signals (lockfiles, then manifests), lints existing pipelines, and finds missing caches. The scripts emit GitHub Actions and GitLab CI; CircleCI and Buildkite are covered by the reference templates and guidance only.
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, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- Target platform: GitHub Actions, GitLab CI, CircleCI, or Buildkite (sets the YAML dialect
pipeline_generator.pyemits 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).
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Quick Start Workflow
# 1. See what the generator detects (lockfile first, then package.json / pyproject.toml / Cargo.toml ...)
python scripts/pipeline_generator.py assets/sample_node_project --detect-only
# 2. Generate a workflow; triggers default to the repo's default branch (read from .git), else main
python scripts/pipeline_generator.py assets/sample_node_project --branches main > /tmp/ci.yml
python scripts/pipeline_generator.py . --platform gitlab --deploy
# 3. Lint and check caching on any pipeline file or directory
python scripts/pipeline_linter.py assets/sample_workflows/flawed-ci.yml # 5 errors, exit 1
python scripts/pipeline_linter.py /tmp/ci.yml # clean, exit 0
python scripts/cache_optimizer.py assets/sample_workflows/flawed-ci.yml # missing npm cache, exit 1
Tools Overview
| Tool | Purpose | Key flags |
|---|---|---|
pipeline_generator.py |
Lint, test, build (and with --deploy staging/production) jobs for Node, Python and Go; generic fallback otherwise |
--platform github|gitlab, --branches a,b, --deploy, --detect-only, --json |
pipeline_linter.py |
Hardcoded secrets, actions on a retired Node runtime (checkout/setup-node < v5, setup-python/upload-artifact < v6, download-artifact < v7, cache < v5, setup-go < v6, setup-java < v5), actions on @main, missing timeouts, concurrency, permissions, retention, ungated production deploys |
--dir, --severity, --json |
cache_optimizer.py |
Missing or weak dependency caches per package manager, with time savings | --dir, --severity, --json |
Generated jobs use the latest majors as of 2026-11 (checkout v7, setup-node v7, setup-python v7, upload-artifact v7, download-artifact v8, cache v6, setup-go v7) and Node 24; GitHub removed the Node 20 action runtime from hosted runners on 2026-09-23, so older majors fail. For supply-chain hardening, pin third-party actions to a full commit SHA with the tag in a comment; the linter flags only mutable branch refs.
Exit codes. pipeline_linter.py: 0 no errors, 1 at least one error-level finding. cache_optimizer.py: 0 no high-severity suggestion, 1 at least one. Both exit 2 when no file is given or found. pipeline_generator.py: 0 generated, 2 the project directory does not exist.
Done when:
- The linter reports no errors on the final pipeline, and the cache optimizer no high items.
- The pipeline ran once on a branch and failed when a test was broken on purpose (no
|| trueon lint or test steps). - Production deploys sit behind an environment with required reviewers or a protected branch condition.
- Secrets come from the platform's secret store, never from the YAML.
Anti-Patterns
Steps
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- assets/sample_node_project/package.json
- assets/sample_workflows/flawed-ci.yml
- references/pipeline-templates.md
- references/quality-and-operations.md
- scripts/cache_optimizer.py
- scripts/pipeline_generator.py
- scripts/pipeline_linter.py
FAQ
Что делает скилл ci-cd-pipeline-builder?
Generates GitHub Actions or GitLab CI pipelines from a repo's stack, lints pipelines for security and reliability gaps, and finds missing caches. Use when bootstrapping CI, reviewing a workflow, adding deploy gates, or speeding up builds.
Как установить скилл ci-cd-pipeline-builder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ci-cd-pipeline-builder запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…