← 返回 Skills 市场
crazyguitar

C/C++ Comprehensive Cheat Sheets

作者 CHANG-NING TSAI · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
246
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cxx
功能描述
Comprehensive C/C++ reference with examples from C11-C23 and C++11-C++23, covering system programming, CUDA, debugging, performance, and advanced topics.
使用说明 (SKILL.md)

C/C++ Comprehensive Cheat Sheets (/cpp)

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.

How It Works

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:

  1. Look up the relevant topic(s) in Structure to find the matching URL(s)
  2. Always fetch the URL(s) using WebFetch to get real examples and patterns from the site
  3. Use the fetched content to:
    • Write code: Apply the patterns to produce functional, correct code that solves the user's task
    • Answer questions: Provide thorough explanations backed by the examples and information from the site
  4. Follow the Guidelines for code quality

Key Principle

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.

Coverage Areas

Modern C Programming (C11-C23)

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

Modern C++ Programming (C++11-C++23)

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

System Programming

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

CUDA Programming

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

Debugging & Profiling

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

System Tools & Automation

Shell Scripting: Bash programming, system administration System Tools: OS utilities, networking tools, hardware inspection Service Management: Systemd, process management, system monitoring

Cross-Language Development

Rust Interop: Rust for C++ developers, FFI, memory safety comparison Language Bridging: C/C++ integration, foreign function interfaces

Advanced Topics

Blog Content: Deep-dive articles, RDMA networking, GPU-initiated communication Low-Level Programming: Hardware interfaces, performance tuning Architecture: System design, scalable applications

References

For detailed information, I can access:

Examples

C/C++ Core

System Programming

CUDA & GPU Programming

Debugging & Tools

Build & Development

功能分析
Type: OpenClaw Skill Name: cxx Version: 1.0.0 The skill serves as a comprehensive C/C++ and CUDA programming reference that retrieves documentation and code patterns from cppcheatsheet.com. It utilizes the WebFetch tool to gather real-time examples based on a topic-to-URL mapping defined in references/structure.md. The instructions in SKILL.md and references/guidelines.md are strictly focused on assisting users with technical queries and code generation, showing no signs of malicious intent, data exfiltration, or unauthorized system access.
能力评估
Purpose & Capability
The name/description (
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cxx
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cxx 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
**Major update: Skill completely reworked for comprehensive C/C++ development reference.** - Replaced previous "cc" (Claude relay command wrapper) with new C/C++ programming assistant skill - Added detailed coverage: C11–C23, C++11–C++23, system programming, CUDA, debugging/profiling, build systems, Rust interop, and advanced topics - Introduced live fetching of authoritative code examples and explanations from cppcheatsheet.com - Includes new structured topic map and usage guidelines references - Removed relay session script and prior relay-specific documentation files
元数据
Slug cxx
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

C/C++ Comprehensive Cheat Sheets 是什么?

Comprehensive C/C++ reference with examples from C11-C23 and C++11-C++23, covering system programming, CUDA, debugging, performance, and advanced topics. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 246 次。

如何安装 C/C++ Comprehensive Cheat Sheets?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cxx」即可一键安装,无需额外配置。

C/C++ Comprehensive Cheat Sheets 是免费的吗?

是的,C/C++ Comprehensive Cheat Sheets 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

C/C++ Comprehensive Cheat Sheets 支持哪些平台?

C/C++ Comprehensive Cheat Sheets 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 C/C++ Comprehensive Cheat Sheets?

由 CHANG-NING TSAI(@crazyguitar)开发并维护,当前版本 v1.0.0。

💬 留言讨论