一键导入
sanitizer-validator
Instruments the C++ build with LLVM/GCC sanitizers to trap, diagnose, and fix memory leaks, undefined behavior, and race conditions at runtime.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Instruments the C++ build with LLVM/GCC sanitizers to trap, diagnose, and fix memory leaks, undefined behavior, and race conditions at runtime.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | sanitizer-validator |
| description | Instruments the C++ build with LLVM/GCC sanitizers to trap, diagnose, and fix memory leaks, undefined behavior, and race conditions at runtime. |
This skill adds runtime memory and concurrency safety checks to your agentic workflow. It compiles code using LLVM/GCC Sanitizers, runs the test suite, parses runtime reports, and automatically patches bugs.
-fsanitize=address,undefined).-fsanitize=thread). Note: TSan cannot be combined with ASan.CMakeLists.txt (or inject via environment variables CXXFLAGS and LDFLAGS) to include:
-fsanitize=address,undefined -fno-omit-frame-pointer -g -O1
ASan: heap-use-after-free or stack-buffer-overflowLSan: Detected memory leaksUBSan: undefined behavior (e.g., null pointer dereferences, integer overflows)TSan: Data race detectedIf a sanitizer report is captured, treat it as a critical test failure:
std::unique_ptr, std::shared_ptr), fix lifecycle ownership, or correct array indexing bounds.std::mutex, std::lock_guard, or convert shared variables to std::atomic.Guides creation of modular Slint UI components, design tokens, responsive layouts, and modern aesthetics.
Manages C++20 integrations with Slint UI, CMake target linkage, thread-safe data models, and event loop dispatching.
Executes hot-reloading preview sessions and Slint LSP syntax verification for iterative UI development.
Enforces data-oriented design (SoA vs AoS), SIMD loop friendliness, Google Benchmark integration, cache-line alignment, and microbenchmarking best practices.
Directs high-performance Python bindings creation, zero-copy buffer transfers, GIL management, and C++/Python memory safety.
Enforces modern C++20 standards, RAII resource management, immutability by default, and memory locality.