setup-ci-cd-pipeline — команда для Claude Code: функции и установка
Настраивает CI/CD-пайплайн под GitHub Actions, GitLab CI, Azure Pipelines или Jenkins с тестами, проверками безопасности и сценариями деплоя.
npx claude-code-templates@latest --command setup/setup-ci-cd-pipelineЧто делает setup-ci-cd-pipeline
Команда генерирует пайплайн доставки и тестирования кода под выбранную платформу: GitHub Actions, GitLab CI, Azure Pipelines или Jenkins. Сначала агент проверяет репозиторий через терминал. Он оценивает git remote, ищет конфигурации вроде .gitlab-ci.yml или каталога .github, а также сканирует package.json и Dockerfile для выявления стека.
Сценарий выстраивает сборку артефактов, прогон unit- и e2e-тестов, расчёт покрытия кода и аудит безопасности. Также настраиваются выкатка на staging и production, механизмы отката, матричные сборки и схемы релиза вроде canary или blue-green. Команда требует прав на вызов Bash и чтение файлов, иначе агент не сможет исследовать репозиторий.
Какие задачи решает
- настроить запуск тестов и линтеров при пуше в репозиторий
- сгенерировать конфигурацию CI/CD для GitHub Actions, GitLab CI или Jenkins
- добавить аудит безопасности и поиск уязвимостей в процесс сборки
- настроить этапы деплоя на staging и production с механизмами отката
Примеры запросов агенту
- /setup-ci-cd-pipeline --github-actions
- /setup-ci-cd-pipeline --gitlab-ci
- /setup-ci-cd-pipeline --jenkins
Как установить setup-ci-cd-pipeline
1Через claude-code-templates
npx claude-code-templates@latest --command setup/setup-ci-cd-pipeline2Вручную: положить файлы
.claude/commands/setup-ci-cd-pipeline.mdВызов — /setup-ci-cd-pipeline. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/setup-ci-cd-pipeline.mdВызов — /prompts:setup-ci-cd-pipeline. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/setup-ci-cd-pipeline.prompt.mdВручную: положить файлы
.gemini/commands/setup-ci-cd-pipeline.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о setup-ci-cd-pipeline
Как установить setup-ci-cd-pipeline в Claude Code?
Выполните в терминале npx claude-code-templates@latest --command setup/setup-ci-cd-pipeline. Шаблон сохранится в .claude/commands/setup-ci-cd-pipeline.md.
Что делает команда setup-ci-cd-pipeline?
Она сканирует репозиторий на наличие тестовых файлов, Docker-конфигураций и существующих CI-скриптов, а затем создаёт сценарии сборки, тестирования и деплоя.
Какие платформы поддерживает setup-ci-cd-pipeline?
Команда поддерживает GitHub Actions, GitLab CI, Azure Pipelines и Jenkins. Целевую систему задают через флаг при запуске, например --github-actions или --gitlab-ci.
Исходный текст
setup-ci-cd-pipeline.md · MIT
--- allowed-tools: Read, Write, Edit, Bash argument-hint: "[platform] | --github-actions | --gitlab-ci | --azure-pipelines | --jenkins" description: Setup comprehensive CI/CD pipeline with automated testing, deployment, and monitoring --- # Setup CI/CD Pipeline Setup comprehensive CI/CD pipeline with automated workflows and deployments: **$ARGUMENTS** ## Current Repository State - Version control: !`git remote -v | head -1` (GitHub, GitLab, etc.) - Existing CI: !`find . -name ".github" -o -name ".gitlab-ci.yml" -o -name "azure-pipelines.yml" | wc -l` - Test framework: @package.json or testing files detection - Deployment config: @Dockerfile or deployment manifests ## Task Implement production-ready CI/CD pipeline with comprehensive automation and best practices: **Platform Choice**: Use $ARGUMENTS to specify GitHub Actions, GitLab CI, Azure Pipelines, or Jenkins **Pipeline Architecture**: 1. **Build Automation** - Code compilation, dependency installation, artifact creation 2. **Testing Strategy** - Unit tests, integration tests, e2e tests, code coverage reporting 3. **Quality Gates** - Linting, security scanning, vulnerability assessment, code quality metrics 4. **Deployment Automation** - Staging deployment, production deployment, rollback mechanisms 5. **Environment Management** - Infrastructure provisioning, configuration management, secrets handling 6. **Monitoring Integration** - Performance monitoring, error tracking, deployment notifications **Advanced Features**: Parallel job execution, matrix builds, deployment strategies (blue-green, canary), and multi-environment support. **Security & Compliance**: Secure credential management, compliance checks, audit trails, and approval workflows. **Output**: Complete CI/CD pipeline with automated testing, secure deployments, monitoring integration, and comprehensive documentation.
© davila7 · MIT · davila7/claude-code-templates