Individual skill
cpp-sanitizers
Use in C/C++ projects for crashes, hangs, UB, data races, memory errors. ASan/UBSan/TSan runtime checks. Build sanitizer config separately.
skills/cpp-sanitizers/SKILL.md
Source commit 2664c77b1388efbc59aca14602ba7de1a2b96935
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 13
- Repository last updated
- Jul 31, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- superpowers Repository topic
- skills Repository topic
- subagent-driven-development Repository topic
- claude-plugin Repository topic
- claude-code Repository topic
- llm Repository topic
- context-engineering Repository topic
- cpp Repository topic
- harness-engineering Repository topic
- agent-skills Repository topic
- data Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 6,815 bytesSKILL.mdcore · 6,815 bytesSKILL.mdcore · 6,815 bytesSKILL.mdcore · 6,815 bytesSKILL.mdcore · 6,815 bytesSKILL.mdcore · 6,815 bytesSKILL.mdcore · 6,815 bytesplatform/windows.mddoc · 1,070 bytesub-failure-patterns.mddoc · 2,205 bytes
Read excerpt
# C/C++ Sanitizers — Runtime Bug Catchers
Sanitizers are compiler-instrumented runtime checks. They catch what static analysis can't (path-sensitive errors, race conditions, memory errors discovered at runtime). They run your normal tests under instrumentation; failures abort with a precise report.
| Sanitizer | What it catches | Slowdown |
|---|---|---|
| **ASan** (Address) | Use-after-free, heap/stack overflow, leaks (leaks: Linux only) | 2-3x |
| **UBSan** (UB) | Signed overflow, null deref, misaligned, OOB shift, ... (MSVC: unavailable — see Platform notes) | ~1.1x |
| **TSan** (Thread) | Data races, deadlocks (not available on Windows — see Platform notes) | 5-10x |
| **MSan** (Memory) | Use of uninitialized memory | 3x (Linux only, Clang only) |
Note: ASan + UBSan are combinable. TSan is **mutually exclusive** with ASan/MSan.
## The `/sanitize` command