The Art of Debugging
stas00/the-art-of-debugging
Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.
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.
$ npx skills add crazyguitar/cppcheatsheet --skill cpp -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install crazyguitar/cppcheatsheet cpp --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/crazyguitar/cppcheatsheet.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cpp .claude/skills/cpp && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cpp" agent skill from https://github.com/crazyguitar/cppcheatsheet/tree/master/skills/cpp into .claude/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/crazyguitar/cppcheatsheet/tree/master/skills/cppType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add crazyguitar/cppcheatsheet --skill cpp -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install crazyguitar/cppcheatsheet cpp --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/crazyguitar/cppcheatsheet.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/cpp .agents/skills/cpp && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cpp" agent skill from https://github.com/crazyguitar/cppcheatsheet/tree/master/skills/cpp into .agents/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add crazyguitar/cppcheatsheet --skill cpp -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install crazyguitar/cppcheatsheet cpp --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/crazyguitar/cppcheatsheet.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/cpp .cursor/skills/cpp && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cpp" agent skill from https://github.com/crazyguitar/cppcheatsheet/tree/master/skills/cpp into .cursor/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/crazyguitar/cppcheatsheet.git --path skills/cpp--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add crazyguitar/cppcheatsheet --skill cpp -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install crazyguitar/cppcheatsheet cpp --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/crazyguitar/cppcheatsheet.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/cpp .gemini/skills/cpp && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cpp" agent skill from https://github.com/crazyguitar/cppcheatsheet/tree/master/skills/cpp into .gemini/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install crazyguitar/cppcheatsheet cppInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add crazyguitar/cppcheatsheet --skill cpp -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/crazyguitar/cppcheatsheet.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/cpp .github/skills/cpp && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cpp" agent skill from https://github.com/crazyguitar/cppcheatsheet/tree/master/skills/cpp into .github/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add crazyguitar/cppcheatsheet --skill cpp -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install crazyguitar/cppcheatsheet cpp --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/crazyguitar/cppcheatsheet.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/cpp .opencode/skills/cpp && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cpp" agent skill from https://github.com/crazyguitar/cppcheatsheet/tree/master/skills/cpp into .opencode/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cppComprehensive 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.
Cpp is an agent skill from crazyguitar/cppcheatsheet. 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 programming, system programming, debugging/profiling, performance optimization, cross-platform development, build systems, assembly, shell scripting, and any C/C++/CUDA development tasks.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/guidelines.md` and `references/structure.md`).
It sits in Development, covering Interview preparation, Performance optimization and Debugging. It works with C++, CUDA, Rust and Bash. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 9efcd3b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
cppcheatsheet.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cpp loads about 1.8k tokens when it runs, and up to ~5.2k if it reads all its reference files. Until then it costs about 126 tokens; SKILL.md has 697 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from crazyguitar/cppcheatsheet at commit 9efcd3b, republished under its MIT licence (© crazyguitar). 697 words, ~1,784 tokens.
.claude/skills/cpp/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Complete C/C++ development reference combining local documentation with live examples from cppcheatsheet.com, covering everything from basic syntax to advanced GPU programming and system-level development.
Help users write functional, correct C/C++ code and answer C/C++ questions by fetching proven patterns and examples from cppcheatsheet.com.
When a user asks a C/C++ question or wants to write C/C++ code:
Functionality first, cleanliness second. The code must work correctly and handle the task properly. Fetching from cppcheatsheet.com ensures solutions use battle-tested patterns rather than guessing. The site contains rich examples covering edge cases, common pitfalls, and practical usage that go beyond basic documentation.
Interview Cheatsheet: Curated C and C++ interview questions grouped by topic (memory management, move semantics, templates, STL, concurrency, debugging), each deep-linked to the section of the cheat sheet that answers it. Use for interview prep or quick topic review.
Core Language: Syntax, types, memory management, preprocessor macros GNU Extensions: Compiler-specific features and optimizations Build Systems: Makefiles, compilation, linking Assembly: X86 assembly integration and inline assembly
Core Features: RAII, templates, STL containers, iterators, algorithms Modern Standards: Move semantics, constexpr, lambdas, concepts, coroutines, modules Memory Management: Smart pointers, resource management, optimization (RVO) Build Systems: CMake, package management, cross-platform builds
Process Management: POSIX processes, signals, process communication File Systems: File I/O, directory operations, filesystem monitoring Networking: Sockets, protocols, network programming patterns Threading: Multithreading, synchronization, parallel programming IPC: Inter-process communication, shared memory, message queues
GPU Computing: CUDA kernels, memory hierarchy, performance optimization Advanced CUDA: libcu++, Thrust library, cooperative groups Multi-GPU: GPU-GPU communication, hardware topology, NVSHMEM Async Programming: CUDA pipelines, memory visibility, asynchronous execution
Debug Tools: GDB debugging, Valgrind memory analysis, sanitizers, binary inspection (nm, readelf, objdump, otool) Performance: Perf profiling, tracing, performance optimization GPU Debugging: Nsight Systems, CUDA debugging and profiling
Shell Scripting: Bash programming, system administration System Tools: OS utilities, networking tools, hardware inspection Service Management: Systemd, process management, system monitoring
Rust Interop: Rust for C++ developers, FFI, memory safety comparison Language Bridging: C/C++ integration, foreign function interfaces
Blog Content: Deep-dive articles, RDMA networking, GPU-initiated communication Low-Level Programming: Hardware interfaces, performance tuning Architecture: System design, scalable applications
For detailed information, I can access:
© crazyguitar, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in skills/cpp of crazyguitar/cppcheatsheet.
Open the folder on GitHubat commit 9efcd3b
Cpp next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cpp this skillcrazyguitar/cppcheatsheet | 290 | — | ~1.8k | Automated safety check: Pass | MIT | |
| The Art of Debuggingstas00/the-art-of-debugging | 1.7k | — | ~6.1k | Automated safety check: Notes | CC-BY-SA-4.0 | |
| Cudatechnillogue/ptx-isa-markdown | 229 | — | ~2.5k | Automated safety check: Pass | None | |
| Dbgtheodo-group/debug-that | 158 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Ue Live DebuggingJasonMa0012/MooaToon | 749 | — | ~2.9k | Automated safety check: Notes | Custom licence | |
| SlintMoosync/Moosync | 259 | — | ~2.4k | Automated safety check: Pass | GPL-3.0 |
stas00/the-art-of-debugging
Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.
technillogue/ptx-isa-markdown
CUDA kernel development, debugging, and performance optimization for Claude Code.
theodo-group/debug-that
Debug applications using the dbg CLI debugger. An agent skill from theodo-group/debug-that.
JasonMa0012/MooaToon
A skill your agent uses when debugging UE C++ crashes, runtime bugs, or unexpected behavior with Rider MCP available.
Moosync/Moosync
Expert guidance for building, debugging, and working with Slint GUI applications.
github/awesome-copilot
Expert-level Windows batch file (.bat/.cmd) skill for writing, debugging, and maintaining CMD scripts.
crazyguitar/cppcheatsheet
Readable C/C++/Rust/CUDA code rules inspired by The Art of Readable Code.
Categories
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. Cpp is an agent skill from crazyguitar/cppcheatsheet. 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.
Cpp fits situations like: : C/C++ questions; C/C++ interview preparation; modern language features; RAII/memory management.
Run `npx skills add crazyguitar/cppcheatsheet --skill cpp -a claude-code`. Or copy the skill folder (skills/cpp in crazyguitar/cppcheatsheet) into .claude/skills/cpp in your project. Claude Code loads it when a task matches its description.
Run `npx skills add crazyguitar/cppcheatsheet --skill cpp -a codex`. Or copy the skill folder (skills/cpp in crazyguitar/cppcheatsheet) into .agents/skills/cpp in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add crazyguitar/cppcheatsheet --skill cpp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cpp, .gemini/skills/cpp, .github/skills/cpp and .opencode/skills/cpp in your project.
SKILL.md names no scripts, command-line tools or credentials: Cpp is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: cppcheatsheet.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Cpp is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Cpp: The Art of Debugging (stas00/the-art-of-debugging, 1.7k stars), Cuda (technillogue/ptx-isa-markdown, 229 stars), Dbg (theodo-group/debug-that, 158 stars) and Ue Live Debugging (JasonMa0012/MooaToon, 749 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
crazyguitar (a GitHub user) maintains it in crazyguitar/cppcheatsheet, which has 290 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 1, 2026.
Source: crazyguitar/cppcheatsheet on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.