.github/skills/deployment-automation/SKILL.md
CI/CD pipeline design, deployment strategies, and release automation. Use when implementing GitHub Actions, container deployments, release workflows, and infrastructure automation.
npx skillsauth add klintravis/copilotcustomizer deployment-automationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
✨ SKILL ACTIVATED: deployment-automation
Purpose: CI/CD pipeline design and deployment strategies
Functionality: Architecture planning, CI pipeline design, deployment patterns, monitoring setup
Output: Complete CI/CD pipeline specifications and automation workflows
Scope: Portable across VS Code, CLI, Claude, Cursor, and compatible agents
Systematic methodology for designing and implementing CI/CD pipelines, deployment strategies, and release automation. Covers GitHub Actions workflows, container orchestration, infrastructure-as-code patterns, and automated release processes.
Objective: Define deployment strategy and infrastructure
Strategy Options:
Blue-Green Deployment
Canary Deployment
Rolling Deployment
Feature Flags
Selection Matrix: | Factor | Blue-Green | Canary | Rolling | Feature Flag | |--------|-----------|--------|---------|--------------| | Complexity | Medium | High | Low | Medium | | Rollback Speed | Instant | Minutes | Minutes | Instant | | Cost | 2x | 1x | 1x | 1x | | Risk | Low | Low | Medium | Low |
Objective: Automate code validation and artifact creation
Pipeline Stages:
Push Code
↓ [Trigger]
1. Build
- Compile/transpile code
- Run linters
- Generate artifacts
↓ [Success]
2. Test
- Unit tests
- Integration tests
- Coverage reports
↓ [Success]
3. Security
- SAST (static analysis)
- Dependency scanning
- Container scanning
↓ [Success]
4. Artifact
- Build Docker image / packages
- Push to registry
- Create release artifacts
↓ [Success]
5. Deploy (Staging)
- Deploy to staging environment
- Run smoke tests
- Verify functionality
↓ [Approval Gate]
6. Deploy (Production)
- Execute deployment strategy
- Monitor health metrics
- Enable rollback if needed
GitHub Actions Example Structure:
name: CI/CD Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: npm run build
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Run tests
run: npm test
deploy:
needs: [build, test]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Deploy
run: npm run deploy
Objective: Manage configuration across environments
Environment Levels:
| Level | Purpose | Data | Secrets | Update Frequency | |-------|---------|------|---------|------------------| | Dev | Developer testing | Fake/seeded | Non-prod | Per commit | | Staging | Pre-production testing | Production-like | Non-prod | Per release candidate | | Production | Live user traffic | Real data | Prod secrets | Controlled releases |
Configuration Management:
Environment Variables
.env files for development (NOT committed)Secrets Rotation
Configuration-as-Code
# Example: Environment config
environments:
development:
database_url: postgresql://dev-db:5432/app_dev
log_level: DEBUG
cache_ttl: 300
production:
database_url: # from secret
log_level: ERROR
cache_ttl: 3600
Objective: Comprehensive validation before production
Test Layers:
Unit Tests
Integration Tests
End-to-End Tests
Performance Tests
Security Tests
Objective: Track health and performance in production
Key Metrics:
Availability:
- Uptime percentage (target: 99.9%+)
- Error rates (target: < 0.1%)
- Successful request rate
Performance:
- Response time (p50, p95, p99)
- Throughput (requests/second)
- Database query latency
Resources:
- CPU usage
- Memory usage
- Disk usage
- Network bandwidth
Business:
- User signups
- Transactions completed
- Feature adoption
Observability Stack:
Logs
Metrics
Traces
Alerts
Objective: Recover quickly from failed deployments
Rollback Approaches:
Instant Rollback (Blue-Green)
Gradual Rollback (Canary)
Database Rollback
Rollback Checklist
Objective: Systematic version releases
Version Strategy (Semantic Versioning):
MAJOR.MINOR.PATCH (e.g., 1.5.3)
MAJOR: Breaking changes
MINOR: New features (backward compatible)
PATCH: Bug fixes
Examples:
- 1.0.0 → 2.0.0 (major breaking change)
- 1.0.0 → 1.1.0 (new feature)
- 1.0.0 → 1.0.1 (bug fix)
Release Workflow:
Planning
Development
Staging
Release
Post-Release
name: Release
on:
workflow_dispatch: # Manual trigger
inputs:
version:
description: 'Release version'
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create tag
run: |
git tag ${{ github.event.inputs.version }}
git push origin ${{ github.event.inputs.version }}
- name: Build artifacts
run: npm run build
- name: Create release
uses: actions/create-release@v1
with:
tag_name: ${{ github.event.inputs.version }}
release_name: Release ${{ github.event.inputs.version }}
- name: Deploy to production
run: npm run deploy:prod
name: Deploy with Canary
jobs:
deploy:
steps:
- name: Deploy canary (10%)
run: kubectl set image deploy/app app=myapp:${{ github.sha }} --record
- name: Wait and monitor
run: |
for i in {1..5}; do
ERROR_RATE=$(curl https://metrics/error_rate)
if [ $ERROR_RATE -gt 1 ]; then
echo "High error rate detected: $ERROR_RATE"
kubectl rollout undo deploy/app
exit 1
fi
sleep 60
done
- name: Full rollout (100%)
run: kubectl set image deploy/app app=myapp:${{ github.sha }}
Works well with:
Typical workflow: repo-analysis discovers current deployment state → this skill designs target CI/CD architecture → planning creates migration roadmap → orchestration coordinates multi-phase rollout → documentation generates operational guides
Generated following Agent Skills standard (agentskills.io)
development
Deep repository analysis methodology for understanding codebase structure, dependencies, patterns, and change impact. Use when analyzing repositories for customization planning, refactoring, or understanding project architecture.
development
Strategic implementation planning methodology for software changes. Creates detailed, step-by-step execution plans with risk mitigation and validation strategies. Use when planning features, refactoring, or complex code changes.
testing
Design and generate conductor/subagent orchestrated systems for complex repositories. Covers Orchestra, Atlas, and Custom patterns with TDD lifecycle enforcement, quality gates, plan file architecture, and parallel execution strategies. Use when a project needs coordinated multi-agent workflows beyond simple handoff chains.
development
Structured technical documentation generation for software changes, implementations, and analyses. Creates clear, comprehensive documentation including change summaries, API docs, and technical reports. Use when documenting code changes, features, or system architecture.