agentleFS
davidYichengWeidavidYichengWei/agentic-engineering-framework/skills/std-cpp/SKILL.md

std-cpp

Skill158 starsChanged 9 months agoMITView on GitHub

提供 C++ 编码规范(基于 Google C++ Style Guide)。当编写或 review C++ 代码(.cc/.cpp/.h 文件)时使用。

The file

Files
SKILL.md

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,包含:

  • 规范等级定义(必须/推荐/可选)
  • 头文件、作用域、类、函数规范
  • 命名、注释、格式规范

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.