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.
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-cdManual setup by platform
Claude Code
~/.claude/skills/ci-cd/SKILL.md
Cursor
~/.cursor/skills/ci-cd/SKILL.md
Codex CLI
~/.codex/skills/ci-cd/SKILL.md, or reference via codex.md instructions file
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
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
- CI platform: check for
.github/workflows/,.gitlab-ci.yml,bitbucket-pipelines.yml,Jenkinsfile,.circleci/config.yml. Default to GitHub Actions if none exists. - Runtime: Node.js, Python, Go, Rust, Java, Flutter, .NET
- Package manager: npm, yarn, pnpm, pip, poetry, cargo
- Test runner: vitest, jest, pytest, go test, cargo test
- Linter: eslint, prettier, ruff, golangci-lint, clippy
- Deploy target: Docker, Vercel, AWS, Railway, Fly.io, Heroku, Netlify
- 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/cacheor platform equivalent fornode_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: readunless 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 pruneornx affectedfor 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.
Security
Reviews (0)
More Deploy skills
Browse category →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.