# CI CD Setup

> Set up continuous integration and delivery pipelines with automated quality gates and safe deployments.

- Skill: `rahulrachhoya/ci-cd-setup` (Agent Skill)
- Install (CLI): `npx skillmds@latest add rahulrachhoya/ci-cd-setup`
- Raw SKILL.md: https://api.skillmd.com/api/skills/rahulrachhoya/ci-cd-setup/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: RahulRachhoya (https://skillmd.com/u/rahulrachhoya)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/rahulrachhoya/ci-cd-setup

---


# CI/CD Setup

## Pipeline Stages
1. **Lint** — style checks, formatting, static analysis
2. **Type check** — mypy, TypeScript compiler
3. **Test** — unit tests, integration tests, coverage report
4. **Build** — compile, bundle, containerize
5. **Security scan** — dependency audit, SAST, secrets scan
6. **Deploy** — staging → automated tests → production (with manual gate)

## Quality Gates
- All tests must pass
- Lint must be clean
- No new critical/high vulnerabilities
- Test coverage doesn't decrease
- Build succeeds

## Deployment Strategies
- **Blue-green**: two identical environments, switch traffic
- **Canary**: roll out to small percentage first, monitor, then full rollout
- **Feature flags**: deploy code disabled, enable per-user/group
- **Rollback plan**: every deployment has a tested rollback

## CI Config
```yaml
name: CI
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: pip install -e ".[dev]"
      - run: ruff check src/
      - run: pytest tests/ -v
```

