CI/CD Automation
GitHub Actions workflows, CI/CD patterns, pipeline optimization, and failure analysis. Use when working with CI/CD pipelines, GitHub Actions, or deployment automation.
CI/CD Automation
Version: 1.0.0 | License: MIT
Tags: devops cicd github-actions automation
CI/CD Automation Skill
Comprehensive knowledge for GitHub Actions workflows, CI/CD pipeline optimization, and deployment automation.
When to Activate
Activate this skill when:
- Working with GitHub Actions workflows
- Debugging CI/CD pipeline failures
- Optimizing build/test/deploy times
- Setting up new CI/CD pipelines
- Managing secrets and environment variables
Core Capabilities
GitHub Actions
- Workflow syntax and best practices
- Job dependencies and parallelization
- Caching strategies (npm, Docker layers, etc.)
- Matrix builds for multi-platform testing
- Reusable workflows and composite actions
Pipeline Optimization
- Identify bottlenecks via timing analysis
- Implement caching for dependencies
- Parallelize independent steps
- Reduce artifact sizes
- Optimize container images
Failure Analysis
- Parse error logs for root causes
- Identify common failure patterns
- Recommend fixes for typical issues
- Track flaky tests
Secret Management
- GitHub Secrets best practices
- Environment-specific secrets
- OIDC for cloud provider auth
- Secret rotation strategies
References
- GitHub Actions Patterns
- Deployment Strategies
- Secret Management
- Pipeline Optimization
- Failure Analysis
Quick Reference
Basic Workflow Structure
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm testCaching Dependencies
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-Parallel Jobs
jobs:
lint:
runs-on: ubuntu-latest
steps: [...]
test:
runs-on: ubuntu-latest
steps: [...]
build:
needs: [lint, test]
runs-on: ubuntu-latest
steps: [...]CLI Tools
Required:
gh- GitHub CLI for workflow managementgit- Version control
Installation (macOS):
brew install gh git
gh auth login # Authenticate with GitHubInstallation (Linux):
# GitHub CLI
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update && sudo apt install gh gitCommands:
gh workflow list # List workflows
gh run list --workflow=ci.yml # List runs
gh run view <id> --log-failed # View failed logs
gh run rerun <id> # Rerun workflowReferences
Pipeline Optimization
Reference documentation
Secret Management
Reference documentation
Failure Analysis
Reference documentation
Deployment Strategies
Reference documentation
Github Actions Patterns
Reference documentation
Sequential Thinking
Apply structured, reflective problem-solving for complex tasks requiring multi-step analysis, revision capability, and hypothesis verification.
Docs Seeker
Search technical documentation using executable scripts to detect query type, fetch from llms.txt sources (context7.com), and analyze results. Use when user needs: (1) Topic-specific documentation (fe