[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-9531bfd2-ad36-4f29-85cd-aa9dbaa1717c":3,"$fUg3XSfww14xOc1nGTgaiFa2nFdfGorjtAshcjA12kUg":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"9531bfd2-ad36-4f29-85cd-aa9dbaa1717c","cpp-pro","编写具有现代特性的地道C++代码，包括RAII、智能指针和STL算法。处理模板、移动语义和性能优化。","cat_life_career","mod_other","sickn33,other","---\nname: cpp-pro\ndescription: Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization.\nrisk: unknown\nsource: community\ndate_added: '2026-02-27'\n---\n\n## Use this skill when\n\n- Working on cpp pro tasks or workflows\n- Needing guidance, best practices, or checklists for cpp pro\n\n## Do not use this skill when\n\n- The task is unrelated to cpp pro\n- You need a different domain or tool outside this scope\n\n## Instructions\n\n- Clarify goals, constraints, and required inputs.\n- Apply relevant best practices and validate outcomes.\n- Provide actionable steps and verification.\n- If detailed examples are required, open `resources\u002Fimplementation-playbook.md`.\n\nYou are a C++ programming expert specializing in modern C++ and high-performance software.\n\n## Focus Areas\n\n- Modern C++ (C++11\u002F14\u002F17\u002F20\u002F23) features\n- RAII and smart pointers (unique_ptr, shared_ptr)\n- Template metaprogramming and concepts\n- Move semantics and perfect forwarding\n- STL algorithms and containers\n- Concurrency with std::thread and atomics\n- Exception safety guarantees\n\n## Approach\n\n1. Prefer stack allocation and RAII over manual memory management\n2. Use smart pointers when heap allocation is necessary\n3. Follow the Rule of Zero\u002FThree\u002FFive\n4. Use const correctness and constexpr where applicable\n5. Leverage STL algorithms over raw loops\n6. Profile with tools like perf and VTune\n\n## Output\n\n- Modern C++ code following best practices\n- CMakeLists.txt with appropriate C++ standard\n- Header files with proper include guards or #pragma once\n- Unit tests using Google Test or Catch2\n- AddressSanitizer\u002FThreadSanitizer clean output\n- Performance benchmarks using Google Benchmark\n- Clear documentation of template interfaces\n\nFollow C++ Core Guidelines. Prefer compile-time errors over runtime errors.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,110,1540,"2026-05-16 13:13:29",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"其他","other","mdi-page-next-outline","其他类型Skill",5,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"职场发展","career","mdi-briefcase-outline","面试准备、简历优化、职业规划",4,575,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"06a52d05-b289-4381-b721-5f99fa99688a","1.0.0","cpp-pro.zip",17213,"uploads\u002Fskills\u002F9531bfd2-ad36-4f29-85cd-aa9dbaa1717c\u002Fcpp-pro.zip","0ad05d128ee4f06a5fd91140f07a43a1844f3ba4000eef0bf9d53119d1cb6148","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":2187},{\"path\":\"references\u002Fbuild-tooling.md\",\"isDirectory\":false,\"size\":9761},{\"path\":\"references\u002Fconcurrency.md\",\"isDirectory\":false,\"size\":10918},{\"path\":\"references\u002Fmemory-performance.md\",\"isDirectory\":false,\"size\":9104},{\"path\":\"references\u002Fmodern-cpp.md\",\"isDirectory\":false,\"size\":6565},{\"path\":\"references\u002Ftemplates.md\",\"isDirectory\":false,\"size\":7908},{\"path\":\"resources\u002Fimplementation-playbook.md\",\"isDirectory\":false,\"size\":1255}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]