A Claude Code slash command for adding CI/CD configuration to existing projects.
# Clone to your preferred location
git clone git@github.com:claude-commands/command-add-ci.git <clone-path>/command-add-ci
# Symlink (use full path to cloned repo)
ln -s <clone-path>/command-add-ci/add-ci.md ~/.claude/commands/add-ci.md/add-ci # Interactive CI setup
/add-ci github # GitHub Actions
/add-ci gitlab # GitLab CI
/add-ci --template=full # Comprehensive CI pipeline
/add-ci github --docker # Include Docker build
- Detects project type and existing configuration
- Selects appropriate CI provider
- Generates workflow configuration
- Adds supporting files (Dockerfile, etc.)
- Validates configuration
| Provider | Config Location |
|---|---|
| GitHub Actions | .github/workflows/ |
| GitLab CI | .gitlab-ci.yml |
| CircleCI | .circleci/config.yml |
| Azure Pipelines | azure-pipelines.yml |
| Template | Includes |
|---|---|
| basic | Lint, test, build |
| standard | + Caching, artifacts, parallel jobs |
| full | + Matrix testing, Docker, deploy |
CI/CD Configuration Added
Provider: GitHub Actions
Template: standard
Files created:
- .github/workflows/ci.yml
Pipeline stages:
1. Lint - ESLint checks
2. Test - Vitest with coverage
3. Build - TypeScript compilation
| Option | Description |
|---|---|
--template |
basic, standard, or full |
--docker |
Include Docker build/push |
--deploy |
Add deployment stage |
--matrix |
Multi-version testing |
- Claude Code with Opus 4.5 model access
cd <clone-path>/command-add-ci && git pull