Skip to content
Back to skills

Cpp Safety

ASecurity

Review Yuzu C++ source changes for resource ownership, RAII, borrowed lifetimes, C ABI contexts, casts, process/syscall boundaries, callbacks, threads, and sanitizer coverage. Use for any governance Gate 3 review when C++ files change, paired with cpp-expert.

  • 19 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
testinggoc++shellsqlapi

Works with

  • api

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add DevNullLtd/Yuzu --skill cpp-safety --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cpp Safety?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cpp Safety
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/devnullltd-cpp-safety/badge)](https://www.skillsdirectory.com/skills/devnullltd-cpp-safety)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cpp-safety
description: Review Yuzu C++ source changes for resource ownership, RAII, borrowed lifetimes, C ABI contexts, casts, process/syscall boundaries, callbacks, threads, and sanitizer coverage. Use for any governance Gate 3 review when C++ files change, paired with cpp-expert.
---

# C++ Safety

Use this skill for C++ ownership and lifetime proof. Pair it with `cpp-expert`, which covers general C++23 correctness and portability.

## Review Focus

- Load `docs/cpp-conventions.md` before reviewing C++ source changes.
- Verify every owning raw resource boundary in the Gate 1 Resource Ledger: fd, HANDLE, SOCKET, `FILE*`, SQLite, OpenSSL, BCrypt, allocated C string, mapped library, temp path, subprocess, callback context, and thread.
- Review broad mechanical hits such as `new`, `delete`, `malloc`, `free`, `release()`, `raw()`, casts, shell/process APIs, callback registration, and thread creation. Require ledger entries only when a hit creates, transfers, or releases ownership of an owning raw resource boundary.
- Flag leaks, double-release, early-return cleanup gaps, borrowed data escape, unsafe shell construction, ambiguous thread teardown, and undocumented cast assumptions.
- Require targeted ASan/UBSan/TSan or platform-specific validation when ownership, callbacks, shared state, or OS handles change.

## Output

Return findings first, with severity `BLOCKING`, `SHOULD`, or `NICE`, each grounded in `file:line` and a concrete fix. End with `Resource Ledger: complete/incomplete`, sanitizer coverage needed, and `PASS` or `BLOCKED`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.