crazyguitar/cppcheatsheet
crazyguitar/cppcheatsheet · 295 stars · 1 plugin
Marketplace This cheatsheet provides a curated collection of C and C++ code snippets covering modern language standards, system programming, and development tools. From basic syntax to advanced features like coroutines, templates, and memory management, each example is designed to be clear, practical, and ready to use. All code is tested and compiles cleanly, so you can focus on learning and adapting rather than debugging reference material.
Install
/plugin marketplace add crazyguitar/cppcheatsheetRun inside Claude Code, then install plugins from it. Check the repo's README before you run it.
Plugins 1
After adding the marketplace, install one with /plugin install <name>@cppcheatsheet.
- 1cppcheatsheetComprehensive C/C++ programming reference covering modern C11-C23, C++11-C++23, system programming, CUDA GPU computing, debugging tools, Rust interop, and advanced topics
/plugin install cppcheatsheet@cppcheatsheet
Files
C/C++ Cheatsheet
This cheatsheet provides a curated collection of C and C++ code snippets covering modern language standards, system programming, and development tools. From basic syntax to advanced features like coroutines, templates, and memory management, each example is designed to be clear, practical, and ready to use. All code is tested and compiles cleanly, so you can focus on learning and adapting rather than debugging reference material.
Plugin
cppcheatsheet is available as a Claude Code plugin. Once installed, Claude automatically uses the cheat sheets to answer C/C++ questions — just ask naturally and the skill triggers based on context.
Installation
As a Claude Code plugin (recommended):
# Step 1: Add the marketplace claude plugin marketplace add crazyguitar/cppcheatsheet # Step 2: Install the plugin claude plugin install cppcheatsheet@cppcheatsheet
Local testing (single session only):
claude --plugin-dir /path/to/cppcheatsheet
Manual installation (requires cloning the repo):
git clone https://github.com/crazyguitar/cppcheatsheet.git mkdir -p ~/.claude/skills cp -r cppcheatsheet/skills/cpp ~/.claude/skills/cpp
C/C++ Interview Cheatsheet
Curated C and C++ interview questions indexed by topic — each question links directly to the section of the cheat sheet that answers it. Use it for quick review before an interview, or to drill down on a specific area (RAII, move semantics, templates, concurrency, and more).
Modern C Programming
Core C language features from C11 to C23, including memory management, preprocessor macros, GNU extensions, and build systems.
Modern C++ Programming
Modern C++ features from C++11 to C++23. Covers resource management with RAII and smart pointers, generic programming with templates and concepts, functional patterns with lambdas, compile-time computation with constexpr, and asynchronous programming with coroutines.
- C++ Basics
- Resource Management
- Move Semantics
- String
- Container
- Iterator
- Template
- Casting
- Polymorphism
- Type Erasure
- Constexpr
- Lambda
- Concepts
- Requires
- Time
- Smart Pointers
- Return Value Optimization
- Algorithm
- Coroutine
- Modules
- CMake
System Programming
POSIX system programming covering process management, file I/O, signals, network sockets, threading, and inter-process communication.
CUDA Programming
GPU programming with NVIDIA CUDA. Covers kernel basics, memory hierarchy, cooperative groups, memory visibility, asynchronous pipelines, and multi-GPU communication.
- CUDA Basics
- CUDA C++ (libcu++)
- Thrust
- Cooperative Groups
- Memory Visibility
- CUDA Graph
- Quantization
- Pipelines
- GPU-GPU Communication
- NCCL
- Hardware Topology
Bash & System Tools
Command-line tools and shell scripting for system administration, networking, and hardware inspection.
Debugging & Profiling
Tools for debugging, memory analysis, and performance profiling of C/C++ and CUDA applications.
Rust for C++ Developers
Rust programming guide for C++ developers. Maps C++ concepts to Rust equivalents with side-by-side code comparisons covering ownership, traits, error handling, smart pointers, and concurrency.
- Basics
- Ownership & Borrowing
- RAII & Drop
- Strings
- Collections
- Iterators
- Traits & Generics
- Polymorphism
- Casting
- Const Functions
- Closures
- Smart Pointers
- Error Handling
- Threads
- Macros
- Modules
- FFI & C++ Bindings
Blog
Deep dives into advanced topics with detailed explanations, low-level implementations, and working code examples.
{
"name": "cppcheatsheet",
"owner": {
"name": "crazyguitar"
},
"plugins": [
{
"name": "cppcheatsheet",
"source": {
"source": "github",
"repo": "crazyguitar/cppcheatsheet"
},
"description": "Comprehensive C/C++ programming reference covering modern C11-C23, C++11-C++23, system programming, CUDA GPU computing, debugging tools, Rust interop, and advanced topics",
"version": "1.0.0",
"author": {
"name": "crazyguitar"
}
}
]
}Facts
- Kind
- Marketplace
- Repo
- crazyguitar/cppcheatsheet
- Group
- Uncategorized
- Stars
- 295
- Marketplace name
- cppcheatsheet
- Owner
- crazyguitar
- License
- MIT
- Language
- C++
- Created
- 2016-03-06
- Last push
- 2026-11-18
- Forks
- 52
- Homepage
- cppcheatsheet.com
- Topics
- cpp, cheatsheet, c, cpp20, cpp23, cuda, rust
- Plugins
- 1
Next on this shelf
- 244MadAppGang/claude-codeMadAppGang/claude-codeclaude code plugins marketplace290
- 245claudekit/frontend-design-pro-democlaudekit/frontend-design-pro-demoFrontend Design Pro Demo - Showcasing 11 distinct design aesthetics289
- 246emsi/MyManusemsi/MyManus100% free agentic environment like Manus286
- 247paid-tw/skillspaid-tw/skills台灣第三方金流 Skills for AI Agents - 藍新金流、綠界科技 ECPay、統一金流 PAYUNi284
- 248dinosn/raptor-loop-huntdinosn/raptor-loop-hunt278
- 249bowenliang123/markdown-exporterbowenliang123/markdown-exporterAn Agent Skill and Dify plugin to transform Markdown to files of DOCX, PPTX, XLSX, PNG, PDF, HTML, MD, CSV, JSON, XML.275