Cmake

CMake build system skill for C/C++ projects. Use when writing or refactoring CMakeLists.txt, configuring out-of-source builds, selecting generators (Ninja, Make, VS), managing targets and dependencies with target_link_libraries, integrating external packages via find_package or FetchContent, enabling sanitizers, setting up toolchain files for cross-compilation, or exporting CMake packages. Activates on queries about CMakeLists.txt, cmake configure errors, target properties, install rules, CPack, or CMake presets.

293 stars 36 forksWriting & Content

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add mohitmishra786/low-level-dev-skills --skill cmake
Manual install
git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git /tmp/low-level-dev-skills
mkdir -p ~/.claude/skills
cp -r /tmp/low-level-dev-skills/skills/build-systems/cmake ~/.claude/skills/cmake

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# CMake

## Purpose

Guide agents through modern (target-first) CMake for C/C++ projects: out-of-source builds, dependency management, generator selection, and integration with CI and IDEs.

## Triggers

- "How do I write a CMakeLists.txt for my project?"
- "How do I add an external library with CMake?"
- "CMake can't find my package / library"
- "How do I enable sanitizers in CMake?"
- "How do I cross-compile with CMake?"
- "How do I use CMake Presets?"

## Workflow

### 1. Modern CMake principles

- Define targets, not variables. Use `target_*` commands.
- Use `PUBLIC`/`PRIVATE`/`INTERFACE` to control property propagation.
- Never use `include_directories()` or `link_libraries()` (legacy).
- Minimum CMake version: `cmake_minimum_required(VERSION 3.20)` for most features.

### 2. Minimal project

```cmake
cmake_minimum_required(VERSION 3.20)
project(MyApp VERSION 1.0 LANGUAGES C CXX)

set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(myapp
    src/main.c
    src/utils.c
)

target_include_directories(myapp PRIVATE include)
target_compile_options(myapp PRIVATE -Wall -Wextra)
```

### 3. Static / shared libraries
Read the full skill on GitHub

Details

Skill name
cmake
Path
skills/build-systems/cmake/SKILL.md
License
MIT
Repo updated
14 November 2026

FAQ

What does the Cmake skill do?

CMake build system skill for C/C++ projects. Use when writing or refactoring CMakeLists.txt, configuring out-of-source builds, selecting generators (Ninja, Make, VS), managing targets and dependencies with target_link_libraries, integrating external packages via find_package or FetchContent, enabling sanitizers, setting up toolchain files for cross-compilation, or exporting CMake packages. Activates on queries about CMakeLists.txt, cmake configure errors, target properties, install rules, CPack, or CMake presets.

How do I install the Cmake skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add mohitmishra786/low-level-dev-skills --skill cmake. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Cmake popular?

It lives in mohitmishra786/low-level-dev-skills, which has 293 GitHub stars and 36 forks.

Related skills

Abi and Calling Conventions

293

mohitmishra786/low-level-dev-skills

ABI and calling conventions skill for cross-language boundaries. Use when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Activates on queries about calling convention, ABI, System V AMD64, AAPCS, stack frame, variadic function, or FFI registers.

Software Development36

Adc Dac Baremetal

293

mohitmishra786/low-level-dev-skills

Bare-metal ADC and DAC skill. Use when configuring analog sampling, DMA-driven ADC, calibration, or DAC output on MCUs. Activates on queries about ADC bare-metal, sampling time, DMA ADC, or DAC channel setup.

Other36

Af Xdp

293

mohitmishra786/low-level-dev-skills

AF_XDP skill for high-performance XDP sockets. Use when creating AF_XDP sockets, configuring UMEM and XSK rings, XDP_REDIRECT programs, copy vs zero-copy mode, or comparing with DPDK. Activates on queries about AF_XDP, xsk_umem, XDP_REDIRECT, libbpf xsk, or zero-copy XDP.

Software Development36

Cold Outreach Personalizer

171

aiskilloftheweek/claude-ai-skill-of-the-week

Generates hyper-personalized cold outreach messages (email, LinkedIn DM, connection request) from raw prospect research. Use this skill every time the user wants to write a personalized cold email, LinkedIn message, or outbound sequence for a specific prospect. Trigger on phrases like "write a cold email to", "outreach for this prospect", "LinkedIn message for", "cold email for", "personalize this outreach", "write a sequence for", or whenever the user pastes prospect information and asks for a message. Always trigger this skill when the goal is to write outreach that references specific, real

Writing & Content35

Bootloaders Embedded

293

mohitmishra786/low-level-dev-skills

Embedded bootloader skill for firmware update and app handoff. Use when writing a custom bootloader, jumping to application code, relocating VTOR, or implementing DFU/USB firmware update on Cortex-M. Activates on queries about bootloader jump, vector table relocation, application entry point, STM32 DFU, or dual-bank flash.

Writing & Content36

Content Mine

171

aiskilloftheweek/claude-ai-skill-of-the-week

Interactive interview that extracts content ideas from a professional's real work week. Through a structured but natural conversation, Claude helps the user discover insights, stories, and angles from their daily work that can become high-value personal brand content (LinkedIn posts, newsletters, talks, etc.). Use this skill whenever someone wants to find content ideas from their work, mentions "what should I post about", "I don't know what to write", "help me find content", "content from my week", "personal brand content", "weekly content review", or anything about mining their professional e

Writing & Content35

Browse the most popular Claude skills, all writing & content skills, or write your own with the skills generator.