$npx skillfedfor your agent

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

161 21 Apache-2.0updated by softspark

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.

manual: git clone https://github.com/softspark/ai-toolkit → cp -r ai-toolkit/app/skills/cpp-rules ~/.claude/skills/cpp-rules
app/skills/cpp-rules/SKILL.md · version 32cb6dce

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.

Same gist for agents: .md · .json

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 auto for iterator types and complex template deductions.
  • Use std::optional<T> instead of sentinel values or pointers for optional returns.
  • Use std::variant over union types. Use std::visit for dispatch.
  • Use std::string_view for 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

cpp-coding-standards
by affaan-m · affaan-m/ECC

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.

MITupdated Jul 2026
★ 234,207repo stars
Cpp Idioms
by irahardianto · irahardianto/awesome-agv

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.

MITupdated Jul 2026
★ 150repo stars
cpp-expert
by personamanagmentlayer · personamanagmentlayer/pcl

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.

Apache-2.0updated Mar 2026
★ 38repo stars
cpp
by miles990 · miles990/claude-software-skills

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.

MITupdated Jan 2026
★ 19repo stars
cpp-coding-standards
by xu-xiang · xu-xiang/everything-claude-code-zh

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.

MITdocs in Chineseupdated Mar 2026
★ 1,767repo stars
Qt Cpp Review
by TheQtCompanyRnD · TheQtCompanyRnD/agent-skills

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.

no license declared → metadata onlyupdated Jul 2026
★ 322repo stars

More skills cpp-pro (MIT) · Cpp (unlicensed) · cmake (MIT) · ruby-patterns (Apache-2.0) · architecture-audit (Apache-2.0)

Tags
code-style-guidemodern-cpp-featuresmemory-safetysecure-codingtesting-frameworkbuild-systemdesign-patternsconcurrency-threadingstatic-analysisdependency-management