agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Generate comprehensive CI/CD workflows with intelligent technology stack detection and best practices
How it fires
How this command gets triggered: by you, by Claude, or both.
/ci-genContext preview
What this command does when you run it.
Generate comprehensive CI/CD workflows with intelligent technology stack detection and best practices
allowed-tools: Read, Write, Bash(fd:*), Bash(rg:*), Bash(git:*), Bash(jq:*), Bash(yq:*), Bash(gdate:*) name: "Ci Gen" description: "Generate comprehensive CI/CD workflows with intelligent technology stack detection and best practices" author: "wcygan" tags: ["ops","ci"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
Generate comprehensive CI/CD workflow configurations tailored to the project's technology stack with intelligent detection and industry best practices.
STEP 1: Initialize CI generation session and technology detection
{
"sessionId": "$SESSION_ID",
"timestamp": "$(gdate -Iseconds 2>/dev/null || date -Iseconds)",
"arguments": "$ARGUMENTS",
"phase": "detection",
"technologies": [],
"platform": "github",
"template": "standard",
"generated_files": []
}TRY:
**Technology Detection Logic:**
# Core technology detection go_detected=$(fd 'go\.mod$' . 2>/dev/null | head -1) rust_detected=$(fd 'Cargo\.toml$' . 2>/dev/null | head -1) java_detected=$(fd '(pom\.xml|build\.gradle)$' . 2>/dev/null | head -1) node_detected=$(fd 'package\.json$' . 2>/dev/null | head -1) deno_detected=$(fd 'deno\.json$' . 2>/dev/null | head -1) python_detected=$(fd '(requirements\.txt|pyproject\.toml)$' . 2>/dev/null | head -1) docker_detected=$(fd 'Dockerfile$' . 2>/dev/null | head -1) k8s_detected=$(fd -t d 'k8s|kubernetes' . 2>/dev/null | head -1)
CATCH (detection_failed):
STEP 2: Parse arguments and configure CI generation parameters
**Argument Processing:**
# Extract CI configuration from arguments platform=$(echo "$ARGUMENTS" | rg --only-matching 'platform=([^\s]+)' -r '$1' 2>/dev/null || echo "github") template=$(echo "$ARGUMENTS" | rg --only-matching 'template=([^\s]+)' -r '$1' 2>/dev/null || echo "standard") update_mode=$(echo "$ARGUMENTS" | rg --quiet 'update' && echo "true" || echo "false") security_focus=$(echo "$ARGUMENTS" | rg --quiet 'security' && echo "true" || echo "false")
STEP 3: Intelligent CI workflow generation with technology-specific optimizations
Think deeply about optimal CI/CD patterns for the detected technology stack and project requirements.
**Technology-Specific Generation:**
CASE detected_technologies:
WHEN "go":
WHEN "rust":
WHEN "java":
WHEN "node" OR "deno":
WHEN "python":
STEP 4: Generate CI workflow files with validation
TRY:
**File Generation Process:**
# Create workflow directory mkdir -p .github/workflows # Generate primary workflow based on technology workflow_file=".github/workflows/ci.yml" # Technology-specific workflow generation if [ -n "$go_detected" ]; then # Generate Go CI workflow workflow_name="Go CI/CD Pipeline" elif [ -n "$rust_detected" ]; then # Generate Rust CI workflow workflow_name="Rust CI/CD Pipeline" elif [ -n "$java_detected" ]; then # Generate Java CI workflow workflow_name="Java CI/CD Pipeline" fi
CATCH (generation_failed):
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies