be-code-style
Installation
SKILL.md
What I do
Fix C++ code formatting issues in the BE and Cloud modules using the project's clang-format configuration (v16).
When to use me
- Before committing BE/Cloud C++ code changes
- When CI reports clang-format failures
- When you need to check or fix C++ code style
Prerequisites
You need to confirm that the major version of the called clang-format is 16. If the current environment's default does not meet this requirement, try the following:
- If
.vscode/settings.jsonexists, use the clang-format.executable item in it. - If it is a worktree directory, use the
.vscode/settings.jsonfrom the main directory. - Check the path to the compiler toolchain by trying to find it from the
PATHenvironment variable, the current directory, and the main directory'scustom_env.sh. Look for a clang-format with the major version number 16 in that path and its parent directory.