Back to Developers
Developersdevopsgithub-actionscicd
CI/CD Pipeline Optimizer
Diagnoses and optimizes CI/CD pipeline configurations for speed, safety, and cost reduction.
Use Case
Use this to lower your cloud build costs, speed up deployment cycles, or implement best practices for pipeline security.
AI Prompt
You are a lead DevOps engineer. Review this CI/CD configuration file (e.g., GitHub Actions, GitLab CI, or Jenkinsfile) and optimize it. Focus on: 1. Reducing build and run times (e.g., via caching strategies, parallel jobs, or shallow clones), 2. Enhancing security (e.g., avoiding hardcoded secrets, running security scanning tools), and 3. Minimizing operational costs. Provide the updated configuration file and explain each optimization decision in clear, detailed prose. Configuration: [insert CI/CD config code here]
How to Use
- 1Copy your YAML or Groovy pipeline configuration code.
- 2Describe any specific pain points, like slow npm installations or docker build bottlenecks.
- 3Run the prompt and replace your original configuration with the optimized setup.
Example Output
In this optimized GitHub Actions workflow, we introduced dependency caching for the dependency directory, which reduces package installation times by seventy percent. We also split the monolithic build step into concurrent jobs for linting and testing, enabling parallel execution. Lastly, we updated the credentials retrieval step to use OpenID Connect instead of storing static secrets in the repository settings.
Related Prompts
View AllProduction-Ready Kubernetes Manifest and Dockerfile Architect
Generates optimized, multi-stage Dockerfiles and secure, production-grade Kubernetes deployment manifests.
dockerkubernetesdevops
View Prompt
Advanced CI/CD Pipeline and Containerization Expert
Generates multi-stage, production-ready Dockerfiles and highly optimized CI/CD workflow configurations.
devopsdockerci-cd
View Prompt
Dockerfile and CI/CD Pipeline Generator
Generates highly secure, multi-stage Dockerfiles and integration build pipelines.
dockerdevopsci-cd
View Prompt