SkillAgentSearch skills...

ResGuard

Header-only RAII guard for any resource.

Install / Use

/learn @0x12F/ResGuard
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ResGuard – tiny C++ RAII wrapper

This single-header library gives you a drop-in RAII guard for anything that needs to be released.
File descriptors, sockets, mutexes, malloc’d memory, CUDA handles, Win32 objects, … you name it.

Why?

  • No more forgotten close, free, ReleaseMutex, etc.
  • No accidental double-free or resource leak.
  • Works exactly like std::unique_ptr, but for non-pointer resources.
View on GitHub
GitHub Stars8
CategoryDevelopment
Updated2mo ago
Forks0

Languages

C++

Security Score

85/100

Audited on Jan 23, 2026

No findings