Valgrind skill for Memcheck memory error detection, plus Cachegrind, Callgrind, and Massif profiling.
- CCM score
- 60 of 100
- skills.sh installs
- 851
- GitHub stars
- 303
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers Memcheck for heap corruption, use-after-free, leaks, and uninitialised reads, plus Cachegrind, Callgrind, and Massif
- Includes flag tables for Memcheck, leak-kind interpretation, and suppression file workflows for silencing known false positives
- Explains reading Memcheck output and leak kinds, from definitely lost through still reachable, with guidance on which to act on
- Designed for cases where AddressSanitizer cannot be used, such as older toolchains or production-like environments
Install
$ npx -y skills add mohitmishra786/low-level-dev-skills --skill valgrind -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Valgrind
Purpose
Guide agents through Valgrind tools: Memcheck for memory errors, Cachegrind for cache simulation, Callgrind for call graphs, and Massif for heap profiling.
Triggers
- "My program has a memory leak / use-after-free"
- "I can't use ASan — can I use Valgrind instead?"
- "How do I profile cache behaviour without perf?"
- "How do I visualize call graphs with Callgrind?"
- "How do I profile heap allocation patterns?"
- "Valgrind reports errors in third-party code I can't fix"
Workflow
1. Memcheck — memory error detection
Compile with -g -O1 for best results. -O0 is also fine; avoid -O2+ which can produce false positives.
valgrind --tool=memcheck \
--leak-check=full \
--show-leak-kinds=all \
--track-origins=yes \
--error-exitcode=1 \
./prog [args]
Key flags:
Details
- Repository
- github.com/mohitmishra786/low-level-dev-skills
- Categories
- Debugging, Security
- First seen
- Jun 3, 2026
Questions
What does the valgrind skill help an agent do?
The valgrind skill guides agents through Valgrind tools: Memcheck for finding heap corruption, use-after-free, memory leaks and uninitialised reads, Cachegrind for cache simulation, Callgrind for call graphs, and Massif for heap profiling. It applies when a developer cannot use sanitizers like ASan.
How do I install the valgrind skill?
Run npx -y skills add mohitmishra786/low-level-dev-skills --skill valgrind -y in your project. After that, the valgrind skill lets the agent run Memcheck and other Valgrind tools on your program.
Where does the valgrind skill stand in the Debugging category?
The valgrind skill sits in the Debugging category on Claude Marketplaces, alongside diagnosing-bugs, azure-messaging, safe-debug, systematic-debugging and sentry-cli. It sets itself apart by covering Valgrind's Memcheck, Cachegrind, Callgrind and Massif tools in one guide.
More from mohitmishra786/low-level-dev-skills
All 54- Gcc842
- Cross Gcc837
- Flamegraphs837
- Strace Ltrace822
- Cpu Cache Opt820
- Rust Profiling810
- Elf Inspection806
- Simd Intrinsics802
- Assembly Arm800
- Lldb800
- Memory Model800
- Make789
- Heaptrack779
- Ninja778
- Freertos774
- Linux Kernel Modules772
- Msvc Cl772
- Ebpf765
- Fuzzing761
- Binutils759
- Linkers Lto753
- Conan Vcpkg747
- Rust Security744
- Dynamic Linking737
Similar to Valgrind
More DebuggingsanitizersSkillmohitmishra786/low-level-dev-skills1K installsCompiler runtime sanitizers that detect memory errors, undefined behaviour, data races, and leaks in C/C++ with GCC or Clang.
heaptrackSkillmohitmishra786/low-level-dev-skills779 installsLinux heap profiler that records allocation traces, finds leaks, and compares memory use across runs.
memory-leak-detectionSkillaj-geddes/useful-ai-prompts594 installsDetects memory leaks in Node.js and Python using heap snapshots, profiling, and production monitoring.
memory-profilerPluginrohitg00/awesome-claude-code-toolkit2.9K starsMemory leak detection and heap analysis
memory-leak-debuggingSkillchromedevtools/chrome-devtools-mcp4.1K installsDiagnoses JavaScript and Node.js memory leaks by comparing heap snapshots through Chrome DevTools MCP memory tools.
perf-profilerSkillcomposio-community/awesome-claude-plugins2K starsEvidence-backed CPU and memory profiling that captures hotspots with file:line and flame graph artifacts.