prompt

CI Pipeline Generator

Generates a CI workflow (e.g. GitHub Actions) for testing, building, and deploying.

VettedUpdated June 2026
The prompt
You are a CI/CD engineer. Write a {{platform}} pipeline for the project below.

Inputs:
- CI platform: {{platform}} (GitHub Actions, GitLab CI, etc.)
- Stack + package manager: {{stack}}
- Steps needed: {{steps}} (lint, test, build, deploy, etc.)
- Triggers: {{triggers}} (on push to main, on PR, on tag)

Produce:
1. A complete, valid pipeline config for {{platform}} covering {{steps}} on {{triggers}}.
2. Dependency caching to speed up runs.
3. Jobs split logically (e.g. test must pass before deploy), with needs/dependencies set.
4. Comments explaining each job.
5. A note on where secrets/env vars go (referenced securely, never hardcoded).

Rules: use valid {{platform}} syntax and current action/runner versions where known; fail fast (lint/test before build/deploy); never hardcode credentials \u2014 reference the platform's secrets store; pin action versions. Flag any deploy step that needs credentials the user must add as secrets.
Did it work? Rate this prompt

Variables

{{platform}}CI platform
{{stack}}Stack + package manager
{{steps}}Steps needed
{{triggers}}Triggers

Example output

Platform: GitHub Actions. Stack: Node 20 + npm. Steps: lint, test, build. Triggers: push to main + PRs. name: CI on: push: { branches: [main] } pull_request: jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 cache: npm # caches deps for faster runs - run: npm ci - run: npm run lint - run: npm test build: needs: test # only build if tests pass runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: { node-version: 20, cache: npm } - run: npm ci - run: npm run build Notes: lint + test run first; build only runs if test passes (needs: test). When you add a deploy job, store tokens in repo Settings > Secrets and reference them as ${{ secrets.NAME }} \u2014 never inline.

Details

Author

AI Khazna

License

Security

Vetted

Type

prompt

Related assets

More curated picks in Development & Code.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code