一键导入
cpp
Modern C++ best practices with C++17/20 features. Trigger: When writing C++ code with modern standards.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Modern C++ best practices with C++17/20 features. Trigger: When writing C++ code with modern standards.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Ask which skill or flow fits your situation. A router over the skills in this repo.
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
Docling document parser for PDF, DOCX, PPTX, HTML, images, and 15+ formats. Use when parsing documents, extracting text, converting to Markdown/HTML/JSON, chunking for RAG pipelines, or batch processing files. Triggers on DocumentConverter, convert, convert_all, export_to_markdown, HierarchicalChunker, HybridChunker, ConversionResult.
Autonomous review agent that examines past conversations and extracts learning opportunities. Records observations, updates memory, creates and patches skills. Loaded by the autolearn plugin during background review cycles. Do NOT load this skill during normal conversation; it is for the autolearn-reviewer agent only.
| name | cpp |
| description | Modern C++ best practices with C++17/20 features. Trigger: When writing C++ code with modern standards. |
| license | Apache-2.0 |
| metadata | {"author":"poletron","version":"1.0","scope":["root"],"auto_invoke":"Working with cpp"} |
| Use this skill when | ["Writing C++17/20 code","Managing memory with smart pointers","Using STL containers and algorithms","Implementing RAII patterns"] |
// ✅ ALWAYS: Use smart pointers
auto user = std::make_unique<User>("John");
auto shared = std::make_shared<Config>();
// ❌ NEVER: Raw new/delete
User* user = new User("John");
delete user;
// ✅ ALWAYS: Resource management through constructors/destructors
class FileHandle {
std::fstream file_;
public:
FileHandle(const std::string& path) : file_(path) {}
~FileHandle() { if (file_.is_open()) file_.close(); }
};
// ✅ Use auto for type deduction
auto items = std::vector<int>{1, 2, 3};
// ✅ Use range-based for loops
for (const auto& item : items) {
process(item);
}
// ✅ Use structured bindings
auto [name, age] = getPerson();
Need unique ownership? → std::unique_ptr
Need shared ownership? → std::shared_ptr
Need optional value? → std::optional
Need multiple types? → std::variant
Need string views? → std::string_view
g++ -std=c++20 -Wall -Wextra main.cpp -o app
clang++ -std=c++20 main.cpp -o app
cmake -B build && cmake --build build