xarchitecture
Design, analyze, and evolve system architecture using Domain-Driven Design, 12-Factor App, and proven patterns
Advanced CI/CD pipeline configuration, build automation, deployment orchestration, and optimization
How it fires
How this command gets triggered: by you, by Claude, or both.
/xpipelineContext preview
What this command does when you run it.
Advanced CI/CD pipeline configuration, build automation, deployment orchestration, and optimization
description: Advanced CI/CD pipeline configuration, build automation, deployment orchestration, and optimization tags: [pipeline, cicd, automation, deployment, orchestration, optimization, artifacts]
Configure and manage CI/CD pipelines based on the arguments provided in $ARGUMENTS.
**Analyze current pipeline:**
/xpipeline
**Initialize GitHub Actions pipeline:**
/xpipeline --init github
**Initialize GitLab CI pipeline:**
/xpipeline --init gitlab
**Initialize platform-agnostic pipeline:**
/xpipeline --init generic
**Validate pipeline best practices:**
/xpipeline --validate
**Configure deployment stage:**
/xpipeline --deploy staging
**Monitor pipeline health and DORA metrics:**
/xpipeline --monitor
**Rollback a deployment:**
/xpipeline --rollback staging
**Help and options:**
/xpipeline --help
If $ARGUMENTS contains "help" or "--help": Display this usage information and exit.
First, examine the current pipeline configuration and environment: !find . -name "*.yml" -o -name "*.yaml" | grep -E "(pipeline|workflow|ci|cd)" | head -10 !ls -la .github/workflows/ .gitlab-ci.yml Jenkinsfile azure-pipelines.yml buildspec.yml 2>/dev/null || echo "No CI/CD configurations found" !git branch --show-current 2>/dev/null || echo "No git repository"
Based on $ARGUMENTS, perform the appropriate pipeline operation:
If initializing pipeline (--init github): !mkdir -p .github/workflows !mkdir -p config/environments Create GitHub Actions workflow with configuration-driven stages:
If initializing GitLab CI (--init gitlab): !mkdir -p config/environments Create .gitlab-ci.yml with configuration-driven deployment:
If initializing platform-agnostic pipeline (--init generic): !mkdir -p config/environments !mkdir -p scripts/ci Create configuration templates that work with any CI/CD platform:
Detect project type and language: !find . -name "package.json" -o -name "requirements.txt" -o -name "pom.xml" -o -name "go.mod" | head -3 !which docker 2>/dev/null || echo "Docker not available" !git remote -v 2>/dev/null || echo "No git remotes configured"
If validating pipeline (--validate): !yamllint .github/workflows/*.yml 2>/dev/null || echo "No GitHub workflows found" !yamllint .gitlab-ci.yml 2>/dev/null || echo "No GitLab CI config found" !find config/environments -name "*.json" -exec jq . {} \; 2>/dev/null || echo "No environment configs found"
Validate pipeline best practices compliance:
If configuring stages: !find . -name "*.yml" -o -name "*.yaml" | xargs grep -l "stage\|job\|step" 2>/dev/null | head -5
Configure pipeline stages:
If configuring build: !find . -name "Dockerfile" -o -name "docker-compose.yml" | head -3 !find . -name "Makefile" -o -name "build.gradle" -o -name "webpack.config.js" | head -3 !ls -la package.json setup.py pyproject.toml 2>/dev/null || echo "No build configuration files"
Configure build automation:
If configuring testing: !find . -name "*test*" -type d | head -5 !find . -name "*.test.js" -o -name "test_*.py" | wc -l
Integrate comprehensive testing:
If deploying to environment (--deploy): !find . -name "*.yml" -o -name "*.yaml" | xargs grep -l "deploy\|release" 2>/dev/null | head -3 !kubectl version --client 2>/dev/null || docker --version 2>/dev/null || echo "No deployment tools detected"
Check deployment prerequisites:
Configure deployment automation:
Transform Claude Code into a complete development platform with 45 AI-powered commands that automate your entire software development workflow. Now with improved git identity management!
Design, analyze, and evolve system architecture using Domain-Driven Design, 12-Factor App, and proven patterns
Manage project configuration files, environment variables, and application settings
Continue an execution plan from where it left off across sessions
Interactive debugging support with error analysis and fix suggestions - integrates with Debug Specialist sub-agent for complex…