From xmake-skills
Guides users through starting a new Xmake project: installation (brew, curl, scoop), creating projects from templates, and writing the minimal xmake.lua. Helpful for first-time Xmake users or scaffolding a new project.
How this skill is triggered — by the user, by Claude, or both
Slash command
/xmake-skills:xmake-basicsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Xmake is a cross-platform build utility based on Lua. A project is driven by a single `xmake.lua` file at the repository root.
Xmake is a cross-platform build utility based on Lua. A project is driven by a single xmake.lua file at the repository root.
brew install xmakecurl -fsSL https://xmake.io/shget.text | bashscoop install xmakeVerify with xmake --version.
xmake create -l c++ -P hello # C++ console app
xmake create -l c -t static hello # C static library
Templates: console (default), static, shared, binary. List with xmake create --list.
add_rules("mode.debug", "mode.release")
target("hello")
set_kind("binary")
add_files("src/*.cpp")
That is enough to build with xmake and run with xmake run hello.
mode.debug / mode.release are built-in rules. Switch with:
xmake f -m debug # or release
xmake
myproject/
xmake.lua
src/
main.cpp
include/
tests/
add_files("src/*.cpp") globs source files; add_includedirs("include") exposes headers.
xmake-targetsxmake-packagesxmake-optionsxmake-toolchainsnpx claudepluginhub xmake-io/xmake-skills --plugin xmake-skillsApplies idiomatic xmake style to `xmake.lua` files: description vs script domain separation, naming, indentation, and `set_` vs `add_` conventions. Use alongside `xmake-targets` or `xmake-packages` as a stylistic overlay.
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.