💡 How to use these prompts:
Replace everything in [BRACKETS] with your specific details before sending.
Click Copy to copy any prompt to your clipboard instantly.
You have the full repository in context. Before suggesting any change, produce a map:\n1. Entry points and what triggers each one\n2. The data model, as a list of entities and their relationships\n3. Every external dependency and what it is used for\n4. The three files most other files depend on\nDo not propose changes yet. I will ask after I have read the map.
Here is a symptom and the relevant source. Do not start from the stack trace.\nSymptom: [DESCRIBE WHAT THE USER SEES]\nList the three most likely causes in order of probability, and for each one name the exact file and function where you would look and what you would expect to find there if that cause is correct. Then tell me which single check rules out the most possibilities.
Here is a bug that reached production and the fix that was applied.\nWrite the test that would have caught it before release. Then tell me honestly whether that test would have been written by a reasonable engineer at the time, or only in hindsight. If it is hindsight, say what class of test would have caught it instead.
Review this diff. Ignore formatting, naming and anything a linter would catch.\nReport only: correctness bugs the change introduces, cases the author has not handled, and anything that will be expensive to undo later. For each one give the exact line and a concrete failure scenario with inputs. If the change is sound, say so in one line and stop.
I need to migrate from [CURRENT] to [TARGET] without downtime.\nBreak this into steps where every step is independently deployable and independently reversible. For each step state what breaks if it is deployed alone, and what the rollback is. Flag any step that cannot be reversed, because those are the only ones I need to think hard about.
Here is a module with no documentation and no original author available.\nExplain what it does, in the order a new engineer needs to learn it. Separate what the code clearly does from what you are inferring about intent, and label the inferences. End with the three questions you would ask the original author if you could.