cpp-rules
cpp-rules provides comprehensive C++ development standards drawn from ai-toolkit's rule library. It covers naming conventions, modern language features, memory management with smart pointers, and framework guidance for CMake, Boost, Qt, and gRPC. The rules emphasize RAII patterns, error handling strategies, concurrency practices, and design patterns to maintain code quality and security across C++ projects.
cpp-rules applies C++ coding standards covering style, patterns, security, and testing to guide code reviews and development.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-27
cpp-rules applies C++ coding standards covering style, patterns, security, and testing to guide code reviews and development. cpp-rules provides comprehensive C++ development standards drawn from ai-toolkit's rule library. It covers naming conventions, modern language features, memory management with smart pointers, and framework guidance for CMake, Boost, Qt, and gRPC. The rules emphasize RAII patterns, error handling strategies, concurrency practices, and design patterns to maintain code quality and security across C++ projects.
Use it when
- cpp-rules teaches modern C++ 17, 20, and 23 features and idioms to help you write cleaner, more efficient code.
- Yes, cpp-rules emphasizes RAII patterns and smart pointer usage for safe memory management.
Verify before relying
Read SKILL.md below before installing (1 file). Open directory: indexed for reading, not audited.
Install
softspark/ai-toolkit/cpp-rules · repository language: Python
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What C++ coding style guide does cpp-rules provide?
cpp-rules delivers comprehensive C++ development standards from ai-toolkit's rule library, covering naming conventions, code organization, and style practices. The skill guides you through PascalCase and camelCase conventions, modern formatting principles, and consistency rules to maintain professional code quality across your C++ projects.
How does cpp-rules help with modern C++ 17, 20, and 23 standards?
cpp-rules teaches modern C++ 17, 20, and 23 features and idioms to help you write cleaner, more efficient code. The skill covers contemporary language capabilities, best practices for leveraging new standards, and patterns that take advantage of recent C++ evolution while maintaining compatibility with your project's requirements.
Does cpp-rules address C++ memory management and RAII with smart pointers?
Yes, cpp-rules emphasizes RAII patterns and smart pointer usage for safe memory management. The skill provides guidance on proper resource acquisition and release, smart pointer selection, and techniques to prevent memory leaks and dangling pointers in your C++ applications.
What frameworks does cpp-rules cover for C++ development?
cpp-rules offers framework guidance for CMake, Boost, Qt, and gRPC. The skill helps you apply best practices when building with CMake, leveraging Boost libraries, developing with Qt, and implementing gRPC services, ensuring consistent standards across your entire C++ ecosystem.
How can cpp-rules help prevent C++ security issues like buffer overflow?
cpp-rules implements secure C++ practices with buffer overflow and memory safety checks. The skill guides input validation, secure coding patterns, compiler hardening flags, and defensive programming techniques to protect your applications from common vulnerabilities and exploitation vectors.
Does cpp-rules support C++ testing with GoogleTest?
cpp-rules provides guidance for writing and structuring C++ unit tests with GoogleTest and gmock. The skill covers test organization, mocking strategies, and testing best practices to help you build reliable, maintainable test suites for your C++ code.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
C++ Rules
These rules come from app/rules/cpp/ in ai-toolkit. They cover
the project's standards for coding style, frameworks, patterns,
security, and testing in C++. Apply them when writing or
reviewing C++ code.
C++ Coding Style
Naming
- PascalCase: classes, structs, enums, type aliases, concepts.
- camelCase or snake_case: functions, methods, variables (be consistent per project).
- UPPER_SNAKE: macros, compile-time constants.
- Prefix member variables with
m_or suffix with_(pick one convention). - Namespace names: lowercase, short (
namespace io,namespace util).
Modern C++ (17/20/23)
- Use
autofor iterator types and complex template deductions. - Use
std::optional<T>instead of sentinel values or pointers for optional returns. - Use
std::variantover union types. Usestd::visitfor dispatch. - Use
std::string_viewfor non-owning string parameters. - Use structured bindings: `auto [key, value] =
(truncated - see the full file via the links below)
File tree — 1 file
app/skills/cpp-rules/SKILL.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Apply C++ coding standards and best practices to new or existing code”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
This skill guides developers through modern C++ best practices rooted in the C++ Core Guidelines, covering type safety, resource management via RAII, immutability, and clear interfaces. Apply it when writing, reviewing, or refactoring C++ code to maintain consistency and prevent common errors across your codebase.
Cpp Idioms teaches you how to write safe, efficient C++ code using modern language features and proven design patterns. Learn RAII principles, smart pointer ownership models, move semantics, and error handling with std::expected—all grounded in C++17/20/23 standards. The skill covers interfaces, dependency injection, testing strategies, and anti-patterns to avoid, with practical code examples and tooling guidance.
C++ Expert provides in-depth instruction on contemporary language standards and advanced development practices. Learn concepts, ranges, coroutines, and memory strategies alongside performance techniques like zero-cost abstractions and compile-time computation. Build proficiency with smart pointers, move semantics, and template metaprogramming for production-grade applications.
This skill covers contemporary C++ practices from C++11 onward, emphasizing memory safety through smart pointers (unique_ptr, shared_ptr, weak_ptr) and the RAII pattern for automatic resource cleanup. You'll explore move semantics and perfect forwarding to optimize performance, dive into function and class templates with specialization techniques, and learn STL containers and algorithms for efficient data manipulation.
This skill delivers comprehensive coding standards rooted in the C++ Core Guidelines, covering modern C++17/20/23 practices. It emphasizes type safety, resource management through RAII, immutability by default, and clear intent in code design. Use it when writing new code, reviewing existing implementations, or making architectural decisions to enforce consistent, safe, and idiomatic C++ across your projects.
Qt Cpp Review combines deterministic linting with parallel agent-driven analysis to audit Qt6 C++ code across model contracts, ownership, threading, API correctness, error handling, and performance. It reports only high-confidence issues with structured mitigations and operates read-only, never modifying your code.
More skills cpp-pro (MIT) · Cpp (unlicensed) · cmake (MIT) · ruby-patterns (Apache-2.0) · architecture-audit (Apache-2.0)