К основному содержанию
скилл CX Codex

cicd-expert · personamanagmentlayer — скилл для Claude Code: что делает и как установить

Скилл cicd-expert помогает настраивать пайплайны CI/CD, сборку Docker-образов, сканирование уязвимостей и стратегии деплоя в Kubernetes.

Apache-2.0 192 установок ★ 45 обновлён 2026-10-12

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add personamanagmentlayer/pcl --skill cicd-expert -a claude-code
Открыть на GitHub

Что делает cicd-expert

Скилл содержит проверенные шаблоны конвейеров для GitLab CI, GitHub Actions и Jenkins. Внутри собраны правила параллельного запуска тестов, кэширования зависимостей, матричных сборок и генерации SBOM. Разбираются три стратегии выкатки: сине-зелёный деплой, канареечный релиз с проверкой ошибок через Prometheus и скользящее обновление RollingUpdate.

Агенту открыт доступ к редактированию файлов и вызовам Bash для утилит git, docker и kubectl. Без установленных и настроенных в системе CLI-клиентов агент не сможет применить манифесты или собрать контейнер.

Какие задачи решает

  • Написать конфигурацию .gitlab-ci.yml с кэшированием npm и сборкой контейнера
  • Настроить канареечный деплой в Kubernetes с автоматическим откатом по метрикам
  • Встроить статический анализ Semgrep и проверку зависимостей в пайплайн
  • Спроектировать сине-зелёное переключение трафика через сервисы Kubernetes

Примеры запросов агенту

  • Помоги составить .gitlab-ci.yml с отдельными стадиями сборки, тестов в Postgres и сборки Docker
  • Напиши шаг для GitHub Actions, который делает канареечный деплой на 10% трафика и следит за ошибками
  • Как настроить стратегию RollingUpdate в манифесте Kubernetes, чтобы не терять поды при выкатке?

Как установить cicd-expert

1Через Skills CLI (Vercel)

npx skills add personamanagmentlayer/pcl --skill cicd-expert -a claude-code

2Вручную: положить файлы

~/.claude/skills/cicd-expert/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/cicd-expert/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о cicd-expert

Как установить cicd-expert в Claude Code?

Выполните команду npx skills add personamanagmentlayer/pcl --skill cicd-expert -a claude-code. Файл инструкции сохранится по пути ~/.claude/skills/cicd-expert/SKILL.md.

Что делает cicd-expert?

Скилл снабжает ИИ-ассистента знаниями по архитектуре CI/CD, защите цепочки поставок, созданию пайплайнов и автоматизации деплоя.

Какие консольные утилиты нужны для работы скилла?

Для практических задач скиллу нужны системные бинарники git, docker и kubectl, так как его правила разрешают выполнять команды именно через эти инструменты.

Исходный текст

SKILL.md · Apache-2.0
---
name: cicd-expert
version: 1.1.0
description: >-
  Expert-level CI/CD with GitHub Actions, Jenkins, deployment pipelines, and automation.
  Use when the user mentions CI/CD, GitHub Actions, Jenkins, GitLab CI, deployment, or
  automation, or when the task involves CI/CD Fundamentals, Pipeline Design, Workflow
  Basics, or Docker Build and Push.
category: devops
tags:
  [cicd, github-actions, jenkins, gitlab-ci, deployment, automation, pipeline]
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash(git:*, docker:*, kubectl:*)
---

# CI/CD Expert

Expert guidance for Continuous Integration and Continuous Deployment, including GitHub Actions, Jenkins, GitLab CI, deployment strategies, and automation best practices.

## Core Concepts

### CI/CD Fundamentals

- Continuous Integration (CI)
- Continuous Delivery vs Deployment
- Build automation
- Test automation
- Artifact management
- Deployment strategies (blue-green, canary, rolling)

### Pipeline Design

- Pipeline stages and jobs
- Parallel execution
- Dependencies and artifacts
- Caching strategies
- Matrix builds
- Conditional execution

### Security

- Secret management
- Dependency scanning
- SAST/DAST
- Container scanning
- Supply chain security
- SBOM generation

## GitLab CI

```yaml
# .gitlab-ci.yml
stages:
  - build
  - test
  - security
  - deploy

variables:
  DOCKER_DRIVER: overlay2
  DOCKER_TLS_CERTDIR: '/certs'
  IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA

default:
  image: node:20-alpine
  cache:
    key: ${CI_COMMIT_REF_SLUG}
    paths:
      - node_modules/
      - .npm/

build:
  stage: build
  script:
    - npm ci --cache .npm --prefer-offline
    - npm run build
  artifacts:
    paths:
      - dist/
    expire_in: 1 week

test:unit:
  stage: test
  needs: [build]
  script:
    - npm ci --cache .npm --prefer-offline
    - npm run test:unit -- --coverage
  coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'
  artifacts:
    reports:
      junit: test-results/unit/*.xml
      coverage_report:
        coverage_format: cobertura
        path: coverage/cobertura-coverage.xml

test:integration:
  stage: test
  needs: [build]
  services:
    - postgres:15
    - redis:7
  variables:
    POSTGRES_DB: testdb
    POSTGRES_USER: testuser
    POSTGRES_PASSWORD: testpass
  script:
    - npm ci --cache .npm --prefer-offline
    - npm run test:integration
  artifacts:
    reports:
      junit: test-results/integration/*.xml

security:sast:
  stage: security
  image: returntocorp/semgrep
  script:
    - semgrep --config=auto --json --output=sast-report.json .
  artifacts:
    reports:
      sast: sast-report.json

security:dependency:
  stage: security
  script:
    - npm audit --audit-level=high
  allow_failure: true

docker:build:
  stage: build
  image: docker:24
  services:
    - docker:24-dind
  before_script:
    - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
  script:
    - docker build -t $IMAGE_TAG .
    - docker push $IMAGE_TAG
  only:
    - main
    - tags

deploy:staging:
  stage: deploy
  image: bitnami/kubectl:latest
  environment:
    name: staging
    url: https://staging.example.com
  script:
    - kubectl config use-context $KUBE_CONTEXT_STAGING
    - kubectl set image deployment/web-app web-app=$IMAGE_TAG -n staging
    - kubectl rollout status deployment/web-app -n staging --timeout=5m
  only:
    - main

deploy:production:
  stage: deploy
  image: bitnami/kubectl:latest
  environment:
    name: production
    url: https://example.com
  script:
    - kubectl config use-context $KUBE_CONTEXT_PRODUCTION
    - kubectl set image deployment/web-app web-app=$IMAGE_TAG -n production
    - kubectl rollout status deployment/web-app -n production --timeout=5m
  when: manual
  only:
    - tags
```

## Deployment Strategies

### Blue-Green Deployment

```yaml
# GitHub Actions
- name: Blue-Green Deployment
  run: |
    # Deploy to green environment
    kubectl apply -f k8s/green/
    kubectl rollout status deployment/app-green -n production

    # Run smoke tests
    npm run test:smoke -- --env=green

    # Switch traffic to green
    kubectl patch service app -n production -p '{"spec":{"selector":{"version":"green"}}}'

    # Keep blue for rollback
    echo "Blue environment kept for rollback"
```

### Canary Deployment

```yaml
# Deploy canary (10% traffic)
- name: Deploy Canary
  run: |
    kubectl apply -f k8s/canary/
    kubectl set image deployment/app-canary app=$IMAGE_TAG -n production

    # Monitor metrics
    sleep 300

    # Check error rate
    ERROR_RATE=$(curl -s "$PROMETHEUS_URL/api/v1/query?query=error_rate" | jq -r '.data.result[0].value[1]')

    if (( $(echo "$ERROR_RATE < 0.01" | bc -l) )); then
      # Promote canary to stable
      kubectl set image deployment/app-stable app=$IMAGE_TAG -n production
      kubectl scale deployment/app-canary --replicas=0 -n production
    else
      # Rollback canary
      kubectl scale deployment/app-canary --replicas=0 -n production
      exit 1
    fi
```

### Rolling Deployment

```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: app
spec:
  replicas: 10
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 2 # Max 2 pods above desired count
      maxUnavailable: 1 # Max 1 pod unavailable during update
  template:
    spec:
      containers:
        - name: app
          image: myapp:v2
          readinessProbe:
            httpGet:
              path: /health
              port: 8080
            initialDelaySeconds: 5
            periodSeconds: 5
```

## Best Practices

### Pipeline Design

- Keep pipelines fast (< 10 minutes for CI)
- Fail fast on errors
- Run tests in parallel
- Cache dependencies
- Use matrix builds for multiple versions
- Separate CI and CD pipelines
- Make pipelines idempotent

### Security

- Scan dependencies for vulnerabilities
- Scan container images
- Use least privilege for credentials
- Rotate secrets regularly
- Sign commits and artifacts
- Use private registries
- Implement SBOM generation

### Artifact Management

- Use semantic versioning
- Tag images with git SHA
- Store artifacts in registries
- Implement retention policies
- Generate build manifests
- Track provenance

### Monitoring & Observability

- Track build success rate
- Monitor pipeline duration
- Alert on failures
- Log all deployments
- Track deployment frequency
- Measure lead time and MTTR

## Anti-Patterns to Avoid

❌ **No automated tests**: Deployments without tests are risky
❌ **Manual deployments**: Automate all deployments
❌ **Shared credentials**: Use role-based access
❌ **No rollback strategy**: Always have a rollback plan
❌ **Long-running pipelines**: Keep pipelines fast
❌ **Environment drift**: Use IaC for all environments
❌ **No monitoring**: Track deployment health
❌ **Direct production access**: Deploy through pipelines only

## Reference Documentation

Detailed material lives alongside this skill and is read on demand:

- [GitHub Actions](references/GITHUB_ACTIONS.md) — Workflow Basics, Docker Build and Push, Deployment Workflow, Reusable Workflows, Composite Actions
- [Jenkins](references/JENKINS.md) — Declarative Pipeline, Shared Library

## Resources

- GitHub Actions: https://docs.github.com/en/actions
- Jenkins: https://www.jenkins.io/doc/
- GitLab CI: https://docs.gitlab.com/ee/ci/
- Argo CD: https://argo-cd.readthedocs.io/
- Tekton: https://tekton.dev/docs/

© personamanagmentlayer · Apache-2.0 · personamanagmentlayer/pcl

Похожие скиллы

Все скиллы по теме «DevOps и инфраструктура» →

Сначала — cicd-expert от других авторов.

cicd-expert martinholovsky Скилл cicd-expert для CI/CD на Claude Code: проектирует GitHub Actions, GitLab CI, Jenkins с гейтами безопасности и GitOps. Собирает и чинит пайплайны. CX Codex +1 650установок cicd-pipeline-skill TestMu AI Скилл cicd-pipeline-skill генерирует конфигурации CI/CD для автотестов: GitHub Actions, Jenkins, GitLab CI, Azure DevOps. Включает интеграцию с TestMu AI. CX Codex +1 290установок cicd-pipeline-setup aj-geddes Скилл cicd-pipeline-setup помогает агенту спроектировать CI/CD пайплайн: тесты, сборка артефактов, проверки безопасности и деплой по окружениям. CX Codex +1 505установок discover-cicd rand Скилл discover-cicd автоматически находит нужные навыки по работе с GitHub Actions, Jenkins, GitLab CI и другими системами сборки, когда вы пишете конфиг или пайплайн. CX Codex +1 109установок ci-cd ahmedasmar Скилл ci-cd помогает проектировать пайплайны GitHub Actions и GitLab CI, ускорять сборки кешированием и находить причины сбоев в тестах или деплое. CX Codex +1 367установок cicd-automation Seth Hobson Плагин cicd-automation для Claude Code настраивает CI/CD-пайплайны: конфигурирует GitHub Actions и GitLab CI, оркестрирует автоматический деплой. Создаёт или переписывает workflow. CX Codex ★ 42 780звёзд репо hunt-cicd Sachin Sharma Скилл hunt-cicd для Claude Code проверяет сборочные пайплайны: Jenkins, GitHub Actions, OIDC-доверие, состояние Terraform. Работает при открытом Jenkins или доступной GitHub-организации. CX Codex +1 ★ 16 193звёзд репо

Из того же набора104

Весь набор →
elixir-expert Скилл elixir-expert для Claude Code по Elixir, OTP и Phoenix с примерами кода и разбором конкурентных систем. Помогает править GenServer и LiveView. CX Codex +1 194установок looker-expert Скилл looker-expert по Looker для ассистента: разбирает LookML, explores, меры и PDT, подсказывает структуру модели и ловит двойной счёт строк на join. CX Codex +1 194установок ruby-expert Скилл ruby-expert для Claude Code помогает писать и разбирать код на Ruby, включая Rails и тесты RSpec. Подключается к задачам про Sinatra, гемы и метапрограммирование. CX Codex +1 193установок code-review-expert Скилл code-review-expert проводит многоуровневое код-ревью с акцентом на уязвимости OWASP, оптимизацию SQL-запросов и архитектурную чистоту кода. CX Codex +1 192установок terraform-expert Скилл terraform-expert для Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode, который даёт агенту экспертизу по Terraform: модули, remote state, жизненный цикл ресурсов. CX Codex +1 190установок go-expert Скилл go-expert для Claude Code задаёт агенту правила идиоматичного Go: горутины, каналы, отмена через context и обёртка ошибок. Помогает править бэкенд и разбирать утечки. CX Codex +1 190установок monitoring-expert Скилл monitoring-expert для Claude Code настраивает мониторинг, метрики и алертинг с Prometheus, Grafana, Loki и распределённой трассировкой. Помогает построить наблюдаемость с нуля и разобраться в её трёх столпах. CX Codex +1 189установок audit-expert Скилл audit-expert помогает проводить аудиты безопасности, ревью кода и проверки на соответствие SOC 2, GDPR, HIPAA и PCI-DSS. CX Codex +1 188установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой