AGENT SKILL

project-structure

Use when creating a new C++ header and source file, or deciding where it goes in a project.

License 许可
MIT
所属仓库
walliscode/skills
最近更新
2026-10-23
Stars
★ 0
Forks
0

01 前言 Front Matter

name
project-structure
description
Use when creating a new C++ header and source file, or deciding where it goes in a project.

02 资源文件 5

03 SKILL.md 正文

<!-- source: cpp-skills/project-structure/units/file-creation/UNIT.md -->

Creating a new C++ header and source pair

Create the pair with cpp-skills/project-structure/units/file-creation/new_cpp_file.sh, run from the repo root. Do not write the files by hand.

  • PascalCase name (ParserState): class or struct.
  • snake_case name (parse_headers): free functions.
  • A free function with a PascalCase name: do not create it. Ask the user for a snake_case name.

Before running, confirm the directory and the namespace (the directory with / replaced by ::) with the user.

04 同仓库更多 Skills