$npx skillfedfor your agent

cpp-coding-standards

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.

C++ Coding Standards enforces type-safe and resource-safe practices aligned with the C++ Core Guidelines.

AI-generated summary based on this skill's SKILL.md

234,207 35,692 MITupdated by affaan-m

Decision gist · record as of 2026-07-27

C++ Coding Standards enforces type-safe and resource-safe practices aligned with the C++ Core Guidelines. 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.

manual: git clone https://github.com/affaan-m/ECC → cp -r ECC/skills/cpp-coding-standards ~/.claude/skills/cpp-coding-standards
skills/cpp-coding-standards/SKILL.md · version 77e5f03a

Use it when

  • cpp-coding-standards covers RAII (Resource Acquisition Is Initialization), smart pointers like unique_ptr and shared_ptr.
  • cpp-coding-standards addresses modern C++ best practices including C++17 and C++20 coding style, const correctness, template concepts.

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

affaan-m/ECC/cpp-coding-standards · repository language: JavaScript

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 are C++ Core Guidelines and how does cpp-coding-standards apply them?

cpp-coding-standards teaches modern C++ best practices rooted in the C++ Core Guidelines, emphasizing type-safe, resource-safe coding. The skill guides you through enforcing these guidelines when writing new code or reviewing existing implementations, helping maintain consistency and prevent common errors across your codebase.

How do I learn RAII, smart pointers, and memory management best practices?

cpp-coding-standards covers RAII (Resource Acquisition Is Initialization), smart pointers like unique_ptr and shared_ptr, and modern memory management patterns. The skill teaches you to use these mechanisms to achieve resource safety and eliminate manual memory leaks, making your C++ code more reliable and maintainable.

What modern C++ best practices does this skill cover for C++17 and C++20?

cpp-coding-standards addresses modern C++ best practices including C++17 and C++20 coding style, const correctness, template concepts, and type safety guidelines. Apply this skill when adopting newer language features to write cleaner, safer code that leverages the latest standard improvements.

How can cpp-coding-standards help me avoid C++ anti-patterns?

cpp-coding-standards identifies common C++ anti-patterns and unsafe coding idioms to help you recognize and eliminate them. The skill teaches safer alternatives and design patterns, supporting your code review process and refactoring efforts to modernize legacy C++ code.

How do I use const correctness and immutability in C++ architectural decisions?

cpp-coding-standards guides you through const-correctness principles and immutability patterns to inform your architectural choices. By making const the default and designing interfaces that enforce immutability where appropriate, you create clearer contracts and prevent accidental mutations in your codebase.

Can cpp-coding-standards help me review or refactor existing C++ code?

Yes. cpp-coding-standards is designed to help you review and refactor existing C++ code for modern standards compliance. Use it to assess code against Core Guidelines, identify opportunities to adopt RAII and smart pointers, improve type safety, and modernize your codebase to current best practices.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

C++ Coding Standards (C++ Core Guidelines)

Comprehensive coding standards for modern C++ (C++17/20/23) derived from the C++ Core Guidelines. Enforces type safety, resource safety, immutability, and clarity.

When to Use

  • Writing new C++ code (classes, functions, templates)
  • Reviewing or refactoring existing C++ code
  • Making architectural decisions in C++ projects
  • Enforcing consistent style across a C++ codebase
  • Choosing between language features (e.g., enum vs enum class, raw pointer vs smart pointer)
When NOT to Use
  • Non-C++ projects
  • Legacy C codebases that cannot adopt modern C++ features
  • Embedded/bare-metal contexts where specific guidelines conflict with hardware constraints (adapt selectively)

Cross-Cutting Principles

These themes recur across the entire guidelines and form the foundation:

  1. RAII everywhere (P.8, R.1, E.6,

(truncated - see the full file via the links below)

File tree — 1 file
skills/cpp-coding-standards/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 › “Enforce type-safe, resource-safe C++ practices following Core Guidelines”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

cpp-rules
by softspark · softspark/ai-toolkit

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.

Apache-2.0updated Jul 2026
★ 161repo 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
cpp-pro
by Jeffallan · Jeffallan/claude-skills

C++ Pro is a specialist skill for building and refactoring high-performance C++ applications with modern C++20/23 standards. It guides you through architecture analysis, type-safe design with concepts, zero-overhead implementations using RAII and constexpr, and rigorous quality verification with sanitizers and profiling. Perfect for tackling performance bottlenecks, concurrency challenges, template metaprogramming, and CMake configuration.

MITupdated May 2026
★ 10,759repo 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
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-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

More skills java-coding-standards (MIT)

Tags
resource-safetytype-systemmemory-managementmodern-cppcode-qualitydesign-patternsbest-practicesstatic-analysisimmutability-firstcompile-time-safety