cicd-skill
CI/CD pipelines with Git, GitHub Actions, GitLab CI, Jenkins, and deployment strategies.
When & Why to Use This Skill
This Claude skill automates the end-to-end software delivery lifecycle by managing CI/CD pipelines across major platforms like GitHub Actions, GitLab CI, and Jenkins. It streamlines Git workflows, enforces testing standards, and implements advanced deployment strategies such as Blue-Green and Canary releases to ensure high-quality, zero-downtime production updates while providing robust troubleshooting and rollback procedures.
Use Cases
- Automated Pipeline Orchestration: Setting up and managing complex workflows for building, testing, and deploying applications automatically upon code commits or pull requests.
- Advanced Deployment Strategies: Implementing sophisticated release patterns like Canary, Blue-Green, or Rolling updates to minimize deployment risks and ensure service availability.
- Git Workflow Standardization: Optimizing team collaboration through trunk-based development or GitFlow, including automated PR management and branch protection rules.
- Infrastructure Recovery: Rapidly diagnosing pipeline failures using structured logs and executing automated rollbacks to maintain system stability during failed deployments.
| name | cicd-skill |
|---|---|
| description | CI/CD pipelines with Git, GitHub Actions, GitLab CI, Jenkins, and deployment strategies. |
| sasmp_version | "1.3.0" |
| bonded_agent | 05-cicd-automation |
| bond_type | PRIMARY_BOND |
| - name | operation |
| type | string |
| required | true |
| enum | ["build", "test", "deploy", "rollback"] |
| default | "github-actions" |
| strategy | exponential_backoff |
| initial_delay_ms | 1000 |
| max_retries | 3 |
| logging | structured |
| metrics | enabled |
CI/CD Automation Skill
Overview
Master CI/CD pipelines for automated software delivery.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| platform | string | No | github-actions | CI/CD platform |
| operation | string | Yes | - | Pipeline operation |
Core Topics
MANDATORY
- Git workflows (trunk-based, GitFlow)
- Pull request best practices
- GitHub Actions workflows
- GitLab CI pipelines
- Deployment strategies
OPTIONAL
- Jenkins pipelines
- ArgoCD GitOps
- Artifact management
- Security scanning
ADVANCED
- Multi-environment promotion
- Feature flags
- Chaos engineering integration
- Custom actions/runners
Quick Reference
# Git
git checkout -b feature/name
git add -p
git commit -m "type: description"
git rebase -i HEAD~3
git push -u origin feature/name
# GitHub CLI
gh pr create --title "feat: add X"
gh pr checkout 123
gh pr merge --squash
gh run list
gh run view 12345 --log
# Rollback
kubectl rollout undo deployment/app
kubectl rollout history deployment/app
Deployment Strategies
| Strategy | Rollback | Use Case |
|---|---|---|
| Rolling | Slow | Low-risk |
| Blue-Green | Instant | Zero-downtime |
| Canary | Fast | High-risk |
Troubleshooting
Common Failures
| Symptom | Root Cause | Solution |
|---|---|---|
| Timeout | Slow build | Add caching |
| Test flaky | Unreliable test | Fix isolation |
| Secret missing | Not configured | Add in settings |
| Deploy failed | Auth issue | Check credentials |
Debug Checklist
- Check workflow syntax
- Review full logs
- Verify secrets set
- Test locally if possible
Recovery Procedures
Failed Deployment
- Rollback:
kubectl rollout undo - Identify issue in logs
- Fix and redeploy