Back to skills
SKILL.md
Toolchain Cpp
ASecurityExecutes modern C++ build workflows using CMake, Clang-Format, Clang-Tidy, and Google Test / Catch2 test harnesses.
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added November 21, 2026
Security analysis
100/100npx -y skills add sun-flat-yamada/dotfiles --skill toolchain-cpp --agent claude-codeAre you the author of Toolchain Cpp?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sun-flat-yamada-toolchain-cpp)---
name: "toolchain-cpp"
description: "Executes modern C++ build workflows using CMake, Clang-Format, Clang-Tidy, and Google Test / Catch2 test harnesses."
category: "skill"
status: "active"
alwaysApply: false
globs:
- "**/*.cpp"
- "**/*.hpp"
- "**/*.cc"
- "**/*.cxx"
- "**/*.h"
- "**/CMakeLists.txt"
tags:
- "skill"
- "toolchain"
- "cpp"
- "build"
- "test"
---
# Skill: C++ Toolchain (`toolchain-cpp`)
## Instructions
1. **Configure & Build with CMake**:
```bash
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DENABLE_SANITIZERS=ON
cmake --build build -j
```
2. **Formatting & Linting**:
```bash
clang-format -i src/**/*.cpp include/**/*.hpp
clang-tidy -p build src/**/*.cpp
```
3. **Testing**:
```bash
ctest --test-dir build --output-on-failure
```
## Best Practices
- Keep build configurations strictly out-of-source (`build/`).
- Enforce formatting using `.clang-format`.
Attribution
Related skills
View all in tools →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.