/xmake-skills:xmake-commandsfrom xmake-skills
Quick reference for Xmake CLI commands: configure, build, run, clean, install, pack, and inspect projects. Helps developers invoke Xmake efficiently.
Ships in xmake-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Xmake's CLI is a single xmake binary with subcommands. Without a subcommand it runs build.
Most target-taking commands accept several target names since v3.1.0:
xmake build target1 target2
xmake clean target1 target2
xmake f / xmake config)xmake f -m release # build mode
xmake f -p linux -a x86_64 # platform + arch
xmake f --toolchain=clang
xmake f -c # clear old config
xmake f --menu # interactive TUI (shows all options)
xmake f -v # verbose
Config is persisted under .xmake/, so later xmake calls reuse it.
xmake # build all default targets
xmake app # build a specific target
xmake -r # rebuild (force)
xmake -j 8 # parallel jobs
xmake -v # show compile commands
xmake -vD # verbose + diagnostics (for debugging xmake.lua)
xmake -w # treat warnings
xmake run # run default runnable target
xmake run app arg1 arg2 # pass arguments
xmake run -d app # run under debugger (gdb/lldb/cdb)
xmake clean # current config
xmake clean --all # all configs
xmake clean app # one target
xmake install -o /usr/local
xmake install --root app # one target, root-prefixed
xmake uninstall -o /usr/local
xmake pack)Produce distributable archives (zip/tar.gz/deb/rpm/nsis/wix/...):
xmake pack # default format
xmake pack -f zip
xmake pack -f nsis # Windows installer
xmake pack -f deb mylib # Debian package for one target
Packaging metadata is defined via xpack(...) in xmake.lua.
xmake show # project summary
xmake show -l targets
xmake show -l toolchains
xmake show -l plats
xmake show -t app # info for one target
xmake show --key=options
xmake project -k compile_commands # compile_commands.json
xmake project -k cmakelists # CMakeLists.txt (one-way export)
xmake project -k vsxmake -m "debug,release" # Visual Studio solution
xmake project -k xcode # Xcode project
xmake update # stable
xmake update -s dev # dev branch
xmake test → xmake-testsxpack interfaces → see xmake docsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
58 skills in this plugin
/xmake-addon-developmentUse when writing an Xmake addon — the `addon.lua` manifest, the payload layout (plugins/rules/toolchains/modules/includes/templates), `@self` references, shipping package definitions with an addon, `add_globalmodules`, testing it locally, and publishing it to xmake-repo as an `addon` kind package./xmake-addonsUse when installing or using an Xmake addon — `xmake addon --install/--list/--remove/--upgrade/--search`, declaring `add_addons(...)` in a project, and referencing addon payloads with `@addon/<name>/<rule>`, `@addon.<name>.<module>` or `@self`. For writing and publishing one, see xmake-addon-development./xmake-async-jobsUse when running parallel / async work inside xmake scripts — `async.runjobs` for parallel job execution, `async.jobgraph` (DAG) for dependency-ordered jobs, `async.jobpool` (tree structure), `core.base.scheduler` coroutine scheduling, semaphores, and `on_build_files(..., {jobgraph = true})` in rules. For running external compile jobs faster, see `xmake-build-optimization`.npx claudepluginhub xmake-io/xmake-skills --plugin xmake-skillsOther plugins' skills for the same job