ci-cd-pipeline-builder — скилл для Claude Code: CI/CD из стека
Собирает стартовый CI/CD-пайплайн по файлам вашего репозитория: определяет стек и выдаёт YAML для GitHub Actions или GitLab CI.
/plugin marketplace add alirezarezvani/claude-skills
/plugin install engineering-advanced-skills@claude-code-skillsЧто делает ci-cd-pipeline-builder
Скилл смотрит на файлы репозитория, выясняет язык, рантайм и инструменты, а потом пишет по ним стартовый пайплайн. Внутри два скрипта: scripts/stack_detector.py выдаёт отчёт о стеке текстом или JSON, scripts/pipeline_generator.py превращает этот JSON в YAML для GitHub Actions либо GitLab CI. Промежуточный файл можно не делать и запустить генератор сразу по репозиторию.
Детект опирается на lockfile и на команды сборки, которые в проекте уже есть. Поэтому отсутствующий lint всплывёт до мерджа, а не в красном джобе. Порядок скилл советует такой: сначала чистый CI из lint, test, build, затем деплой на стейджинг с явным окружением, продакшн — за ручным подтверждением. Раскатка и откат остаются отдельными командами, которые видно в файле.
Нужен python3: оба скрипта запускаются через него. Секреты и переменные окружения для деплоя скилл не заводит — это на вас, как и их описание в репозитории. Деплой-джобы в шаблоне привязаны к защищённым ветвям и окружениям, так что проверить их перед первым мерджем стоит самому.
Какие задачи решает
- поднять CI для нового репозитория без копипасты чужого workflow
- заменить хрупкий пайплайн, унаследованный от другого проекта
- переехать с GitHub Actions на GitLab CI
- сверить шаги пайплайна с реальными командами сборки
- собрать воспроизводимый baseline перед ручной доработкой
Примеры запросов агенту
- Определи стек в репозитории через `scripts/stack_detector.py` и покажи отчёт
- Сгенерируй `.github/workflows/ci.yml` из `detected-stack.json`
- Проверь, есть ли в пайплайне шаги, которых нет в проекте
Как установить ci-cd-pipeline-builder
1Через маркетплейс плагинов
/plugin marketplace add alirezarezvani/claude-skills/plugin install engineering-advanced-skills@claude-code-skillsКоманда ставит плагин engineering-advanced-skills целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add alirezarezvani/claude-skills --skill ci-cd-pipeline-builder -a claude-code3Вручную: положить файлы
~/.claude/skills/ci-cd-pipeline-builder/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ci-cd-pipeline-builder/
Вручную: положить файлы
.agents/skills/ci-cd-pipeline-builder/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/ci-cd-pipeline-builder/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install alirezarezvani/claude-skills ci-cd-pipeline-builder2Вручную: положить файлы
.github/skills/ci-cd-pipeline-builder/SKILL.mdКомандой платформы
gemini skills install https://github.com/alirezarezvani/claude-skills --path engineering/skills/ci-cd-pipeline-builderВручную: положить файлы
.devin/skills/ci-cd-pipeline-builder/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора349
Весь набор →Похожие
Вопросы о ci-cd-pipeline-builder
Как установить ci-cd-pipeline-builder в Claude Code?
Добавьте маркетплейс командой /plugin marketplace add alirezarezvani/claude-skills, затем поставьте набор: /plugin install engineering-advanced-skills@claude-code-skills. Скилл приедет вместе с ним.
Что делает ci-cd-pipeline-builder?
Определяет стек по файлам репозитория и генерирует по нему стартовый пайплайн для GitHub Actions или GitLab CI, с кешированием и матрицей под найденный стек.
Что нужно, чтобы скилл заработал?
python3 для обоих скриптов. Отчёт детектора можно подать и готовым JSON через stdin или --input, если анализ идёт офлайн.
Исходный текст
SKILL.md · MIT
--- name: "ci-cd-pipeline-builder" description: "Generate pragmatic CI/CD pipelines from detected project stack signals — fast baseline generation, repeatable checks, environment-aware deployment stages. Use when setting up CI for a new project, refactoring existing pipelines, or standardizing deployment workflows across multiple repos." --- # CI/CD Pipeline Builder **Tier:** POWERFUL **Category:** Engineering **Domain:** DevOps / Automation ## Overview Use this skill to generate pragmatic CI/CD pipelines from detected project stack signals, not guesswork. It focuses on fast baseline generation, repeatable checks, and environment-aware deployment stages. ## Core Capabilities - Detect language/runtime/tooling from repository files - Recommend CI stages (`lint`, `test`, `build`, `deploy`) - Generate GitHub Actions or GitLab CI starter pipelines - Include caching and matrix strategy based on detected stack - Emit machine-readable detection output for automation - Keep pipeline logic aligned with project lockfiles and build commands ## When to Use - Bootstrapping CI for a new repository - Replacing brittle copied pipeline files - Migrating between GitHub Actions and GitLab CI - Auditing whether pipeline steps match actual stack - Creating a reproducible baseline before custom hardening ## Key Workflows ### 1. Detect Stack ```bash python3 scripts/stack_detector.py --repo . --format text python3 scripts/stack_detector.py --repo . --format json > detected-stack.json ``` Supports input via stdin or `--input` file for offline analysis payloads. ### 2. Generate Pipeline From Detection ```bash python3 scripts/pipeline_generator.py \ --input detected-stack.json \ --platform github \ --output .github/workflows/ci.yml \ --format text ``` Or end-to-end from repo directly: ```bash python3 scripts/pipeline_generator.py --repo . --platform gitlab --output .gitlab-ci.yml ``` ### 3. Validate Before Merge 1. Confirm commands exist in project (`test`, `lint`, `build`). 2. Run generated pipeline locally where possible. 3. Ensure required secrets/env vars are documented. 4. Keep deploy jobs gated by protected branches/environments. ### 4. Add Deployment Stages Safely - Start with CI-only (`lint/test/build`). - Add staging deploy with explicit environment context. - Add production deploy with manual gate/approval. - Keep rollout/rollback commands explicit and auditable. ## Script Interfaces - `python3 scripts/stack_detector.py --help` - Detects stack signals from repository files - Reads optional JSON input from stdin/`--input` - `python3 scripts/pipeline_generator.py --help` - Generates GitHub/GitLab YAML from detection payload - Writes to stdout or `--output` ## References - [references/pipeline-design-notes.md](references/pipeline-design-notes.md) — common pitfalls, best practices, detection heuristics, generation strategy, platform decision notes, pre-merge validation checklist, and scaling guidance - [references/github-actions-templates.md](references/github-actions-templates.md) - [references/gitlab-ci-templates.md](references/gitlab-ci-templates.md) - [references/deployment-gates.md](references/deployment-gates.md) - [README.md](README.md)
© Alireza Rezvani · MIT · alirezarezvani/claude-skills