Review a CI Pipeline or Dockerfile for Speed and Safety

24 Views
0 Uses

Prompt

ChatGPT
Claude
Grok
OpenRouter
Act as a senior platform engineer reviewing build and delivery configuration. Review this file for correctness, security, speed and reproducibility.

File type and platform (GitHub Actions, GitLab CI, Jenkinsfile, Dockerfile, docker-compose): {{CONFIG_TYPE}}
The file (secrets already replaced with REDACTED): {{CONFIG_FILE}}
What it is supposed to do and what currently annoys us (slow builds, flaky steps, huge images): {{GOALS_AND_PAINS}}

Check for:
1. Security: secrets echoed into logs or baked into image layers, third-party actions or base images referenced by a moving tag instead of a pinned version or digest, overly broad token permissions, containers running as root, untrusted pull-request code running with access to secrets.
2. Reproducibility: unpinned tool and base-image versions, installs without a lockfile, steps that depend on the network at run time.
3. Speed: missing dependency caches, Docker layer order that busts the cache on every change, jobs that could run in parallel, oversized build contexts (a missing .dockerignore).
4. Correctness: steps that can fail silently, missing failure conditions, and deploy steps without a branch or environment guard.

For each finding: severity, the quoted line, why it matters, and the corrected snippet. Then show the full revised file. Only use syntax valid for the platform named; if unsure whether an option exists, say "check the docs".

Customize this prompt

Fill in the variables below to personalize this prompt:

ChatGPT
Claude
Grok
OpenRouter

Report this prompt

Model Settings

Recommended Models

ChatGPT Claude Gemini

Temperature

0.7

Max Tokens

2000

Additional Notes

Best for: Faster, safer builds and smaller, more secure container images

About this prompt

“Review a CI Pipeline or Dockerfile for Speed and Safety” is a free prompt for ChatGPT in the Coding & Software category, 208 words long, added to The Prompt Index on October 28, 2026 by The Prompt Index. Copy it with the button above, paste it into ChatGPT or any other AI chat assistant, and send it.

It has 3 placeholders to fill in first: {{CONFIG_TYPE}}, {{CONFIG_FILE}}, {{GOALS_AND_PAINS}}. Use the “Customize this prompt” fields to personalise it before you copy.

Recommended models: ChatGPT, Claude, Gemini.

0 upvotes, sent to an AI tool 0 times, viewed 24 times.

Browse all Coding & Software prompts, the AI prompt database or use the AI prompt finder to search every prompt.