Examples & Use Cases
Real-world scenarios demonstrating CI-Copilot's pipeline generation workflow.
Basic: Create CI/CD Pipeline​
Objective: Generate a CI/CD pipeline for an existing repository.
The Request​
Create ci/cd pipeline for talkops-ai/ci-copilot
Flow​
- Context Detector connects to GitHub, fetches the repo, and analyzes it — language (Python), dependencies, existing CI
- Builds a CISpec with stages (lint, test, build)
- Presents the plan for approval (HITL gate 1)
- Policy Validator checks security and compliance
- Renderer generates GitHub Actions YAML, validates with actionlint
- Presents the final pipeline for approval (HITL gate 2)
- On approval, commits to a branch and opens a PR
With Specific Requirements​
Objective: Generate a pipeline with custom capabilities.
The Request​
Setup CI for my-org/payments-api with security scanning,
Docker image builds on push to main, and 80% coverage threshold.
What CI-Copilot Does​
- Security scanning — Adds a security scan job (e.g., Trivy, Snyk)
- Docker builds — Configures Docker build and push on
pushtomain - Coverage threshold — Adds a test job with 80% coverage enforcement
The Context Detector infers the stack (e.g., Node.js, Python) and the Renderer produces idiomatic YAML with the requested capabilities.
Multi-Language Support​
CI-Copilot supports 8 languages out of the box:
| Language | Package Manager | Detection |
|---|---|---|
| Node.js | npm, yarn, pnpm | package.json |
| Python | pip, uv, poetry | pyproject.toml, requirements.txt |
| Go | go mod | go.mod |
| Java | Maven, Gradle | pom.xml, build.gradle |
| Rust | Cargo | Cargo.toml |
| Ruby | Bundler | Gemfile |
| PHP | Composer | composer.json |
| .NET | dotnet | *.csproj |
Example: Python FastAPI App​
Create GitHub Actions for my-org/fastapi-backend
CI-Copilot detects Python, uv/poetry, and generates:
- Lint (ruff, mypy)
- Test (pytest with coverage)
- Build (Docker if Dockerfile exists)
- Proper caching for pip/uv dependencies
Private Repositories​
CI-Copilot works with private repos. Your GITHUB_PERSONAL_ACCESS_TOKEN needs repo scope.
Create CI pipeline for my-org/private-app
The Context Detector uses the GitHub MCP Server with your PAT to fetch repo contents and create the PR.