| name | ci |
| description | Detect/generate/debug CI pipeline config (GitHub Actions, GitLab CI). Triggers: CI setup, build pipeline, GitHub Actions config, debug CI, GitLab CI. |
| effort | medium |
| disable-model-invocation | true |
| argument-hint | [platform] |
| allowed-tools | Bash, Read, Write |
| agent | devops-implementer |
| context | fork |
| scripts | ["scripts/ci-detect.py"] |
/ci - CI/CD Pipeline Management
$ARGUMENTS
What This Command Does
Generate, update, or troubleshoot CI/CD pipeline configuration based on project type.
Project context
- CI config: !
cat .github/workflows/*.yml 2>/dev/null || cat .gitlab-ci.yml 2>/dev/null || echo "no-ci"
CI Detection Script
Detect CI platform and analyze configuration:
python3 ${CLAUDE_SKILL_DIR}/scripts/ci-detect.py [directory]
Returns JSON with:
platform - detected CI platform (github-actions, gitlab-ci, jenkins, bitbucket, circleci)
config_files[] - CI config file paths
project_type - detected project type (python, node, flutter, go, rust, php, docker)
jobs_found[] - job/stage names extracted from config
stages_detected[] - best-practice stages found (lint, test, build, deploy)
missing_stages[] - recommended stages not yet configured
suggested_template - pointer to ci-cd-patterns skill for templates
Auto-Detection
| File Found | Project Type | Pipeline |
|---|
package.json | Node.js/TypeScript | npm ci, lint, test, build |
pyproject.toml / setup.py | Python | pip install, ruff, mypy, pytest |
pubspec.yaml | Flutter/Dart | dart analyze, flutter test, build |
composer.json | PHP | composer install, phpstan, phpunit |
go.mod | Go | go vet, go test, go build |
Cargo.toml | Rust | cargo clippy, cargo test, cargo build |
Dockerfile | Docker | Build and push image |
Supported Platforms
- GitHub Actions (default):
.github/workflows/ci.yml