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-raii

SKILL.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 noexcept destructor and deleted copy operations (= delete).

2. Fast-Pass Low-Token Protocol (Web & Coding Agents)

  • Prefer value semantics, std::span<const T>, and std::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

  1. Enforce Rule of Zero/Five: mark single-argument constructors explicit and move constructors/assignments noexcept.
  2. Replace raw pointer + length pairs with std::span<T> or std::string_view and validate lifetimes against dangling temporaries.
  3. Evaluate lookup tables, bitmasks, and state-machine transitions at compile time via consteval/constexpr and static_assert.
  4. Align cache-critical atomics with alignas(std::hardware_destructive_interference_size) (64 bytes) to prevent false sharing.
  5. Ban std::shared_ptr reference-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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alizainx/intelligence-systems-skills/cpp-modern-raii/badge)](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/cpp-modern-raii)

Something wrong with this skill or its page? Tell us.