alizainx/intelligence-systems-skills/cpp-modern-raii
Claude Code and agent skill by alizainx/intelligence-systems-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Modern C++20/C++23 zero-cost abstractions, RAII ownership, constexpr invariants, std::span bounds safety, and lock-free atomics.
Install
npx vskill@latest install alizainx/intelligence-systems-skills/cpp-modern-raiiSKILL.md
The same SKILL.md was published earlier as alizainx/intelligence-systems-skills/cpp-modern-raii.
cpp-modern-raii (ISS-002)
1. First-Principles Invariant
- Stroustrup Zero-Overhead & RAII Law: Every resource (memory, socket, mutex, GPU stream) is tied to a lexical stack object with a
noexceptdestructor and deleted copy operations (= delete).
2. Fast-Pass Low-Token Protocol (Web & Coding Agents)
- Prefer value semantics,
std::span<const T>, andstd::expected<T, E>over raw pointers or deep inheritance hierarchies; avoid RTTI and exceptions in real-time hot paths.
3. Zero-Bug & Zero-Vulnerability Guards
- Enforce Rule of Zero/Five: mark single-argument constructors
explicitand move constructors/assignmentsnoexcept. - Replace raw pointer + length pairs with
std::span<T>orstd::string_viewand validate lifetimes against dangling temporaries. - Evaluate lookup tables, bitmasks, and state-machine transitions at compile time via
consteval/constexprandstatic_assert. - Align cache-critical atomics with
alignas(std::hardware_destructive_interference_size)(64bytes) to prevent false sharing. - Ban
std::shared_ptrreference-count contention where unique ownership (std::unique_ptr) or arena indices suffice.
4. Verification Gate
g++ -std=c++20 -O2 -Wall -Wextra -Werror -Wpedantic -Wconversion -fno-exceptions -fsanitize=address,undefined
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cpp-modern-raii/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/cpp-modern-raii)