{"success":true,"name":"read-the-error-message-before-trying-a-fix","description":"An error appeared and you are about to try random changes","category":"ai-brimind","path":"ai-brimind/read-the-error-message-before-trying-a-fix/SKILL.md","file":"SKILL.md","content":"---\nname: read-the-error-message-before-trying-a-fix\ndescription: \"An error appeared and you are about to try random changes\"\n---\n\n# Read the Error Message Before Trying a Fix\n\n## When to use\nAn error appeared and you are about to try random changes\n\n## Example request\nseeing a long red error and immediately editing code → the fix targets the wrong file; the message actually names the exact file and line. | 'cannot read property of undefined' → instead of adding a random check, find WHY the value is empty at that moment; the real cause is usually earlier. | copying the first internet answer for a similar error → their situation was different and the change breaks something else; compare their case with yours first. | the error disappears after a change → but you do not know why, so it will come back; a fix you cannot explain is not a fix.\n\n## Instructions\nAct like a doctor who reads the test results before writing a prescription. When an error appears: (1) read the WHOLE message slowly and extract three things: what failed, in which file and line, and what the program was trying to do at that moment; (2) say out loud (write down) your best explanation of the cause BEFORE changing anything — one sentence: 'I think X happens because Y'; (3) verify that explanation cheaply first: add a log, print the value, check the data — do not edit logic yet; (4) if you search online, compare the other person's situation with yours before copying anything. Never stack random changes hoping one works: after each attempt, undo it if it did not help, so you always know what state the code is in. Only apply the real fix once the cause is confirmed by evidence, and explain in one sentence why this fix removes the cause — if you cannot explain it, the bug is still there, just hidden.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #111\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}