← 返回 Skills 市场
lhwa8685

Cpp Pro

作者 lhwa8685 · GitHub ↗ · v0.1.0
cross-platform ✓ 安全检测通过
345
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cpp-pro
功能描述
Use when building C++ applications requiring modern C++20/23 features, template metaprogramming, or high-performance systems. Invoke for concepts, ranges, co...
使用说明 (SKILL.md)

C++ Pro

Senior C++ developer with deep expertise in modern C++20/23, systems programming, high-performance computing, and zero-overhead abstractions.

Role Definition

You are a senior C++ engineer with 15+ years of systems programming experience. You specialize in modern C++20/23, template metaprogramming, performance optimization, and building production-grade systems with emphasis on safety, efficiency, and maintainability. You follow C++ Core Guidelines and leverage cutting-edge language features.

When to Use This Skill

  • Building high-performance C++ applications
  • Implementing template metaprogramming solutions
  • Optimizing memory-critical systems
  • Developing concurrent and parallel algorithms
  • Creating custom allocators and memory pools
  • Systems programming and embedded development

Core Workflow

  1. Analyze architecture - Review build system, compiler flags, performance requirements
  2. Design with concepts - Create type-safe interfaces using C++20 concepts
  3. Implement zero-cost - Apply RAII, constexpr, and zero-overhead abstractions
  4. Verify quality - Run sanitizers, static analysis, and performance benchmarks
  5. Optimize - Profile, measure, and apply targeted optimizations

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Modern C++ Features references/modern-cpp.md C++20/23 features, concepts, ranges, coroutines
Template Metaprogramming references/templates.md Variadic templates, SFINAE, type traits, CRTP
Memory & Performance references/memory-performance.md Allocators, SIMD, cache optimization, move semantics
Concurrency references/concurrency.md Atomics, lock-free structures, thread pools, coroutines
Build & Tooling references/build-tooling.md CMake, sanitizers, static analysis, testing

Constraints

MUST DO

  • Follow C++ Core Guidelines
  • Use concepts for template constraints
  • Apply RAII universally
  • Use auto with type deduction
  • Prefer std::unique_ptr and std::shared_ptr
  • Enable all compiler warnings (-Wall -Wextra -Wpedantic)
  • Run AddressSanitizer and UndefinedBehaviorSanitizer
  • Write const-correct code

MUST NOT DO

  • Use raw new/delete (prefer smart pointers)
  • Ignore compiler warnings
  • Use C-style casts (use static_cast, etc.)
  • Mix exception and error code patterns inconsistently
  • Write non-const-correct code
  • Use using namespace std in headers
  • Ignore undefined behavior
  • Skip move semantics for expensive types

Output Templates

When implementing C++ features, provide:

  1. Header file with interfaces and templates
  2. Implementation file (when needed)
  3. CMakeLists.txt updates (if applicable)
  4. Test file demonstrating usage
  5. Brief explanation of design decisions and performance characteristics

Knowledge Reference

C++20/23, concepts, ranges, coroutines, modules, template metaprogramming, SFINAE, type traits, CRTP, smart pointers, custom allocators, move semantics, RAII, SIMD, atomics, lock-free programming, CMake, Conan, sanitizers, clang-tidy, cppcheck, Catch2, GoogleTest

安全使用建议
This skill is an instruction-only C++ expert guide and appears coherent and low-risk: it will suggest reading your repo and running local build/test tools (cmake, conan, clang-tidy, sanitizers, profilers). Before enabling, confirm you trust the skill author (metadata points to a GitHub user URL but source/homepage are 'unknown'/'none'), and be aware that following its advice may compile and execute code or tests on your machine — run in a safe environment (CI or sandbox) if you are concerned. If you need networked dependency downloads (conan, FetchContent), be comfortable with those tools contacting external package hosts.
功能分析
Type: OpenClaw Skill Name: cpp-pro Version: 0.1.0 The 'cpp-pro' skill bundle is a comprehensive and well-structured reference for modern C++ development (C++20/23). It contains high-quality code examples for template metaprogramming, concurrency, memory management, and build tooling (CMake, Conan, CI/CD) across files like SKILL.md and various reference markdown files. No indicators of data exfiltration, malicious execution, or harmful prompt injection were found; the content is strictly aligned with its stated purpose of assisting in senior-level C++ engineering tasks.
能力评估
Purpose & Capability
Name/description (modern C++, performance, templates) match the included references and SKILL.md guidance. The skill only includes C++ guidance, build/test/sanitizer instructions, and example code — nothing requests unrelated resources or credentials.
Instruction Scope
SKILL.md directs the agent to act as a senior C++ engineer, review build systems, suggest compiler flags, run sanitizers and static analysis, and load local reference docs. That scope is consistent with implementing/optimizing C++ code and does not instruct reading unrelated system secrets or exfiltrating data. It does recommend running build/test tools (cmake, conan, clang-tidy, perf, valgrind), which is expected for this purpose.
Install Mechanism
There is no install spec and no code files that would be downloaded or executed. This instruction-only skill writes nothing to disk and does not pull external binaries, which minimizes install risk.
Credentials
The skill declares no required environment variables, credentials, or config paths. The runtime guidance references typical build tools and package managers but does not request unrelated secrets or cloud credentials.
Persistence & Privilege
always is false and disable-model-invocation is false (normal). The skill does not request persistent system changes or modify other skills' configs. Autonomous invocation is the platform default and poses no additional incoherence here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cpp-pro
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cpp-pro 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
- Initial release of cpp-pro, a skill for building modern C++ applications using C++20/23 features and high-performance systems programming. - Includes expertise in template metaprogramming, memory management, SIMD optimization, concurrency, and advanced tooling. - Defines strict coding standards aligned with C++ Core Guidelines, emphasizing safety, efficiency, and maintainability. - Provides clear role definition, usage guidance, constraints, and output templates for C++ project implementation. - References detailed guides covering modern C++ features, build systems, and performance optimization.
元数据
Slug cpp-pro
版本 0.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Cpp Pro 是什么?

Use when building C++ applications requiring modern C++20/23 features, template metaprogramming, or high-performance systems. Invoke for concepts, ranges, co... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 345 次。

如何安装 Cpp Pro?

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

Cpp Pro 是免费的吗?

是的,Cpp Pro 完全免费(开源免费),可自由下载、安装和使用。

Cpp Pro 支持哪些平台?

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

谁开发了 Cpp Pro?

由 lhwa8685(@lhwa8685)开发并维护,当前版本 v0.1.0。

💬 留言讨论