Claude Code C++ naming skill for classes, namespaces, and members
Apply Puffin's C++ conventions to new types, matching source and header names and keeping scope and member conventions consistent.
中文Install in Claude Code
Use Claude Code in a local C++ project with a small read-only label class. Use a compiler for the project's current standard and keep names consistent.
- Review `.claude/skills/coding-standard-cpp/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/coding-standard-cpp/` in your project and save the reviewed file as `.claude/skills/coding-standard-cpp/SKILL.md`.
- Start Claude Code from that project's root, then select `/coding-standard-cpp` in the slash menu.
Example task
Create a trail label class. Give the source and header one base name, put the class in a lowercase namespace, and read the fixture text through a public accessor.
`TrailLabel.cpp` · `TrailLabel.hpp` · `trail_display` · `m_text` · `Pine Loop`What to check
`TrailLabel.hpp` declares `trail_display::TrailLabel` with member `m_text`. Its public accessor returns `Pine Loop`.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should I import the namespace in a public header?
Keep qualified names in the header consistent. A caller can choose appropriate local syntax inside its implementation file.