01
It starts by itself
pull request opened. Runs in GitHub Actions.
- ↻ pull request opened
pull_request.opened
Green C++ builds in every config.
Install the CMake skill and make it a habit: follow https://gethabit.dev/skills/mohitmishra786/cmake.md
2K installs265 starsMIT licenceSource on GitHub ↗

CMake
by mohitmishra786 · 2K installs
The skill
Cmake is a skill for C and C++ developers who write modern target-first CMakeLists.txt files: out-of-source builds, generators, dependencies with find_package and FetchContent, sanitizers, cross-compilation and presets.
Only when you ask.
The habit
Green C++ builds in every config.
↻ Runs by itselfpull request opened
When does it start? How does it check its work? What does it remember?
Stops after one pull request per run, with one retry.
Check changed CMakeLists.txt files use target_* commands with PUBLIC, PRIVATE or INTERFACE.
Run cmake --preset release.
Run cmake --build --preset release.
Configure with -DENABLE_ASAN=ON into build-asan and build it.
Match failures to the skill's common errors table and log the fix.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the CMake skill helps.
The skill always uses cmake -S . -B build to keep sources clean.
The skill uses cmake_minimum_required(VERSION 3.20).
Copy the prompt at the top into your agent. It installs the skill from mohitmishra786/low-level-dev-skills and sets up the habit. Or run npx skills add mohitmishra786/low-level-dev-skills --skill cmake.
Yes. It is published under MIT. Habit is free too.
Install the CMake skill and make it a habit: follow https://gethabit.dev/skills/mohitmishra786/cmake.md
All mohitmishra786 skills →More code skills →
Works in
Made by mohitmishra786, published under MIT. Habit links to the original and never changes it. Is this your skill?