TsukiNi22/ai-utils / skills/libutils/libutils
libutils
VerifiedReference of Tsukini's C++20 library libutils (namespace utils::, github TsukiNi22/libutils) - every section, header, class and public method with the version and commit hash it was generated from, how to link/include it, exceptions/error codes, verbose, and how to find what changed since. Use whenever code uses or could use libutils (utils::..., include "utils/...", find_package(utils)), when the user asks which libutils class/function does something, how to use one, or what is new in libutils, instead of searching the library sources.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 14.6 KB |
| reference/VERSION.md | markdown | 612 B |
| reference/api/algorithms.md | markdown | 10.0 KB |
| reference/api/arguments.md | markdown | 8.4 KB |
| reference/api/attribute.md | markdown | 9.0 KB |
| reference/api/cli.md | markdown | 5.0 KB |
| reference/api/concepts.md | markdown | 3.0 KB |
| reference/api/encapsulation.md | markdown | 9.8 KB |
| reference/api/exception.md | markdown | 6.7 KB |
| reference/api/manip.md | markdown | 10.9 KB |
| reference/api/math.md | markdown | 2.3 KB |
| reference/api/network.md | markdown | 8.4 KB |
| reference/api/platform.md | markdown | 6.0 KB |
| reference/api/pool.md | markdown | 5.1 KB |
| reference/api/root.md | markdown | 2.2 KB |
| reference/api/security.md | markdown | 8.8 KB |
| reference/api/system.md | markdown | 10.7 KB |
| reference/api/type.md | markdown | 38.5 KB |
| reference/api/verbose.md | markdown | 3.6 KB |
| reference/exception-codes.md | markdown | 7.6 KB |
| reference/index.md | markdown | 20.0 KB |
| scripts/check.shexecutable | script | 2.7 KB |
| scripts/gen_api.pyexecutable | script | 20.8 KB |
| scripts/update.shexecutable | script | 2.3 KB |
reference/exception-codes.md
View on GitHub# libutils exception codes
Generated from libutils `v4.3.1` (commit `7913070`, 2026-10-22) by `scripts/gen_api.py`, do not edit by hand.
`utils::exception::InternalCode::<Code>`, generated by the CMake from `cmake/config/exceptions/**/*.json`.
A project can add its own codes (`utils::exception::ExternalCode::<Code>`) with the same JSON format
(`generated_external_exception_header.hpp`, see the project template).
## `global/call.json`
| Code | Message | Restrictions |
|---|---|---|
| `UndefinedCall` | This function is not defined and was left as-is | Fatal, Error |
| `UnauthorizedCall` | Can't allow the call to this function | Fatal, Error |
| `InvalidArgument` | Invalid argument given | Fatal, Error, Warning |
| `DoubleUse` | Try to use something that is in use | Fatal, Error, Warning |
| `DoubleFree` | Try to free something that was already free | Fatal, Error, Warning |
## `global/dull.json`
| Code | Message | Restrictions |
|---|---|---|
| `Exit` | Exit | None |
| `Empty` | Empty | - |
## `global/limits.json`
| Code | Message | Restrictions |
|---|---|---|
| `IdOverflow` | Can't distribute an id, type's limits are reach | Fatal, Error, Warning |
| `InvalidId` | Try to do thing with an invalid id | Fatal, Error, Warning |
| `UnknownId` | Try to do thing with an unknown id | Fatal, Error, Warning |
| `UnknownKey` | Try to do thing with an unknown key | Fatal, Error, Warning |
| `OutOfBounds` | Bounds have been oversteapaded | Fatal, Error, Warning |
| `BadCast` | Invalid cast between from a type to another | Fatal, Error, Warning |
| `UnknownCast` | Unknown cast type, can't proceed | Fatal, Error, Warning |
| `OutOfMemory` | No enought memory left to write the given byte(s) | Fatal, Error, Warning |
## `global/permission.json`
| Code | Message | Restrictions |
|---|---|---|
| `Override` | The override is desactivated | Fatal, Error, Warning |
| `Sudo` | This action require sudo permission | Fatal, Error, Warning |
## `global/status.json`
| Code | Message | Restrictions |
|---|---|---|
| `AlreadyRunning` | Can't start something that is already running | Fatal, Error, Warning |
| `NotRunning` | Can't execute the action with something that is not running | Fatal, Error, Warning |
| `Crashed` | Can't execute the action with something that is crashed | Fatal, Error, Warning |
| `Killed` | Can't start or restart a something that was killed/terminated | Fatal, Error, Warning |
## `global/syscall.json`
| Code | Message | Restrictions |
|---|---|---|
| `Dlopen` | Failed to load a dynamic library | Fatal, Error, Warning |
| `Dlsym` | Failed to load a function from a dynamic library | Fatal, Error, Warning |
| `Dlclose` | Failed to release a loaded dynamic library | Fatal, Error, Warning |
| `Pipe` | Fail during pipe init | Fatal, Error, Warning |
| `Dup` | Fail during dup init | Fatal, Error, Warning |
| `Fork` | Error during the fork of the process | Fatal, Error, Warning |
| `Waitpid` | Error during the wait for the given pid | Fatal, Error, Warning |
| `Kill` | Error during call to kill | Fatal, Error, Warning |
| `Poll` | Error during the poll call | Fatal, Error |
| `EPoll` | Error during the epoll call | Fatal, Error |
| `Accept` | Error during the accept call | Fatal, Error |
| `ShmOpen` | Error during the shm_open call | Fatal, Error |
| `Ftruncate` | Error during the ftruncate call | Fatal, Error |
| `Fstat` | Error during the fstat call | Fatal, Error |
| `Mmap` | Error during the mmap call | Fatal, Error |
| `Read` | Error during the read call | Fatal, Error |
| `Write` | Error during the write call | Fatal, Error |
## `utils/arguments.json`
| Code | Message | Restrictions |
|---|---|---|
| `ArgumentsNumber` | Invalid number of argument(s) given, use '-h' for more information | Fatal, Error, Warning |
| `OptionIngored` | Option ignored, can't determine it's ownership | Fatal, Error, Warning |
| `UnknownFlag` | Unknown flag | Fatal, Error, Warning |
| `NoCompliantUsage` | No compliant usage where found, use '-h' for more information | Fatal, Error, Warning |
| `ArgParserHook` | Error during an execution of hook | Fatal, Error |
| `OptionsNumber` | Invalid number of option(s) given, use '-h' for more information | Fatal, Error, Warning |
| `FlagOptionsNumber` | Invalid number of option(s) for the flag | Fatal, Error, Warning |
| `Option` | Invalid option, the parsing hook has failed | Fatal, Error, Warning |
| `FlagOption` | Invalid flag option, the parsing hook has failed | Fatal, Error, Warning |
| `FlagCombinaison` | Invalid flag combinaison | Fatal, Error, Warning |
| `DuplicatedFlag` | A flag was redefined, only the first will be used | Fatal, Error, Warning |
## `utils/cli.json`
| Code | Message | Restrictions |
|---|---|---|
| `CliTTY` | Can't start cli, not in a tty (enable the flag TTY to force usage) | Fatal, Error |
| `CliInternal` | Internal error from the cli | Fatal, Error |
| `CliHook` | Error during a hook call | Fatal, Error, Warning |
| `CliParser` | Error during the parsing | - |
| `CliExecution` | Error during the command execution | Fatal, Error |
| `CliUndefined` | An undefined error has append | Fatal, Error |
## `utils/encapsulation.json`
| Code | Message | Restrictions |
|---|---|---|
| `Process` | Error during process call | Fatal, Error, Warning |
## `utils/exception.json`
| Code | Message | Restrictions |
|---|---|---|
| `ExceptionCodeRestriction` | Error during the setup of an exception | Fatal, Error |
## `utils/manip.json`
| Code | Message | Restrictions |
|---|---|---|
| `ANSIMouseEvent` | Error during the read of the mouse event | Fatal, Error, Warning |
| `Codec` | Error during the encoding/decoding of the given string | Fatal, Error, Warning |
| `InvalidCodec` | The given codec is invalid and can't be used for the task | Fatal, Error |
| `Parser` | Error during the formating/parsing of the given string | Fatal, Error, Warning |
## `utils/network.json`
| Code | Message | Restrictions |
|---|---|---|
| `InvalidFd` | Invalid file descriptor was used | Fatal, Error, Warning |
| `UnknownFd` | Try to do thing with an unknown file descriptor | Fatal, Error, Warning |
| `SocketInit` | Error during the socket initialisation | Fatal, Error |
| `Socket` | Error during the socket execution | Fatal, Error |
| `SocketClosed` | Socket closed | None |
| `Communication` | Error during the communication process | Fatal, Error |
| `InvalidAction` | This action isn't allowed has this user | Fatal, Error, Warning |
| `Handshake` | Error during the handshake | Fatal, Error |
## `utils/pool.json`
| Code | Message | Restrictions |
|---|---|---|
| `MiddlewareCall` | Error during a middleware call | Fatal, Error, Warning |
## `utils/security.json`
| Code | Message | Restrictions |
|---|---|---|
| `SharedObject` | An object created with dynamic code that was free is still alive | Fatal, Error, Warning |
| `Encryption` | Error during encryption or call of related methods | Fatal, Error, Warning |
| `Decryption` | Error during decryption or call of related methods | Fatal, Error, Warning |
## `utils/system.json`
| Code | Message | Restrictions |
|---|---|---|
| `PromiseCanceled` | The promise was canceled | Fatal, Error, Warning |
| `Frozen` | Can't edit a frozen things | Fatal, Error, Warning |
| `ShouldBeFrozen` | Can only do this after freezing the object | Fatal, Error, Warning |
| `GpuUnavailable` | No gpu available for the requested mode | Fatal, Error, Warning |
| `GpuAllocation` | The gpu memory allocation failed | Fatal, Error, Warning |
| `GpuTransfer` | A transfer of the gpu memory failed | Fatal, Error, Warning |
## `utils/type.json`
| Code | Message | Restrictions |
|---|---|---|
| `VectorInvalidIndex` | Invalid index on a vector | Fatal, Error, Warning |
| `MatrixSingular` | Can't invert a singular matrix | Fatal, Error, Warning |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |