Cpp rules

From softspark/ai-toolkit · View interactive version

Cpp rules is an AI agent skill from the GitHub repository softspark/ai-toolkit. C++ coding rules: style, patterns, security, testing. Triggers: .cpp, .cc, .cxx, .hpp, .h, CMakeLists.txt, Makefile, GoogleTest, clang-tidy.

How to use this skill

Skill file

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

Modern C++ (17/20/23)

Memory Management

Functions

Includes and Dependencies

Avoid

Formatting

C++ Frameworks

CMake

Boost

Qt

gRPC

Networking (Asio)

Database

Package Management

C++ Patterns

Error Handling

RAII Patterns

Smart Pointer Patterns

Concurrency

Template Patterns

Design Patterns

Anti-Patterns

C++ Security

Buffer Overflow Prevention

Memory Safety

Integer Safety

Input Validation

Secure Coding

Dependencies

Concurrency Safety

Compiler Hardening

C++ Testing

Framework

File Naming

Structure (GoogleTest)

Assertions

Parameterized Tests

Mocking (GoogleMock)

Build Integration

Best Practices

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.