cpp-debugging

cpp-debugging is a skill for Claude Code, Codex from drvoss/everything-copilot-cli. It costs 42 tokens per session (1,559 once invoked), scanned A, original, MIT.

A troubleshooting guide for C++ programs that crash, corrupt memory, behave unpredictably, or depend on object lifetime and ownership. It uses debug symbols, sanitizers, and native debuggers to investigate the actual failure.

In plain words
What is it for?
Investigating segmentation faults, access violations, aborts, lifetime bugs, corrupted memory, hangs, deadlocks, and debugger-only failures.
Why use it?
C++ memory errors and undefined behavior can appear far from their cause and may change between debug and release builds. The guide helps find the underlying problem instead of only hiding its symptoms.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Investigating segmentation faults, access violations, aborts, lifetime bugs, corrupted memory, hangs, deadlocks, and debugger-only failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/drvoss/everything-copilot-cli/cpp-debugging
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add drvoss/everything-copilot-cli --skill cpp-debugging
Clone the repo
git clone --depth 1 https://github.com/drvoss/everything-copilot-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cpp-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/cpp-debugging/github.svg)](https://agentmods.dev/skills/drvoss/everything-copilot-cli/cpp-debugging)
Your own site
<a href="https://agentmods.dev/skills/drvoss/everything-copilot-cli/cpp-debugging"><img src="https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/cpp-debugging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cpp-debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/drvoss/everything-copilot-cli/cpp-debugging"><img src="https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/cpp-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,559 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01559
Opus 5.5 $0.00017 $0.00624
Sonnet 5.5 $0.00008 $0.00312
Haiku 4.5 $0.00004 $0.00156

Measured 1mo ago against content hash f7bffebfead3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cpp-debugging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/development/cpp-debugging/SKILL.md · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

C++ Debugging

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.

When to Use

  • A C++ process crashes with a segmentation fault, access violation, or abort
  • The bug depends on object lifetime, ownership, or move/copy behavior
  • Behavior changes between debug and release builds
  • AddressSanitizer, UndefinedBehaviorSanitizer, or a debugger is needed to see the failure clearly
  • A native test hangs, deadlocks, or corrupts memory without a clear stack trace

When NOT to Use

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

Prerequisites

  • A reproducible failing command, test, or executable
  • A debug-capable build with symbols
  • Access to the relevant debugger or sanitizer-enabled toolchain
  • Enough context to tell whether the bug is runtime, lifetime, concurrency, or build-related

Workflow

1. Rebuild for diagnosis, not speed

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:

  • enable symbols (-g, /Zi)
  • reduce or disable optimization while reproducing (-O0, /Od)
  • keep warnings enabled
  • reproduce with the same inputs that fail in CI or production-like runs

2. Capture the exact failing surface

# 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

Read the full file on GitHub · 194 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 194 lines · 42 tokens per session scan A f7bffebfead3

Subscribe to this mod's changes

cpp-debugging is a skill published in the GitHub repository drvoss/everything-copilot-cli (47 stars, last pushed 24d ago), licensed MIT. It adds 42 tokens to every session and 1,559 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cpp-pro

Writes, optimizes, and debugs C++ applications using modern C++20/23 features, template metaprogramming, and high-performance systems techniques. Use when building or refactoring C++ code requiring concepts, ranges, coroutines, SIMD optimization, or careful memory management — or when addressing performance…

Jeffallan/claude-skills · 79 tokens

memory-safety-patterns

Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory bugs.

rmyndharis/antigravity-skills · 45 tokens

re-cpp-abi

A tool for examining compiled modern C++ programs when the original source code is unavailable. It helps recover class information, virtual function tables, exception paths, and readable names from a binary file.

dslsdzc/rev-skills · 69 tokens

cuda-c-optimization

A guide for improving CUDA C programs, which run computations on NVIDIA GPUs. It covers GPU memory access, thread-block sizing, numerical stability, and debugging.

mindspore-ai/akg · 20 tokens

cpp

Comprehensive C/C++ programming reference covering everything from C11-C23 and C++11-C++23, system programming, CUDA GPU computing, debugging tools, Rust interop, and advanced topics. Use for: C/C++ questions, C/C++ interview preparation, modern language features, RAII/memory management, templates/generics, CUDA…

crazyguitar/cppcheatsheet · 0 tokens

memory-safety-patterns

Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory bugs.

RudyCity/superagent · 45 tokens