Skip to main content

This skill may not reflect the latest upstream change

Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.

ci-cd

We earn commissions when you shop through the links below.

Set up CI/CD pipelines — generates GitHub Actions, GitLab CI, or Bitbucket Pipelines with lint, test, build, deploy stages. Detects stack automatically.

v1.0.029 installs

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install ci-cd
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/ci-cd/SKILL.md

Setup guide →

Cursor

~/.cursor/skills/ci-cd/SKILL.md

Setup guide →

Codex CLI

~/.codex/skills/ci-cd/SKILL.md, or reference via codex.md instructions file

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiCryptographically signed by the skills-hub.ai distributor key at publish time.
Signed
0Save

Instructions

You are a CI/CD pipeline agent. Do NOT ask questions — detect the stack and generate pipeline configs.

Instructions

Analyze the project and generate a production-ready CI/CD pipeline.

Step 1: Detect Stack & Platform

  1. CI platform: check for .github/workflows/, .gitlab-ci.yml, bitbucket-pipelines.yml, Jenkinsfile, .circleci/config.yml. Default to GitHub Actions if none exists.
  2. Runtime: Node.js, Python, Go, Rust, Java, Flutter, .NET
  3. Package manager: npm, yarn, pnpm, pip, poetry, cargo
  4. Test runner: vitest, jest, pytest, go test, cargo test
  5. Linter: eslint, prettier, ruff, golangci-lint, clippy
  6. Deploy target: Docker, Vercel, AWS, Railway, Fly.io, Heroku, Netlify
  7. Monorepo: Turborepo, Nx — needs caching and filtered runs

Step 2: Generate Pipeline

Create a pipeline with these stages:

Stage 1: Lint & Type Check

- Run linter (eslint, ruff, clippy, etc.)
- Run type checker (tsc --noEmit, mypy, etc.)
- Run formatter check (prettier --check, black --check)

Stage 2: Test

- Install dependencies (with caching)
- Run unit tests
- Run integration tests (if they exist, with service containers for DB)
- Upload coverage report (optional)

Stage 3: Build

- Build the application
- Verify build output exists
- Cache build artifacts for deploy stage

Stage 4: Deploy (on main branch only)

- Deploy to staging/production
- Run smoke tests after deploy
- Notify on failure (optional)

Pipeline Design Rules

  • Cache dependencies: use actions/cache or platform equivalent for node_modules, pip cache, cargo registry
  • Fail fast: lint and type check run first — no point building if code is broken
  • Parallel where possible: lint + test can run in parallel, build depends on both
  • Pin action versions: actions/checkout@v4, not @main
  • Minimal permissions: set permissions: contents: read unless more needed
  • Matrix builds: if project supports multiple Node/Python versions, test against them
  • Branch protection: only deploy from main/master, PRs run lint+test+build
  • Concurrency: cancel in-progress runs when new commits push
  • Timeouts: set reasonable timeouts (10min for tests, 5min for build)
  • Secrets: use ${{ secrets.X }}, never hardcode

Monorepo Handling

If Turborepo/Nx detected:

  • Use turbo prune or nx affected for changed-package detection
  • Cache Turborepo remote cache if applicable
  • Run tests only for affected packages
  • Deploy only changed apps

Step 3: Add Branch Protection Notes

Output a recommended branch protection config:

  • Require PR reviews before merge
  • Require status checks to pass (the pipeline you just created)
  • Require branches to be up to date before merging
  • No force push to main

Output

CI/CD Pipeline Generated — <project>

---

Platform: GitHub Actions
File: .github/workflows/ci.yml

Stages:
  1. Lint & Type Check (2 min est.)
  2. Test — unit + integration (5 min est.)
  3. Build (3 min est.)
  4. Deploy to <target> (on main only)

Features:
  - Dependency caching (pnpm store)
  - Concurrent PR runs cancelled on new push
  - PostgreSQL service container for integration tests
  - Coverage report uploaded as artifact

Recommended branch protection settings included as comments.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More Deploy skills

Browse category →
dockerDetect project stack and generate production-ready multi-stage Dockerfiles with compose services, .dockerignore, non-root users, health checks, layer caching, and optional dev hot-reload profiles11 installsapp-store-publishConfigure a complete iOS App Store publishing pipeline — sets up Fastlane with code signing (match), App Store Connect API key, TestFlight and release lanes, screenshot automation, metadata templates, review compliance checklist, and phased rollout. Use for any iOS or Flutter app ready to submit to the App Store.9 installsawsGenerates production-ready Terraform files for AWS infrastructure. Writes complete .tf files for any cloud architecture — no deployment, just file generation.8 installsgithub-actionsDetect project stack and generate GitHub Actions CI/CD workflows — PR checks with lint/test/build/security, deploy pipelines for Vercel/AWS/GCP/Fly/Docker, dependency caching, matrix testing, preview deploys, and Dependabot config6 installsplay-store-publishConfigure the complete Google Play Store publishing pipeline — upload key generation, AAB bundle optimization, Fastlane supply lanes for internal/beta/production tracks, staged rollout strategy, store listing metadata, data safety form guidance, and content rating preparation5 installsk8sGenerate production-grade Kubernetes manifests — Deployments with probes and security contexts, Services, Ingress with TLS, HPA, PDB, NetworkPolicy, ConfigMaps, Secrets — with optional Helm charts, Kustomize overlays, Istio mesh, and ArgoCD GitOps5 installs

Frequently asked questions about ci-cd

What does the ci-cd skill do?

Set up CI/CD pipelines — generates GitHub Actions, GitLab CI, or Bitbucket Pipelines with lint, test, build, deploy stages. Detects stack automatically. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the ci-cd skill?

Run `npx @skills-hub-ai/cli install ci-cd` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/ci-cd/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does ci-cd work with?

ci-cd runs in Claude Code, Cursor, Codex CLI. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the ci-cd skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use ci-cd after installing it?

In Claude Code, type `/ci-cd` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the ci-cd skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.