cpp-conventions

Standardize C++ coding conventions using clang-format and clang-tidy.

6|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/archibate/archibate-skills --skill cpp-conventions
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cpp-conventions
Source: https://github.com/archibate/archibate-skills/tree/main/old-skills/trash-skills/cpp-conventions
Command: npx skills add https://github.com/archibate/archibate-skills --skill cpp-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

C++ projects often diverge in formatting and naming, making code reviews time-consuming and onboarding slow. This Skill provides a cohesive set of conventions to improve readability, maintainability, and consistency across a codebase.

Core Features & Use Cases

  • Tooling guidelines: clang-format for formatting, clang-tidy for linting, and project-wide configuration to enforce style.
  • Style conventions: naming, member order, templates, and comments to ensure uniform APIs.
  • Use cases: starting new C++ projects or refactoring legacy code to align with the standard.

Quick Start

Run clang-format and clang-tidy on your C++ sources to enforce and verify the conventions across your codebase.

Frequently Asked Questions about cpp-conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize C++ coding conventions across an existing codebase?▼

To standardize C++ coding conventions, apply unified formatting and naming rules across your files, covering member order, templates, and comments to improve readability and maintainability.

What is the best way to enforce C++ style guide rules in a project?▼

The best way to enforce a C++ style guide is by integrating clang-format for formatting and clang-tidy for linting, combined with review workflows to ensure consistent adherence.

Can I use clang-format and clang-tidy to standardize C++ style for new projects?▼

Yes, you can use clang-format and clang-tidy to establish tooling guidelines and validation rules, ensuring uniform APIs and consistent style when starting new C++ projects.

Why does C++ code review take so long when formatting diverges across files?▼

C++ code reviews take longer when formatting diverges because reviewers must manually check inconsistent naming and class organization instead of focusing on logic, slowing down onboarding.

Do I need clang-tidy to check C++ naming conventions and class organization?▼

Yes, you need clang-tidy to lint and verify C++ naming conventions, member order, and template usage, while clang-format handles the structural formatting and indentation.

What are the limitations of using coding conventions for legacy C++ code?▼

When applying coding conventions to legacy C++ code, limitations include potential merge conflicts from large formatting changes and the need to carefully refactor existing class organization.