In Claude (connector)install_skill("ci-pipeline-builder")
CLIlendskill install ci-pipeline-builder
SKILL.md
---
name: ci-pipeline-builder
description: Build CI/CD pipelines in GitHub Actions (or GitLab CI) — lint, test, build, deploy — tuned to minimize paid build minutes: path filters, dependency caching, concurrency cancellation, matrix only where needed, and deploys on tag/manual approval. Use for CI setup, slow or expensive pipelines, or 'add GitHub Actions'.
license: Proprietary — Lendskill original
---
# CI Pipeline Builder
## Principles
Run the cheapest checks first, only on changes that matter, and never twice for the same commit.
## Workflow pattern (GitHub Actions)
- Triggers: `pull_request` for checks; deploy on `push` of a tag or `workflow_dispatch` (manual) — not on every push to main unless the user wants that.
- `paths` / `paths-ignore` filters (docs-only changes skip builds).
- `concurrency: { group: ${{ github.workflow }}-${{ github.ref }}, cancel-in-progress: true }`.
- Cache dependencies (`actions/setup-node` with `cache: npm`, `actions/setup-python` with `cache: pip`, Gradle cache).
- Jobs: lint+typecheck → test → build; `needs:` so later jobs skip when earlier fail. `timeout-minutes` on every job.
- Pin action versions; least-privilege `permissions:`; secrets only in the deploy job, from repository/environment secrets.
- Mobile builds (Android/iOS) are expensive: run them on release tags or manual dispatch, not on every PR.
## Deliver
Workflow YAML files, which events trigger what, an estimate of runs per week, and how to run the same checks locally first.