--- name: draft-a-fix-for-a-reported-app-bug description: "A bug report rarely comes with a clean fix and test. Your AI drafts the patch and a test, so a developer can check it before release. Use for: Draft a fix for a reported app bug." --- # Draft a fix for a reported app bug A bug report rarely comes with a clean fix and test. Your AI drafts the patch and a test, so a developer can check it before release. ## What you need from the user - The bug report - The code involved, and error logs with secrets removed - How the app should behave instead ## What to give back A draft code change with a test for the broken path and a short handoff note for whoever reviews and releases it. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me draft a fix for a bug in my app. Bug report: [paste] Code involved: [paste files or snippets] Error logs (remove passwords and keys): [paste] How it should work: [describe] Rules: [style, versions, things not to touch] 1. Explain the likely cause and point to the lines. 2. Draft the smallest change that fixes it. 3. Write a test that fails before the fix and passes after. 4. Write a short note: what changed, what to watch and how to roll back. Don't assume the fix works. I'll review, test and release it myself. ``` ## Rules - BotCurrent rates this job "Acts with your OK". Show what you will do and wait for a clear yes before each action. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - A healthy server doesn't prove the bug is gone. Test the exact steps from the bug report. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/repair-and-deploy-a-reported-production-defect-d12eb30b5e06/ Original report: https://x.com/omx0r/status/2109648184565764501 BotCurrent has not tested this skill. Check the result before you use it.