Skip to content

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
View on GitHub

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

Installs 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

Similar to Valgrind

More Debugging