From xmake-skills
Adds third-party C/C++ dependencies to Xmake projects via add_requires / add_packages, configures package options, pins versions, and uses xrepo from the command line.
How this skill is triggered — by the user, by Claude, or both
Slash command
/xmake-skills:xmake-packagesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Xmake has a built-in package manager (xrepo) that fetches and builds C/C++ dependencies and wires them into your targets.
Xmake has a built-in package manager (xrepo) that fetches and builds C/C++ dependencies and wires them into your targets.
add_requires("fmt 10.2.1", "spdlog")
target("app")
set_kind("binary")
add_files("src/*.cpp")
add_packages("fmt", "spdlog")
add_requires declares what you need (and optionally a version). add_packages attaches the package to a specific target, adding its includes, links, and defines automatically.
add_requires("zlib 1.3.x") -- semver range
add_requires("openssl >=3.0")
add_requires("cmake master") -- branch
add_requires("boost 1.84.0")
add_requires("boost", {configs = {regex = true, system = true, shared = false}})
add_requires("ffmpeg", {configs = {shared = true, gpl = false}})
Options map to the package's own configurable features — check the package with xrepo info <name>.
add_requires("mysql", {optional = true}) -- build continues if missing
add_requires("zlib", {system = true}) -- only use the system copy
add_requires("zlib", {system = false}) -- force xrepo to build it
if is_plat("linux") then
add_requires("libuuid")
end
add_requires("directxtk", {plat = "windows"})
add_repositories("my-repo https://github.com/me/my-xmake-repo.git")
add_requires("mypkg")
xrepo search fmt
xrepo info fmt
xrepo install "fmt 10.2.1"
xrepo env -b fmt bash # shell with fmt on PATH/PKG_CONFIG_PATH
xmake require --force fmtxmake require --cleanxmake require --info fmtxmake-optionsxmake-toolchainsnpx claudepluginhub xmake-io/xmake-skills --plugin xmake-skillsInstalls, inspects, and exports C/C++ packages via xrepo, xmake's standalone package manager. Covers package search, install, fetch, repository management, and virtual environments.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.