Skip to content

claude-commands/command-add-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

command-add-ci

A Claude Code slash command for adding CI/CD configuration to existing projects.

Installation

# 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

Usage

/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

What it does

  1. Detects project type and existing configuration
  2. Selects appropriate CI provider
  3. Generates workflow configuration
  4. Adds supporting files (Dockerfile, etc.)
  5. Validates configuration

Supported Providers

Provider Config Location
GitHub Actions .github/workflows/
GitLab CI .gitlab-ci.yml
CircleCI .circleci/config.yml
Azure Pipelines azure-pipelines.yml

Templates

Template Includes
basic Lint, test, build
standard + Caching, artifacts, parallel jobs
full + Matrix testing, Docker, deploy

Output Format

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

Options

Option Description
--template basic, standard, or full
--docker Include Docker build/push
--deploy Add deployment stage
--matrix Multi-version testing

Requirements

  • Claude Code with Opus 4.5 model access

Updates

cd <clone-path>/command-add-ci && git pull

About

Add CI/CD configuration to existing project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published