返回技能目录
人工审校软件开发

技能研究档案

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 bottlenecks, concurrency issues, and build system configuration with CMake.

保留作者的英文原始描述。它表达设计意图,不代表已验证的实际效果。

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 bottlenecks, concurrency issues, and build system configuration with CMake.

developmentreferences

研究摘要

人工审校

Skill Atlas editorial review · editorial-preview-1.0.0

指导现代 C++20/23 开发,涵盖 concepts、RAII、智能指针与 CMake,并要求在完成前运行 sanitizer 并做基准测试。

审阅范围

对所收集的 SKILL.md 及辅助文本/代码进行确定性静态分析。机器辅助候选和发现等待人工编辑复核;不评估动态行为或效果。

可观察能力

  • 先审视构建系统、编译选项与性能要求。
  • 用 C++20 concepts 设计类型安全的接口。
  • 应用 RAII、constexpr 与移动语义,避免裸 new 和 delete。
  • 运行 AddressSanitizer 与 UndefinedBehaviorSanitizer,并用真实负载做性能分析。

限制与范围

  • 需要支持 C++20/23、sanitizer 与 CMake 的编译器和工具链。
  • 性能目标由用户自行设定,文件中没有给出具体数值。
  • SIMD、并发与模板的细节位于独立参考文件中。

适用读者

  • 对既有代码做现代化改造的 C++ 开发者
  • 需要安全资源管理的系统程序员
  • 为 CMake 构建配置 sanitizer 的团队

技能包含哪些内容

文件清单来自记录提交中的采集源码。路径与大小属于结构观察,不代表质量评价。

个文件
6
Markdown 文件
6
个脚本
0
个引用
5
大小
47.8 KB
结构复杂度
低

文件清单

路径类型字节
skills/cpp-pro/references/build-tooling.md引用9.5 KB
skills/cpp-pro/references/concurrency.md引用10.7 KB
skills/cpp-pro/references/memory-performance.md引用8.9 KB
skills/cpp-pro/references/modern-cpp.md引用6.4 KB
skills/cpp-pro/references/templates.md引用7.7 KB
skills/cpp-pro/SKILL.md指令4.6 KB

SKILL.md 前置元数据

{
  "name": "cpp-pro",
  "description": "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 bottlenecks, concurrency issues, and build system configuration with CMake.",
  "license": "MIT",
  "metadata": {
    "author": "https://github.com/Jeffallan",
    "company": "https://synergetic.solutions",
    "version": "1.1.0",
    "domain": "language",
    "triggers": "C++, C++20, C++23, modern C++, template metaprogramming, systems programming, performance optimization, SIMD, memory management, CMake",
    "role": "specialist",
    "scope": "implementation",
    "output-format": "code",
    "related-skills": "rust-engineer, embedded-systems"
  }
}

对运行顺序的一种解读

此工作流根据源码材料重建表面顺序。除非明确记录受控评估,否则它属于暂定解读,而非真实运行轨迹。

  1. 01
    输入

    分析架构

    审视构建系统、编译选项与性能要求。

  2. 02
    操作

    用 concepts 设计

    使用 C++20 concepts 创建类型安全的接口。

  3. 03
    判断

    以 sanitizer 为门槛

    若 AddressSanitizer 或 UndefinedBehaviorSanitizer 报告问题,先修复所有内存与未定义行为错误。

  4. 04
    输出

    交付代码与说明

    交付头文件、实现文件、CMake 更新、使用示例测试及设计说明。

潜在风险面

静态发现用于提示安装前需要检查的位置,不能证明一项技能安全、恶意或有效。

有需要复核的项目

收集的文本中有 293 项确定性词法发现需要复核。发现可能仅位于文档中,不证明已执行或可被利用;仅含二进制的文件未扫描。

网络访问已观察到
文件写入已观察到
凭据使用未观察到
编辑安全提示

检查它提出的任何构建、sanitizer 或基准测试命令,并对内存安全相关修复自行补充测试。

上下文可能消耗在哪里

发现、激活与资源层具有不同含义。只有使用指定官方方法并记录模型的运行时,才显示精确数值。

精确 token 计数不可用

在管线使用明确模型执行官方精确计数之前,包括文件清单在内的所有 token 值均为 null。

未使用要求的官方方法记录 token 测量。本档案不会用字符数、文件大小或估计值替代。

受控评估

没有受控评估

该技能仅具备以上标明的证据。不声称任何任务成功率、token 效率、延迟或质量优势。

尚未测试

在源码可见的情况下使用

安装命令
git clone https://github.com/Jeffallan/claude-skills.git cd claude-skills # 将该 Skill 目录复制到以下任一位置: # ~/.claude/skills/cpp-pro # .claude/skills/cpp-pro
  1. 打开固定版本源码:https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/cpp-pro/SKILL.md。
  2. 审阅许可证、前置条件和所有捆绑的参考文件。
  3. 将 Skill 安装到个人或项目级 Claude Code skills 目录。
  4. 重启或刷新 Claude Code,使该 Skill 可被发现。
验证安装

确认目标位置存在 cpp-pro/SKILL.md,然后让 Claude Code 在一个小型测试任务中使用 cpp-pro Skill。

前置条件

  • 需要支持 C++20/23、sanitizer 与 CMake 的编译器和工具链。
  • 性能目标由用户自行设定,文件中没有给出具体数值。
  • SIMD、并发与模板的细节位于独立参考文件中。

示例提示词

代表性任务

Use the cpp-pro skill to refactor src/buffer.cpp to use RAII and C++20 concepts, update the CMakeLists.txt with warnings and sanitizers, and explain your design decisions.

使用前检查

Read the cpp-pro skill at https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/cpp-pro/SKILL.md and its referenced files. Explain its workflow, required tools, permissions and the main risks before I decide whether to install it.

附上限制条件的判断

优势

  • 把 sanitizer 与全部编译警告设为必须项。
  • 附带 concepts、RAII 封装与智能指针的精简示例。

注意事项

  • 诸如一律使用 auto 的规则未必适合所有代码风格。
  • 套用到遗留代码可能意味着大规模重构。
研究结论

一套严谨的现代 C++ 规则,最适合能采用 C++20 与 sanitizer 的代码库。

从结构上保持可追溯

档案是对公开工件的限时阅读,而非背书。请通过来源链接检查确切的上游材料。

Jeffallanclaude-skillsskills/cpp-pro
来源类型
社区
提交
67c1961b180dc92cf08983344627109e983e8f51
采集时间
2026年11月20日
最近核查
2026年11月20日
上游许可证
MIT
仓库星标
12,464
内容依据

仅对提供的文件进行确定性词法解析、YAML frontmatter 校验、文件清单、来源描述的工作流程提取和启发式暂定分类。由机器生成;无 LLM、执行、动态测试或人工编辑批准。