/everything-copilot-cli:cpp-debuggingfrom everything-copilot-cli
Debugs C++ crashes, memory corruption, undefined behavior, and debugger-only state using symbols, sanitizers, and native debuggers like GDB/LLDB.
Ships in everything-copilot-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
systematic-debugging gives you the language-neutral method. This skill adds the
native C++ toolchain and runtime techniques that matter once the bug involves
crashes, corrupted memory, UB, or platform-specific debugger state.
| Instead of cpp-debugging | Use |
|---|---|
| You still do not have a stable reproduction or root-cause workflow | systematic-debugging |
| The failure is a build, compile, or link error | fix-build-errors |
| The issue is performance-only, not correctness | performance-optimization |
Start with a debuggable build before chasing the crash:
# CMake
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug
# Clang/GCC direct build example
clang++ -std=c++20 -g -O0 -Wall -Wextra -Wpedantic main.cpp -o app.exe
Guidelines:
-g, /Zi)-O0, /Od)# Run the failing binary or test under the same conditions each time
ctest --test-dir build --output-on-failure
# Or run the specific executable directly
.\build\app.exe
Record:
Use the platform-native debugger your team standardizes on. Common flows:
# GDB
gdb --args .\build\app.exe <args>
# (gdb) run
# (gdb) bt
# (gdb) frame 0
# (gdb) info locals
# (gdb) p suspiciousVariable
# LLDB
lldb -- .\build\app.exe <args>
# (lldb) run
# (lldb) bt
# (lldb) frame variable
Focus on:
Sanitizers catch the class of bugs that ordinary logging often hides.
# Clang/GCC
cmake -S . -B build-asan `
-DCMAKE_BUILD_TYPE=Debug `
-DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
cmake --build build-asan
ctest --test-dir build-asan --output-on-failure
If your toolchain supports it, enable the equivalent native flags on Windows as well (for example MSVC AddressSanitizer in supported versions).
Use sanitizer output to answer:
If the crash only appears outside the current shell, collect the artifact and inspect it:
- preserve the crashing binary and symbols
- keep the exact build that produced the dump
- load the dump in the matching debugger
- compare the crashing frame with the last known good run
Do not "fix" a crash dump by guessing from the top frame alone. Trace ownership and state backwards.
Typical C++ root causes:
After the fix:
| Rationalization | Reality |
|---|---|
| "The debugger changes timing, so it is useless" | Timing-sensitive bugs still need debugger or sanitizer evidence. Use them to narrow the class of failure, then confirm in a normal run. |
| "Release-only crash means the optimizer is broken" | Most release-only failures are UB, data races, or lifetime bugs that debug mode accidentally masks. |
| "The stack trace is enough" | Native crashes often happen far from the real cause. Ownership history matters more than the final frame. |
| "I'll just add null checks" | Null checks do not fix dangling references, iterator invalidation, or races. |
fix-build-errorssystematic-debugging — root-cause method before tool-specific workfix-build-errors — compile, link, and configuration failurestdd-workflow — add regression tests after the runtime bug is fixedWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub drvoss/everything-copilot-cli --plugin everything-copilot-cli115 skills in this plugin
/actions-debuggingUse when a GitHub Actions workflow fails — diagnose the run log, identify the root cause, and apply a targeted fix/add-to-changelogUse when you've shipped a feature, fix, or breaking change and need to update CHANGELOG.md — follows Keep a Changelog format and syncs version numbers across package manifests./agent-governanceUse when designing or reviewing an AI agent system that needs policy-based access controls, intent classification, tool-level rate limiting, trust scoring for multi-agent workflows, or append-only audit trails.
Other plugins' skills for the same job