Have an AI coding agent pick up every error your users hit, reproduce it, fix it and prove the fix with a test, then queue the change for your quick approval: AI agent prompt

Small software teams usually see far more user-facing errors than they ever get time to fix. On Oct 28, 2026 Jacob Sansbury, founder of the game platform Spawn, wrote on X that his ten-person company runs permanent AI agents that each own an area such as the engine, ops, finance or bug triage, that the agents fix every error a user hits and verify their own work, and that Spawn shipped 77,000 substantial changes in 30 days while spending $3.1 million on AI tokens last month. Spawn lets its agents ship without a human in the loop; the prompt below sets up the same error-to-fix loop with any coding agent but keeps you approving each change before it goes live.

CodingError-to-fix automationintermediate

The prompt

Act as the bug-triage agent for my app. Stack: [language, framework, hosting]. Where errors show up: [error tracker such as Sentry, logs, support tickets, crash reports]. Repo: [link or folder]. 1) Pull the errors from the last [24 hours], group duplicates, and rank them by how many users each one hit and how bad it is (data loss or payment problems first). 2) For the top [5], find the cause in the code, explain it to me in two plain sentences, and reproduce it with a failing automated test. 3) Write the smallest fix that makes that test pass without breaking the other tests, and run the full test suite. 4) For each fix, give me a short summary: the error, how many users it hit, the cause, what you changed, the test that proves it, and any risk. Open each one as a separate pull request or branch for me to approve; don't deploy, merge, change the database or touch production settings yourself. 5) List any error you couldn't reproduce or fix and what you'd need to finish it.
Open in ChatGPT Open in Claude Perplexity Download as agent skill (SKILL.md)

Fill in the blanks, then copy

This prompt has 5 [bracket]s to fill in. Type your details below and the prompt updates as you go. Your answers stay in this browser and are reused on other prompts with the same blanks. Nothing is sent to us.

How to use it

  1. Copy the prompt above.
  2. Replace every [bracket] with your own details (use the fill-in-the-blanks box above, which remembers your answers for the next prompt).
  3. Paste it into Claude Code, Cursor, GitHub and review the answer before you use it.

Works with: Claude Code, Cursor, GitHub, Sentry

Real-world example: x.com/jsnnsa/status/2115624020699910223

Before you use it: what to check

Already built into this prompt

Check yourself

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.

Share:Post on XLinkedInFacebookRedditWhatsApp
</> Embed this prompt on your site

Paste this HTML into your blog or website. It's a plain card with no tracking scripts that links back to this prompt.

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 free

More 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 · intermediateFix a failed pipelineCI fixes · intermediateCheckpointed long task setupLong-running tasks · intermediate

See all Coding prompts →