3 pointsby ajasharia day ago1 comment
  • dailyagi21 hours ago
    This is genuinely useful. I tested it on a debugging question I was about to paste into Claude.

    My original prompt: "my react app crashes when I click the submit button, here's the error: TypeError: Cannot read properties of undefined (reading 'map')"

    After enhancement (XML mode):

    <error> TypeError: Cannot read properties of undefined (reading 'map') Triggered by: submit button click event </error>

    <request> Identify the root cause of this undefined array error and provide a fix. Consider common patterns like async state updates, missing default values, or race conditions. </request>

    The enhanced version got Claude to immediately ask about my initial state and whether I was mapping over API response data before it loaded - which was exactly the issue. Before, I'd usually go through 2-3 back-and-forth messages to get there.

    Nice work on this.