format

star 284

Format C++ code using clang-format

spiriMirror By spiriMirror schedule Updated 3/6/2026

name: format description: Format C++ code using clang-format disable-model-invocation: true

Format

Overview

Format C++ code using the .clang-format file in the project root.

Format Changed Files

Format only the files changed relative to main:

git diff --name-only --diff-filter=ACMR main -- '*.h' '*.hpp' '*.cpp' '*.inl' '*.cu' '*.cuh' | xargs clang-format -i

Format a Specific File

clang-format -i <file>

Format All C++ Files in a Directory

find <directory> -type f \( -name '*.h' -o -name '*.hpp' -o -name '*.cpp' -o -name '*.inl' -o -name '*.cu' -o -name '*.cuh' \) -exec clang-format -i {} +
Install via CLI
npx skills add https://github.com/spiriMirror/libuipc --skill format
Repository Details
star Stars 284
call_split Forks 48
navigation Branch main
article Path SKILL.md
More from Creator