{"success":true,"name":"make-errors-explain-themselves-to-the-next-debugger","description":"You are writing error handling or just debugged a silent failure.","category":"ai-brimind","path":"ai-brimind/make-errors-explain-themselves-to-the-next-debugger/SKILL.md","file":"SKILL.md","content":"---\nname: make-errors-explain-themselves-to-the-next-debugger\ndescription: \"You are writing error handling or just debugged a silent failure.\"\n---\n\n# Make Errors Explain Themselves to the Next Debugger\n\n## When to use\nYou are adding a catch, a validation, or a failure path — or you just lost time because an error message told you nothing about the real problem.\n\n## Example request\nError says 'something went wrong' → the next debugger starts from zero; 'user sync failed: API returned 403, check token expiry' starts them at the finish line. A catch block swallows the error silently → the failure becomes invisible and costs hours to even locate; logging the context (what was attempted, with what input) turns hours into minutes. A validation rejects input without saying which rule failed → every rejection becomes a support question; naming the rule in the message makes the error self-service. This is the principle: an error message is documentation that appears exactly when needed.\n\n## Instructions\nAct as a developer who writes every error message for the stranger who will debug it at 2am. Whenever you add a failure path (catch, validation, guard, timeout), before writing a generic message, gather what the future debugger will need: WHAT operation was attempted, WITH what key input or state, WHY it failed (the specific rule or cause if known), and WHERE to look next if the cause is uncertain. Never swallow an error silently — a silent failure is a trap you are planting for a teammate. Never log only 'error occurred'. Check each message against one test: 'Does this message let someone fix or route the problem WITHOUT reading the code or asking me?' If you just finished debugging a bad message yourself, improve that message as part of your fix — you are the proof it was insufficient. Only proceed once each failure path tells its own story, and state that the goal is cutting the team's future debugging time, since every vague error is time the team pays again and again.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #759\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}