std-cpp
Skill158 starsChanged 9 months agoMITView on GitHub
提供 C++ 编码规范(基于 Google C++ Style Guide)。当编写或 review C++ 代码(.cc/.cpp/.h 文件)时使用。
In this repository14 other files it gives its agents.
- bp-architecture-designSkill
- bp-coding-best-practicesSkill
- bp-component-designSkill
- bp-distributed-systemsSkill
- bp-performance-optimizationSkill
- bp-skill-authoringSkill
- self-refinementSkill
- std-goSkill
- troubleshootingSkill
- workflow-code-generationSkill
- workflow-code-reviewSkill
- workflow-requirements-clarificationSkill
- workflow-system-designSkill
- workflow-test-generationSkill
The file
Files
C++ 编码规范
基于 Google C++ Style Guide,使用 C++17。
核心规则速查
| 类别 | 必须遵守 |
| 版本 | C++17,不用 C++2a 功能 |
| 头文件 | self-contained,#pragma once,include 顺序规范 |
| 命名空间 | 必须使用,禁止头文件全局 using |
| 类 | 构造函数禁止调用虚函数,单参数构造函数加 explicit |
| 命名 | 类型 PascalCase,变量 snake_case,常量 kCamelCase |
| 转换 | 使用 C++ 风格(static_cast 等),禁止 C 风格 |
| 自增 | 迭代器用前置 ++i |
完整规范
详见 reference/full-standards.md,包含:
- 规范等级定义(必须/推荐/可选)
- 头文件、作用域、类、函数规范
- 命名、注释、格式规范
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

