1---2name: ci-cd-pipeline-review3enabled: true4description: |5 Use when performing ci cd pipeline review — reviews CI/CD pipeline6 configuration for reliability, speed, security, and best practices. Covers7 build optimization, test strategy, deployment patterns, secret management,8 artifact handling, and pipeline-as-code quality to improve developer9 experience and release confidence.10required_connections:11 - prefix: ci-cd12 label: "CI/CD Platform"13config_fields:14 - key: ci_cd_platform15 label: "CI/CD Platform"16 required: true17 placeholder: "e.g., GitHub Actions, GitLab CI, Jenkins, CircleCI"18 - key: primary_language19 label: "Primary Language/Framework"20 required: true21 placeholder: "e.g., Node.js, Java, Python, Go"22 - key: deployment_target23 label: "Deployment Target"24 required: false25 placeholder: "e.g., Kubernetes, AWS Lambda, EC2, Cloud Run"26features:27 - DEVOPS28 - CI_CD29 - AUTOMATION30metadata:31 source: https://skillmd.com/skills/cloudthinker-ai/ci-cd-pipeline-review32---3334# CI/CD Pipeline Review3536## Phase 1: Pipeline Architecture Assessment371. Map the full pipeline flow38 - [ ] Trigger mechanisms (push, PR, schedule, manual)39 - [ ] Build stages and their sequence40 - [ ] Test stages (unit, integration, e2e, performance)41 - [ ] Security scanning stages42 - [ ] Artifact creation and storage43 - [ ] Deployment stages (staging, canary, production)44 - [ ] Post-deployment validation452. Document pipeline dependencies and bottlenecks463. Measure total pipeline duration (P50, P95)4748### Pipeline Stage Timing4950| Stage | Duration (P50) | Duration (P95) | Failure Rate | Parallelizable |51|-------|---------------|----------------|-------------|---------------|52| Checkout/Setup | | | % | N/A |53| Build | | | % | [ ] |54| Unit Tests | | | % | [ ] |55| Integration Tests | | | % | [ ] |56| Security Scan | | | % | [ ] |57| Artifact Build | | | % | [ ] |58| Deploy Staging | | | % | [ ] |59| E2E Tests | | | % | [ ] |60| Deploy Prod | | | % | [ ] |61| **Total** | | | | |6263## Phase 2: Build Optimization641. Review build performance65 - [ ] Dependency caching configured and effective66 - [ ] Build cache (Docker layer cache, incremental builds)67 - [ ] Parallel execution where possible68 - [ ] Minimal base images for containers69 - [ ] Build matrix efficient (not redundant)70 - [ ] Runner/agent sizing appropriate712. Identify slow build steps and optimization opportunities7273## Phase 3: Test Strategy Review741. Evaluate test coverage and quality75 - [ ] Unit tests: coverage %, execution time76 - [ ] Integration tests: scope, reliability (flaky test rate)77 - [ ] E2E tests: critical path coverage, stability78 - [ ] Test parallelization and splitting79 - [ ] Test data management strategy80 - [ ] Flaky test handling (quarantine, retry, fix)812. Assess test feedback loop speed8283### Test Pyramid Assessment8485| Level | Count | Duration | Coverage | Flaky Rate | Quality |86|-------|-------|----------|----------|-----------|---------|87| Unit | | s | % | % | Good/Fair/Poor |88| Integration | | s | | % | |89| E2E | | s | critical paths | % | |90| Performance | | s | | % | |9192## Phase 4: Security & Compliance931. Review pipeline security94 - [ ] Secrets management (no hardcoded secrets, vault integration)95 - [ ] SAST (static analysis) scanning96 - [ ] SCA (dependency vulnerability) scanning97 - [ ] Container image scanning98 - [ ] DAST (dynamic) scanning for web apps99 - [ ] License compliance checking100 - [ ] SBOM generation101 - [ ] Pipeline permissions (least privilege)102 - [ ] Signed commits and artifacts1032. Review approval gates and compliance controls104105## Phase 5: Deployment Strategy Review1061. Assess deployment practices107 - [ ] Blue-green or canary deployment support108 - [ ] Automated rollback capability109 - [ ] Database migration handling110 - [ ] Feature flag integration111 - [ ] Deployment notification (Slack, email)112 - [ ] Post-deployment smoke tests113 - [ ] Environment promotion flow (dev → staging → prod)114 - [ ] Drift detection between environments1152. Review deployment frequency and success rate116117## Phase 6: Pipeline-as-Code Quality1181. Review pipeline configuration quality119 - [ ] DRY (reusable workflows, templates, shared libraries)120 - [ ] Version controlled pipeline definitions121 - [ ] Environment-specific configuration separation122 - [ ] Clear naming and documentation123 - [ ] Error handling and failure notifications124 - [ ] Pipeline self-testing (validate on PR)125126### Review Summary127128| Area | Score (1-5) | Key Finding | Recommendation | Priority |129|------|-----------|-------------|----------------|----------|130| Build Speed | | | | |131| Test Quality | | | | |132| Security | | | | |133| Deployment | | | | |134| Maintainability | | | | |135136## Counter-Rationalizations137138| Shortcut | Counter | Why |139|----------|---------|-----|140| "We can skip some steps for this case" | Adapt the workflow steps, don't skip them | Skipped steps are where incidents and oversights originate |141| "The user seems to already know what to do" | Complete all workflow phases with the user | The workflow catches blind spots that experience alone misses |142| "This is a minor case, full process is overkill" | Scale the process down, don't turn it off | Minor cases become major when unstructured; the process scales, not disappears |143| "I'll fill in the details later" | Complete each section before moving on | Deferred details are forgotten; real-time capture is more accurate |144| "The template output isn't necessary" | Always produce the structured output format | Structured output enables comparison, audit trails, and handoff to other teams |145146## Output Format147- **Pipeline Architecture Diagram**: Visual flow of all stages148- **Performance Report**: Stage timing and bottleneck analysis149- **Security Findings**: Vulnerabilities in pipeline configuration150- **Optimization Recommendations**: Prioritized improvements151- **Best Practices Checklist**: Compliance with CI/CD best practices152153## Action Items154- [ ] Map and document current pipeline architecture155- [ ] Measure stage timing and identify bottlenecks156- [ ] Implement build caching and parallelization157- [ ] Address security gaps in pipeline configuration158- [ ] Reduce flaky test rate to < 1%159- [ ] Implement automated rollback capability160- [ ] Document pipeline configuration and runbooks