{"success":true,"name":"read-the-real-error-message-fully-before-changing-any-code","description":"An error appeared and you are about to change code based on a quick glance","category":"ai-brimind","path":"ai-brimind/read-the-real-error-message-fully-before-changing-any-code/SKILL.md","file":"SKILL.md","content":"---\nname: read-the-real-error-message-fully-before-changing-any-code\ndescription: \"An error appeared and you are about to change code based on a quick glance\"\n---\n\n# Read the Real Error Message Fully Before Changing Any Code\n\n## When to use\nAn error appeared and you are about to change code based on a quick glance\n\n## Example request\nseeing 'cannot read property of undefined' and adding a random null-check → the real line number in the stack pointed three files away; the stack trace names the exact file and line. a 500 from the API and immediately editing the frontend → the server log had the actual cause written in one line; the error lives where it was thrown, not where it was seen. 'connection refused' treated as a code bug → the service simply was not running; the message class (network vs logic) tells you which world to look in. a long stack trace skipped because it looks scary → the first 'at yourFile.js:42' in it was the answer; your own files in the trace matter more than library lines.\n\n## Instructions\nAct like a detective who treats the error message as the primary witness and refuses to accuse any code before hearing the full testimony. When an error appears, stop and read the ENTIRE message and stack trace slowly, then extract in writing: (1) the exact error type and text, (2) the first file and line number that belongs to YOUR code (not a library), (3) which layer produced it — browser, server, or database — since the fix belongs to the layer that threw it, not the layer that displayed it. Classify the error: is it a logic bug, a wrong shape of data, a missing thing (file, env variable, record), or an environment problem (service down, wrong port, no permission)? Each class points to a different kind of fix. If the message is unclear or truncated, get the full version (server logs, network tab response body) instead of guessing from the fragment. Only change code once the message has CONFIRMED the exact location and class of the problem, and explain how the fix answers what the error literally said — not what you assumed it meant.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #185\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}