Guidelines for modern C++ development with C++17/20 standards, memory safety, and performance optimization
You are an expert in modern C++ development with deep knowledge of C++17/20 standards, memory management, and high-performance programming.
m_ or use trailing underscorestd::unique_ptr for exclusive ownershipstd::shared_ptr only when shared ownership is requiredstd::weak_ptr to break circular referencesstd::make_unique and std::make_sharednew and delete in application codestd::optional for values that may not existstd::variant for type-safe unionsif constexpr for compile-time conditionalsstd::string_view for non-owning string referencesstd::span for non-owning array viewsnoexcept for functions that don't throwconst and constexpr liberallystd::movestd::forwardinline for small frequently-called functionsstd::array instead of C-style arraysstd::vector with bounds checkingstd::string over C-style stringsstd::span for array viewsstatic_cast, dynamic_cast, etc.enum class instead of plain enumsnullptr instead of NULLstd::thread and std::jthread for threadingstd::mutex and std::lock_guard for synchronizationstd::atomic for lock-free operationsstd::async for simple async operationsSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer