ci-setuplisted
Install: claude install-skill manastalukdar/ai-devstudio
# CI/CD Pipeline Setup
I'll set up a production-ready CI/CD pipeline with automated testing, linting, and deployment workflows.
**Supported Platforms:**
- GitHub Actions (auto-detected from .git/config)
- GitLab CI (.gitlab-ci.yml)
- CircleCI (circle CI config)
- Jenkins (Jenkinsfile)
## Token Optimization
**Status:** ✅ Fully Optimized (Phase 2 Batch 2, 2026-01-26)
**Target Reduction:** 60% (2,000-3,500 → 600-1,500 tokens)
### Optimization Strategies
**1. Template-Based CI Generation (Primary: 1,200 token savings)**
- **Problem:** Reading existing CI configs and iterating on them wastes 1,500-2,000 tokens
- **Solution:** Generate complete CI configs using bash heredocs and templates
- **Implementation:**
- Pre-built templates for GitHub Actions, GitLab CI, CircleCI, Jenkins
- Bash-based variable substitution for test/lint/build commands
- No file reads required - pure generation from detected project state
- Platform-specific templates with best practices built-in
- **Savings:** 1,200 tokens (70% of config generation cost)
- **Trade-off:** Templates may need updates for new CI features (acceptable for 70% savings)
**2. Git Provider Auto-Detection (300 token savings)**
- **Problem:** Asking user for platform or scanning multiple config files
- **Solution:** Detect from git remote URL in single bash command
- **Implementation:**
```bash
REMOTE=$(git remote get-url origin 2>/dev/null || echo "")
if echo "$REMOTE" | grep -q "github.com"; then CI_PLATFORM="gi