Fix a failed pipeline: AI agent prompt
Let a coding agent read a failing test or build, propose a fix, and wait for your OK, like GitLab's self-healing pipeline flows.
CodingCI fixesintermediateThe prompt
My CI pipeline failed. Here's the log: [paste]. Explain in plain words what broke, find the most likely cause in the code, make the smallest fix, and run the tests again. Put the change on a new branch and stop before merging so I can review it.
How to use it
- Copy the prompt above.
- Replace every [bracket] with your own details (or fill in the blanks on AgentPlaybook Real Estate, which remembers your answers for the next prompt).
- Paste it into Claude Code, Cursor, GitHub Copilot agent and review the answer before you use it.
Works with: Claude Code, Cursor, GitHub Copilot agent, GitLab Duo
Real-world example: about.gitlab.com/blog/gitlab-agent-orchestration/
Before you use it: what to check
Check yourself
- Check names, dates, numbers and any claim against your own source material before you use the answer. AI can misread or invent details.
Using an AI agent? Download this prompt as a SKILL.md agent skill with these checks built in, or get the .zip for Claude.ai. How to install skills.
Want to make this prompt even better? Grade it with the free prompt grader or build your own with the AI prompt generator.
Get the free Solo Founder Stack pack
32 copy-paste agent prompts (PDF) plus 5 new prompts every week.
Get it freeMore Coding prompts
Ship a small feature as a PRFeatures · intermediateBuild a simple internal toolNo-code apps · beginnerAutomation script for a boring taskScripts · beginnerCommit & PR assistantGit workflow · intermediateCheckpointed long task setupLong-running tasks · intermediateTool-stack upgrade scoutTooling upgrades · advanced