Skip to content

TsukiNi22/ai-utils / skills/cpp/cmake-style

cmake-style

Verified

Write or edit CMakeLists.txt in Tsukini's style (from libutils, context-forge, c2dmp-hsm) - fixed section order with '# =====' banners, TARGET variable, clang++ C++20, ccache, warnings, explicit SRC list with group comments, Debug/Asan/Optimized modes, release targets, exception header generation, GTest tests/, install + find_package config, CPack RPM/DEB with stable/pre channels, Makefile wrapper. Use whenever creating, editing or reviewing a CMakeLists.txt, a tests/CMakeLists.txt, a *Config.cmake.in or the CMake packaging of one of the user's projects.

FileKindSize
SKILL.mdskill md11.1 KB
requires.txtmarkdown22 B
templates/Makefileother515 B
templates/app/CMakeLists.txtmarkdown6.5 KB
templates/check_files.shexecutablescript972 B
templates/lib/CMakeLists.txtmarkdown7.8 KB
templates/lib/NAMEConfig.cmake.inother1.2 KB
templates/tests/CMakeLists.txtmarkdown1.2 KB

templates/check_files.sh

View on GitHub
#!/bin/bash
set -euo pipefail

# Colors definition
export CYAN="\033[36m"
export RESET="\033[0m"

# Vars definition
mode="${1:-}"
[[ $# -gt 0 ]] && shift
files="$@"

# Execution
if [[ "$mode" = "unregistered" ]]; then
    echo -e "╔═════ 🔻 [${CYAN}Unregistered Files${RESET}] 🔻 ═════╗"
    find src -name "*.cpp" -printf "src/%P\n" | while read -r file; do
        printf '%s\n' $files | grep -qxF "$file" || echo "$file" # exact path, not a substring
    done
    echo -e "╚═════ 🔺 [${CYAN}Unregistered Files${RESET}] 🔺 ═════╝"
elif [[ "$mode" = "unknown" ]]; then
    echo -e "╔════════ 🔻 [${CYAN}Unknown Files${RESET}] 🔻 ════════╗"
    for file in $files; do
        [[ -f "$file" ]] || echo "$file"
    done
    echo -e "╚════════ 🔺 [${CYAN}Unknown Files${RESET}] 🔺 ════════╝"
fi

# Remove the colors
unset CYAN
unset RESET
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall