Coding
CI/CDDevOpsGitHub ActionspipelineautomationdeploymentCI/CD Pipeline Config Generator
A ready-to-commit CI/CD pipeline config with lint, test, build, and deploy stages tailored to your stack.
Prompt Template
Generate a CI/CD pipeline configuration for a [PROJECT_TYPE — e.g., Node.js API, Python Django app, React frontend] project hosted on [REPOSITORY_PLATFORM — e.g., GitHub, GitLab, Bitbucket] using [CI_PLATFORM — e.g., GitHub Actions, GitLab CI, CircleCI]. The pipeline must include these stages: (1) Install dependencies, (2) Run linting with [LINTER], (3) Run unit tests with [TEST_FRAMEWORK] and enforce a minimum [COVERAGE_THRESHOLD]% code coverage, (4) Build the production artifact, (5) Deploy to [DEPLOYMENT_TARGET] when pushing to the [DEPLOY_BRANCH] branch. Add environment variable placeholders for secrets (do not hardcode values). Include caching for dependencies to minimize build time. Output the complete configuration file with inline comments explaining each stage. Note any additional secrets or environment variables the team must configure in the CI platform UI.
How to use this prompt
- Copy the prompt template using the button above.
- Paste it into your preferred AI assistant (ChatGPT, Claude, Gemini, etc.).
- Replace all bracketed placeholders like
[TOPIC]with your specific details. - Send the prompt and refine the output as needed.
Advertisement