
cicd-automation
CI/CD pipeline plugin with GitHub Actions and GitLab CI templates plus secrets handling guidance.
- version
- 1.2.1
- GitHub stars
- 126
What it does
- Adds
/cicd-scaffoldcommand and thecicd-specialistagent for generating pipeline configuration files - Covers GitHub Actions workflows for CI, CD, release, and scheduled jobs, and GitLab CI multi-stage pipelines
- Includes secrets management practices and external secrets patterns using Vault, AWS Secrets Manager, and Kubernetes
- Designed for teams setting up new pipelines, moving between CI platforms, or adding deployment strategies
CI/CD pipeline configuration, GitHub Actions/GitLab CI workflow setup, and automated deployment pipeline orchestration
Add marketplace
/plugin marketplace add HermeticOrmus/LibreUIUX-Claude-CodeRun it inside Claude Code once, then install the plugin below.
Install
/plugin install cicd-automation@libreuiuxRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceDeployment Pipeline Design
Architecture patterns for multi-stage CI/CD pipelines with approval gates and deployment strategies.
Purpose
Design robust, secure deployment pipelines that balance speed with safety through proper stage organization and approval workflows.
When to Use
- Design CI/CD architecture
- Implement deployment gates
- Configure multi-environment pipelines
- Establish deployment best practices
- Implement progressive delivery
Pipeline Stages
Standard Pipeline Flow
┌─────────┐ ┌──────┐ ┌─────────┐ ┌────────┐ ┌──────────┐
│ Build │ → │ Test │ → │ Staging │ → │ Approve│ → │Production│
└─────────┘ └──────┘ └─────────┘ └────────┘ └──────────┘
Detailed Stage Breakdown
- Source - Code checkout
- Build - Compile, package, containerize
- Test - Unit, integration, security scans
- Staging Deploy - Deploy to staging environment
- Integration Tests - E2E, smoke tests
- Approval Gate - Manual approval required
- Production Deploy - Canary, blue-green, rolling
- Verification - Health checks, monitoring
- Rollback - Automated rollback on failure
Approval Gate Patterns
Pattern 1: Manual Approval
# GitHub Actions
production-deploy:
needs: staging-deploy
environment:
name: production
url: https://app.example.com
runs-on: ubuntu-latest
steps:
- name: Deploy to production
run: |
# Deployment commands
Pattern 2: Time-Based Approval
# GitLab CI
deploy:production:
stage: deploy
script:
- deploy.sh production
environment:
name: production
when: delayed
start_in: 30 minutes
only:
- main
Pattern 3: Multi-Approver
# Azure Pipelines
stages:
- stage: Production
dependsOn: Staging
jobs:
- deployment: Deploy
environment:
name: production
resourceType: Kubernetes
strategy:
runOnce:
preDeploy:
steps:
- task: ManualValidation@0
inputs:
notifyUsers: 'team-leads@example.com'
instructions: 'Review staging metrics before approving'
Reference: See assets/approval-gate-template.yml
Deployment Strategies
1. Rolling Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
spec:
replicas: 10
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 2
maxUnavailable: 1
Characteristics:
- Gradual rollout
- Zero downtime
- Easy rollback
- Best for most applications
2. Blue-Green Deployment
# Blue (current)
kubectl apply -f blue-deployment.yaml
kubectl label service my-app version=blue
# Green (new)
kubectl apply -f green-deployment.yaml
# Test green environment
kubectl label service my-app version=green
# Rollback if needed
kubectl label service my-app version=blue
Characteristics:
- Instant switchover
- Easy rollback
- Doubles infrastructure cost temporarily
- Good for high-risk deployments
3. Canary Deployment
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: my-app
spec:
replicas: 10
strategy:
canary:
steps:
- setWeight: 10
- pause: {duration: 5m}
- setWeight: 25
- pause: {duration: 5m}
- setWeight: 50
- pause: {duration: 5m}
- setWeight: 100
Characteristics:
- Gradual traffic shift
- Risk mitigation
- Real user testing
- Requires service mesh or similar
4. Feature Flags
from flagsmith import Flagsmith
flagsmith = Flagsmith(environment_key="API_KEY")
if flagsmith.has_feature("new_checkout_flow"):
# New code path
process_checkout_v2()
else:
# Existing code path
process_checkout_v1()
Characteristics:
- Deploy without releasing
- A/B testing
- Instant rollback
- Granular control
Pipeline Orchestration
Multi-Stage Pipeline Example
name: Production Pipeline
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build application
run: make build
- name: Build Docker image
run: docker build -t myapp:${{ github.sha }} .
- name: Push to registry
run: docker push myapp:${{ github.sha }}
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Unit tests
run: make test
- name: Security scan
run: trivy image myapp:${{ github.sha }}
deploy-staging:
needs: test
runs-on: ubuntu-latest
environment:
name: staging
steps:
- name: Deploy to staging
run: kubectl apply -f k8s/staging/
integration-test:
needs: deploy-staging
runs-on: ubuntu-latest
steps:
- name: Run E2E tests
run: npm run test:e2e
deploy-production:
needs: integration-test
runs-on: ubuntu-latest
environment:
name: production
steps:
- name: Canary deployment
run: |
kubectl apply -f k8s/production/
kubectl argo rollouts promote my-app
verify:
needs: deploy-production
runs-on: ubuntu-latest
steps:
- name: Health check
run: curl -f https://app.example.com/health
- name: Notify team
run: |
curl -X POST ${{ secrets.SLACK_WEBHOOK }} \
-d '{"text":"Production deployment successful!"}'
Pipeline Best Practices
- Fail fast - Run quick tests first
- Parallel execution - Run independent jobs concurrently
- Caching - Cache dependencies between runs
- Artifact management - Store build artifacts
- Environment parity - Keep environments consistent
- Secrets management - Use secret stores (Vault, etc.)
- Deployment windows - Schedule deployments appropriately
- Monitoring integration - Track deployment metrics
- Rollback automation - Auto-rollback on failures
- Documentation - Document pipeline stages
Rollback Strategies
Automated Rollback
deploy-and-verify:
steps:
- name: Deploy new version
run: kubectl apply -f k8s/
- name: Wait for rollout
run: kubectl rollout status deployment/my-app
- name: Health check
id: health
run: |
for i in {1..10}; do
if curl -sf https://app.example.com/health; then
exit 0
fi
sleep 10
done
exit 1
- name: Rollback on failure
if: failure()
run: kubectl rollout undo deployment/my-app
Manual Rollback
# List revision history
kubectl rollout history deployment/my-app
# Rollback to previous version
kubectl rollout undo deployment/my-app
# Rollback to specific revision
kubectl rollout undo deployment/my-app --to-revision=3
Monitoring and Metrics
Key Pipeline Metrics
- Deployment Frequency - How often deployments occur
- Lead Time - Time from commit to production
- Change Failure Rate - Percentage of failed deployments
- Mean Time to Recovery (MTTR) - Time to recover from failure
- Pipeline Success Rate - Percentage of successful runs
- Average Pipeline Duration - Time to complete pipeline
Integration with Monitoring
- name: Post-deployment verification
run: |
# Wait for metrics stabilization
sleep 60
# Check error rate
ERROR_RATE=$(curl -s "$PROMETHEUS_URL/api/v1/query?query=rate(http_errors_total[5m])" | jq '.data.result[0].value[1]')
if (( $(echo "$ERROR_RATE > 0.01" | bc -l) )); then
echo "Error rate too high: $ERROR_RATE"
exit 1
fi
Reference Files
references/pipeline-orchestration.md- Complex pipeline patternsassets/approval-gate-template.yml- Approval workflow templates
Related Skills
github-actions-templates- For GitHub Actions implementationgitlab-ci-patterns- For GitLab CI implementationsecrets-management- For secrets handling
Readme
CI/CD Automation Plugin
Build deployment pipelines with GitHub Actions, GitLab CI, and modern DevOps practices.
CI/CD Automation provides:
- 4 Skills - GitHub Actions, GitLab CI, secrets management, pipeline design
- 1 Agent - CI/CD specialist
- 1 Command - Pipeline scaffolding
Result: Automated, secure, fast deployment pipelines.
Quick Start
Invoke the Agent
@cicd-specialist set up GitHub Actions for a Python project
@cicd-specialist create GitLab CI with staging and production
@cicd-specialist implement blue-green deployment pipeline
Use Commands
/cicd-scaffold github-actions --language python --deploy vercel
The 4 Skills
1. GitHub Actions Templates
Production-ready workflows for any project
Common Workflows:
| Workflow | Trigger | Purpose |
|---|---|---|
| CI | push, PR | Test, lint, type-check |
| CD | merge to main | Deploy to production |
| Release | tag push | Build artifacts, publish |
| Scheduled | cron | Dependency updates, audits |
Example - Complete CI/CD:
name: CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install uv
- run: uv sync
- run: uv run pytest
deploy:
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2. GitLab CI Patterns
Powerful pipelines with GitLab's native CI
Key Concepts:
| Concept | Purpose |
|---|---|
| Stages | Define pipeline phases |
| Jobs | Individual tasks |
| Artifacts | Pass files between jobs |
| Cache | Speed up builds |
| Environments | Track deployments |
Example - Multi-Environment:
stages:
- test
- build
- deploy
variables:
DOCKER_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
test:
stage: test
script:
- pytest --cov
coverage: '/TOTAL.*\s+(\d+%)/'
build:
stage: build
script:
- docker build -t $DOCKER_IMAGE .
- docker push $DOCKER_IMAGE
deploy:staging:
stage: deploy
script:
- kubectl set image deployment/app app=$DOCKER_IMAGE
environment:
name: staging
url: https://staging.example.com
only:
- main
deploy:production:
stage: deploy
script:
- kubectl set image deployment/app app=$DOCKER_IMAGE
environment:
name: production
url: https://example.com
when: manual
only:
- main
3. Secrets Management
Secure handling of credentials and API keys
Best Practices:
| Practice | Implementation |
|---|---|
| Never commit secrets | Use .gitignore, git-secrets |
| Use environment variables | ${{ secrets.API_KEY }} |
| Rotate regularly | Automated rotation policies |
| Least privilege | Only needed secrets per job |
| Audit access | Review secret usage logs |
Secrets Storage Options:
| Platform | Solution |
|---|---|
| GitHub | Repository/Organization secrets |
| GitLab | CI/CD Variables (masked, protected) |
| AWS | Secrets Manager, Parameter Store |
| HashiCorp | Vault |
| Kubernetes | External Secrets Operator |
Example - External Secrets:
# Fetch secrets from AWS Secrets Manager
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: app-secrets
spec:
refreshInterval: 1h
secretStoreRef:
name: aws-secrets-manager
kind: SecretStore
target:
name: app-secrets
data:
- secretKey: database-url
remoteRef:
key: production/database
property: url
4. Deployment Pipeline Design
Patterns for reliable, fast deployments
Deployment Strategies:
| Strategy | Risk | Rollback | Use Case |
|---|---|---|---|
| Rolling | Low | Moderate | Default for most apps |
| Blue-Green | Very Low | Instant | Zero-downtime required |
| Canary | Very Low | Fast | Gradual rollout |
| Feature Flags | Lowest | Instant | Per-feature control |
Pipeline Stages:
1. Build
└── Compile, bundle, create artifacts
2. Test
├── Unit tests
├── Integration tests
└── Security scans
3. Stage
├── Deploy to staging
├── Run E2E tests
└── Performance tests
4. Production
├── Blue-green switch
├── Smoke tests
└── Monitoring check
Optimization Tips:
- Cache dependencies (node_modules, pip cache)
- Parallelize independent jobs
- Use matrix builds for multi-version testing
- Skip CI for docs-only changes
- Use self-hosted runners for speed
Plugin Structure
cicd-automation/
├── README.md # This file
│
├── skills/ # Knowledge base
│ ├── github-actions-templates/
│ │ └── SKILL.md # GitHub Actions patterns
│ ├── gitlab-ci-patterns/
│ │ └── SKILL.md # GitLab CI patterns
│ ├── secrets-management/
│ │ └── SKILL.md # Secrets handling
│ └── deployment-pipeline-design/
│ └── SKILL.md # Pipeline architecture
│
├── commands/ # Slash commands
│ └── cicd-scaffold.md # Pipeline scaffolding
│
└── agents/ # Specialist agents
└── cicd-specialist.md # CI/CD expert
Usage Examples
Example 1: New Project CI/CD
User: Set up CI/CD for a Python FastAPI project deploying to Fly.io
@cicd-specialist creates:
1. .github/workflows/ci.yml
- Run on push and PR
- Set up Python with uv
- Run tests, linting, type checking
- Cache dependencies
2. .github/workflows/deploy.yml
- Run on push to main
- Deploy to Fly.io
- Run smoke tests after deploy
3. Secrets needed:
- FLY_API_TOKEN (add to GitHub Secrets)
Example 2: Monorepo Pipeline
User: Create CI for a monorepo with frontend and backend
@cicd-specialist designs:
1. Path-based triggers
- frontend/** -> frontend tests + deploy
- backend/** -> backend tests + deploy
- shared/** -> all tests
2. Matrix strategy for efficiency
- Parallel jobs for each service
- Shared caching
3. Deployment coordination
- Deploy backend first
- Then frontend
- Rollback if frontend fails
Example 3: Security Pipeline
User: Add security scanning to our pipeline
@cicd-specialist adds:
1. SAST (Static Analysis)
- Semgrep for code patterns
- CodeQL for deep analysis
2. Dependency Scanning
- npm audit / pip-audit
- Dependabot alerts
3. Container Scanning
- Trivy for Docker images
- Fail on HIGH/CRITICAL
4. Secret Detection
- git-secrets pre-commit
- TruffleHog in CI
When to Use This Plugin
Perfect For:
- Setting up new CI/CD pipelines
- Migrating between CI platforms
- Implementing deployment strategies
- Adding security to pipelines
- Optimizing slow builds
Combines Well With:
- cloud-infrastructure - Infrastructure CI/CD
- kubernetes-operations - K8s deployments
- security-scanning - Security automation
- deployment-validation - Post-deploy checks
Platform Reference
| Platform | Config File | Runner |
|---|---|---|
| GitHub Actions | .github/workflows/*.yml | GitHub-hosted / self-hosted |
| GitLab CI | .gitlab-ci.yml | GitLab.com / self-hosted |
| CircleCI | .circleci/config.yml | Cloud / self-hosted |
| Jenkins | Jenkinsfile | Self-hosted |
Quick Reference
GitHub Actions Syntax
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: npm test
GitLab CI Syntax
stages:
- test
- deploy
test:
stage: test
script:
- npm test
deploy:
stage: deploy
script:
- npm run deploy
only:
- main
Common Optimizations
# Cache dependencies
- uses: actions/cache@v4
with:
path: ~/.cache/uv
key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
# Skip CI for certain changes
on:
push:
paths-ignore:
- '**.md'
- 'docs/**'
License
Part of the LibreUIUX project - MIT License
"Deployment should be boring. If it's exciting, something is wrong."
Details
- Marketplace
- HermeticOrmus/LibreUIUX-Claude-Code
- Source
- plugins/cicd-automation
- Author
- Seth Hobson
- Category
- Infrastructure
- License
- MIT
- Keywords
- ci-cd, automation, pipeline, github-actions, gitlab-ci
- Listed since
- Apr 7, 2026
More from HermeticOrmus/LibreUIUX-Claude-Code
All 71- cloud-infrastructurev1.2.1
- code-documentationv1.2.0
- code-refactoringv1.2.0
- code-review-aiv1.2.0
- codebase-cleanupv1.2.0
- comprehensive-reviewv1.2.1
- content-marketingv1.2.0
- context-managementv1.2.0
- customer-sales-automationv1.2.0
- data-engineeringv1.2.1
- data-validation-suitev1.2.0
- database-cloud-optimizationv1.2.0
- database-designv1.2.0
- database-migrationsv1.2.0
- debugging-toolkitv1.2.0
- dependency-managementv1.2.0
- deployment-strategiesv1.2.0
- deployment-validationv1.2.0
- design-masteryv1.1.0
- developer-essentialsv1.0.0
- distributed-debuggingv1.2.0
- documentation-generationv1.2.0
- error-debuggingv1.2.0
- error-diagnosticsv1.2.0
Similar to cicd-automation
More DevOps & Cloud
devops-ci-cdPluginmarslanalvi/SkillsStack5 starsCI/CD pipelines, GitHub Actions, GitLab CI, release and deployment automation
cicd-pipeline-builderPluginglincker/claude-code-marketplace38 starsGenerate CI/CD pipelines for GitHub Actions, GitLab CI with best practices
cicd-pipeline-setupSkillaj-geddes/useful-ai-prompts505 installsPipeline design guide covering GitHub Actions, GitLab CI, Jenkins, and CircleCI for test, build, and deploy workflows.
gitlab-ciPluginTheBushidoCollective/han201 starsValidation and quality enforcement for GitLab CI/CD pipeline configurations using glab CLI.
github-actions-pluginPluginlaurigates/claude-plugins60 starsGitHub Actions CI/CD - workflows, authentication, inspection, auto-fix