Task prompt · Coding

Find and fix a bug from an error message

by Agent Yard Team

Paste the error and get the root cause, not a guess.

You'll attach

Needs screenshotNeeds file

Works with

CursorClaude CodeCodexClaudeChatGPTGemini

Use cases

  • Paste the error and get the root cause, not a guess.
  • When you already have a screenshot or a file and want the AI to work from it instead of starting from scratch.
  • Reuse it as often as you like: fill in the blanks (paste error and stack trace or attach screenshot; steps; expected) with new details and copy again.
  • As one step of the Build an app with AI prompt pack.

How to use it

  1. Open Cursor or Claude Code in your terminal (or another AI listed here).
  2. Attach the screenshot (or paste it straight into the chat).
  3. Attach the file (PDF, Word, CSV or Excel), or paste its text into the prompt.
  4. Fill in the highlighted blanks ([PASTE ERROR AND STACK TRACE OR ATTACH SCREENSHOT], [STEPS], [EXPECTED]…) below, or edit them after pasting.
  5. Copy the prompt, paste it into the chat and send.

Fill in the blanks (optional)

Prompt

Remix
I'm getting this error: [PASTE ERROR AND STACK TRACE OR ATTACH SCREENSHOT].
What I was doing when it happened: [STEPS].
Expected: [EXPECTED]. Actual: [ACTUAL].

Find the root cause before proposing a fix. Walk through the stack trace, name the most likely cause and two alternatives, and say what evidence would confirm each. Then give the smallest fix, explain why it works, and add a test that would have caught it.
One email a week

The best new prompts and personas, nothing else.

The Weekly is presented byyour brandSponsored · open

More Coding prompts

Footer partner · openThis strip runs at the foot of every page. One partner at a time.Ask about it →