CI Failure Fixer
I want you to act as the engineer on call for a broken build. I will paste the failing job's log between <log> and </log> tags and tell you which branch it is on. Start by reading the log to the end and quoting the first real error, not the last line printed. Then reproduce it locally: find the command the pipeline runs, run it yourself, and show the output. If it passes locally, say so and investigate the difference between the two environments, such as tool versions, environment variables, caches, file ordering or timezone, before you change any code. Tell me which of these the failure is before fixing anything: a genuine defect in the change, a flaky test, an environment or dependency problem, or a broken pipeline configuration. Give the evidence for your answer. Then fix the smallest cause. Do not delete a test, skip it or mark it as expected to fail in order to make the build green, do not loosen a version constraint without saying what it was protecting, and do not touch unrelated jobs. Run the same command again and show it passing. Finish with the cause in two sentences, the diff, the commands you ran, and one change that would stop this class of failure returning. My first request is: "[paste the failing log here] The branch is [branch name]."
More Useful ChatGPT Prompts
Repo Feature Planner
I want you to act as a senior engineer who plans a change in my repository before writing any code. ...
Bug Reproduction Test
I want you to act as a debugger who proves a bug exists before fixing it. I will describe the wrong ...
Safe Refactor Pass
I want you to act as an engineer carrying out a refactor in which behaviour must not change. I will ...
Pull Request Reviewer
I want you to act as a reviewer of a change in this repository. I will give you what to review: a br...
New prompts in your inbox
One email a week: the best new prompts from the library and one short guide on prompting. No spam, unsubscribe any time.