Error explanation: minimal repro first
Explain the trigger cause and give three fixes with their costs
Prompt
Copy it whole, then replace the brackets with your own contentHandle this coding task: Error explanation: minimal repro first. Code/error: [paste] Environment: [language/version/framework] Requirements: Explain the trigger and give three fixes with their costs. Give your diagnosis first, then the changes, then how to verify.
Replace the text in [ ] with your own situation; ask long tasks in stages.
How to get better results
Read this before you fill it inYou cannot read the error and want to know what it actually says and how bad it is.
Give the conclusion and impact scope first, then only the changed snippets (no full files), and finally one check that proves it works. Flag risky spots separately.
What does this error mean: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded
Posting one line of error with no context Not saying whether it is intermittent or always reproducible Asking for the fix, skipping the cause
If problems remain after the fix, paste the new error and the changed snippet back; keep debugging on the original approach, don't switch approaches and rewrite.
More like this: Writing code prompts · All prompts