m13-domain-error/SKILL.md
Mastering C++ Domain Errors: Exception Hierarchies, System Errors, and Expected.
npx skillsauth add 13eholder/modern-cpp-skills m13-domain-errorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Who catches this?
std::runtime_error.std::error_code (OS codes).Is it a Domain Event?
InsufficientFunds is an exception type.Does it have context?
struct FileError : std::runtime_error { std::filesystem::path p; ... }| Pattern | Use Case |
| ------------------------ | -------------------------------- |
| std::runtime_error | Base for most failures. |
| std::logic_error | Bug (violation of precondition). |
| std::expected | Visible failure path. |
tools
Common C++ Anti-Patterns. Triggers: global variables, new/delete, C-style cast, macros, void*.
data-ai
C++ Mental Models: Pointer vs Reference, Initialization, Undefined Behavior.
data-ai
Mastering C++ Lifecycle: RAII, Destructors, Static Initialization, Rule of 5.
tools
Mastering C++ Ecosystem: CMake, vcpkg, Conan, Sanitizers, Tooling.