Commandgo
/ci Command
Diagnose and fix CI/CD issues with ci-guardian
🔧 Diagnose CI Issues
CI Status
- Recent runs: !
gh run list --limit 5 2>/dev/null || echo "GitHub CLI not configured" - Workflow files: !
ls -la .github/workflows/*.yml | tail -5
Diagnostic Process
Use the ci-guardian agent to:
-
Analyze failing workflows: ${ARGUMENTS:-all}
-
Identify root causes:
- Test failures
- Linting violations
- Security scan issues
- Timeout problems
- Configuration errors
-
Coordinate fixes with specialized agents:
- go-tester for test failures
- go-formatter for linting issues
- dependency-auditor for security scans
- magex-expert for build problems
-
Optimize performance:
- Review caching strategy
- Check parallel execution
- Validate runner selection
-
Verify fixes:
- Test locally when possible
- Validate workflow syntax
- Check environment variables in .env.base and .env.custom
Provide specific fixes for identified issues.