Errors

Use this skill for anything about failure, both how code should fail and how failures should read to a human. Part A covers Robert C. Martin's ("Uncle Bob") error-handling principles from Clean Code: exceptions over return codes, try-catch-finally first, providing context, defining exceptions by the caller's needs, the Special Case pattern, and never returning or passing null. Part B covers user-facing error messages: the three laws (what / why / action), severity levels, copy rules, and accessibility. Trigger on "handle this error", "this exception is useless", "should I return null", "improve this error message", "write an error state", or any review of failure code or copy. Language- and framework-agnostic.

yourpovv Updated

File contents

yourpovv/AI-Architecture-Pack/tree/main/skills/engineering/errors commit e8e33cac1a

Frequently asked questions

npx skillmds@latest add yourpovv/errors