ci-setup — Claude Code command: what it does, how to install
ci-setup — a Claude slash command that builds out a CI/CD pipeline: it reads your stack, picks a platform and writes the config for tests, Docker and deploys.
no license ★ 1,357 updated 2026-03-01
.claude/commands/ci-setup.mdWhat ci-setup does
The command takes the agent through CI/CD setup in stages: it inspects the stack and the deploy requirements, picks a platform such as GitHub Actions, GitLab CI, Jenkins, CircleCI, Azure DevOps or AWS CodePipeline, then writes the pipeline config. Whatever you type after the call lands in $ARGUMENTS and shapes that plan.
20 steps sit inside: a test matrix, dependency caching, a multi-stage Dockerfile, release strategies like blue-green and canary, database migrations, vulnerability scanning, rollback, Slack or Teams notifications, deployment audits. YAML samples cover GitHub Actions and GitLab CI, so you are not starting from an empty file.
One step needs a secret: the Snyk scan reads SNYK_TOKEN from repository settings, and the job fails without it. Closing tips stay short: catch failures early, let independent jobs run side by side.
What it helps with
- scaffold a GitHub Actions pipeline from scratch
- pick a CI platform that fits the stack
- wire up secrets and per-environment variables
- add a multi-stage
Dockerfileand build caching - set up rollback and deploy failure alerts
Example prompts for the agent
/ci-setupNode.js app, tests run withnpm test, deploy to staging fromdevelop/ci-setupbuild a GitHub Actions pipeline with a Node version matrix andnode_modulescaching/ci-setupadd vulnerability scanning and automatic rollback when a deploy fails
How to install ci-setup
Manually: put the files in place
.claude/commands/ci-setup.mdCall it with /ci-setup. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/ci-setup.mdCall it with /prompts:ci-setup. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/ci-setup.prompt.mdManually: put the files in place
.gemini/commands/ci-setup.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about ci-setup
How do I install ci-setup in Claude Code?
Place the file at .claude/commands/ci-setup.md inside your project. The command is then available as /ci-setup.
What does ci-setup do?
It takes the agent through CI/CD setup: project analysis, platform choice, pipeline config, environments, tests, Docker and deploys.
What does the vulnerability scanning step need?
A SNYK_TOKEN secret in the repository settings. The Snyk step reads secrets.SNYK_TOKEN and fails without it.